@ultraviolet/ui 3.0.0-beta.20 → 3.0.0-beta.22
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/ActionBar/styles.css.cjs +1 -0
- package/dist/components/ActionBar/styles.css.js +1 -0
- package/dist/components/Breadcrumbs/components/Item.cjs +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +2 -2
- package/dist/components/Breadcrumbs/components/styles.css.cjs +3 -1
- package/dist/components/Breadcrumbs/components/styles.css.d.ts +1 -0
- package/dist/components/Breadcrumbs/components/styles.css.js +3 -1
- package/dist/components/Breadcrumbs/styles.css.cjs +0 -1
- package/dist/components/Breadcrumbs/styles.css.js +0 -1
- package/dist/components/Button/index.cjs +2 -1
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +2 -1
- package/dist/components/Carousel/index.cjs +9 -64
- package/dist/components/Carousel/index.js +9 -62
- package/dist/components/Carousel/styles.css.cjs +15 -0
- package/dist/components/Carousel/styles.css.d.ts +6 -0
- package/dist/components/Carousel/styles.css.js +15 -0
- package/dist/components/Dialog/index.cjs +3 -21
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +3 -19
- package/dist/components/Dialog/styles.css.cjs +7 -0
- package/dist/components/Dialog/styles.css.d.ts +2 -0
- package/dist/components/Dialog/styles.css.js +7 -0
- package/dist/components/Drawer/index.cjs +14 -105
- package/dist/components/Drawer/index.d.ts +9 -16
- package/dist/components/Drawer/index.js +11 -100
- package/dist/components/Drawer/styles.css.cjs +17 -0
- package/dist/components/Drawer/styles.css.d.ts +12 -0
- package/dist/components/Drawer/styles.css.js +17 -0
- package/dist/components/Link/index.cjs +2 -1
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/index.js +2 -1
- package/dist/components/List/Cell.cjs +21 -15
- package/dist/components/List/Cell.d.ts +2 -1
- package/dist/components/List/Cell.js +21 -13
- package/dist/components/List/ColumnProvider.cjs +28 -0
- package/dist/components/List/ColumnProvider.d.ts +14 -0
- package/dist/components/List/ColumnProvider.js +28 -0
- package/dist/components/List/HeaderCell.cjs +11 -45
- package/dist/components/List/HeaderCell.d.ts +2 -2
- package/dist/components/List/HeaderCell.js +12 -44
- package/dist/components/List/HeaderRow.cjs +4 -25
- package/dist/components/List/HeaderRow.js +4 -23
- package/dist/components/List/Row.cjs +23 -183
- package/dist/components/List/Row.d.ts +0 -16
- package/dist/components/List/Row.js +22 -180
- package/dist/components/List/SkeletonRows.cjs +7 -36
- package/dist/components/List/SkeletonRows.js +6 -33
- package/dist/components/List/index.cjs +4 -32
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +4 -30
- package/dist/components/List/styles.css.cjs +35 -0
- package/dist/components/List/styles.css.d.ts +24 -0
- package/dist/components/List/styles.css.js +35 -0
- package/dist/components/List/variables.css.cjs +16 -0
- package/dist/components/List/variables.css.d.ts +7 -0
- package/dist/components/List/variables.css.js +16 -0
- package/dist/components/Menu/MenuContent.cjs +13 -77
- package/dist/components/Menu/MenuContent.js +13 -75
- package/dist/components/Menu/components/Group.cjs +2 -12
- package/dist/components/Menu/components/Group.js +2 -10
- package/dist/components/Menu/components/Item.cjs +16 -94
- package/dist/components/Menu/components/Item.js +16 -92
- package/dist/components/Menu/styles.css.cjs +24 -0
- package/dist/components/Menu/styles.css.d.ts +47 -0
- package/dist/components/Menu/styles.css.js +24 -0
- package/dist/components/Modal/ModalContent.cjs +2 -14
- package/dist/components/Modal/ModalContent.js +2 -12
- package/dist/components/Modal/components/Dialog.cjs +18 -82
- package/dist/components/Modal/components/Dialog.d.ts +1 -13
- package/dist/components/Modal/components/Dialog.js +19 -81
- package/dist/components/Modal/constants.d.ts +42 -2
- package/dist/components/Modal/styles.css.cjs +21 -0
- package/dist/components/Modal/styles.css.d.ts +78 -0
- package/dist/components/Modal/styles.css.js +21 -0
- package/dist/components/Notification/index.cjs +2 -19
- package/dist/components/Notification/index.js +3 -20
- package/dist/components/Notification/styles.css.cjs +5 -0
- package/dist/components/Notification/styles.css.d.ts +1 -0
- package/dist/components/Notification/styles.css.js +5 -0
- package/dist/components/Pagination/PaginationButtons.cjs +4 -41
- package/dist/components/Pagination/PaginationButtons.js +4 -39
- package/dist/components/Pagination/PerPage.cjs +3 -20
- package/dist/components/Pagination/PerPage.js +3 -18
- package/dist/components/Pagination/styles.css.cjs +9 -0
- package/dist/components/Pagination/styles.css.d.ts +3 -0
- package/dist/components/Pagination/styles.css.js +9 -0
- package/dist/components/Row/index.cjs +15 -11
- package/dist/components/Row/index.d.ts +2 -1
- package/dist/components/Row/index.js +15 -11
- package/dist/components/SelectInput/components/SearchBarDropdown.cjs +4 -4
- package/dist/components/SelectInput/components/SearchBarDropdown.js +1 -1
- package/dist/components/Snippet/index.cjs +20 -154
- package/dist/components/Snippet/index.js +18 -150
- package/dist/components/Snippet/styles.css.cjs +26 -0
- package/dist/components/Snippet/styles.css.d.ts +48 -0
- package/dist/components/Snippet/styles.css.js +26 -0
- package/dist/components/Stepper/Step.cjs +43 -113
- package/dist/components/Stepper/Step.js +41 -109
- package/dist/components/Stepper/index.cjs +10 -65
- package/dist/components/Stepper/index.js +10 -63
- package/dist/components/Stepper/styles.css.cjs +20 -0
- package/dist/components/Stepper/styles.css.d.ts +122 -0
- package/dist/components/Stepper/styles.css.js +20 -0
- package/dist/components/Table/Row.cjs +6 -6
- package/dist/components/Table/Row.js +6 -6
- package/dist/components/Toaster/index.cjs +3 -23
- package/dist/components/Toaster/index.js +3 -21
- package/dist/components/Toaster/styles.css.cjs +7 -0
- package/dist/components/Toaster/styles.css.d.ts +2 -0
- package/dist/components/Toaster/styles.css.js +7 -0
- package/dist/components/UnitInput/index.cjs +2 -1
- package/dist/components/UnitInput/index.d.ts +2 -1
- package/dist/components/UnitInput/index.js +2 -1
- package/dist/components/UnitInput/styles.css.cjs +1 -0
- package/dist/components/UnitInput/styles.css.js +1 -0
- package/dist/theme/ThemeProvider.cjs +16 -0
- package/dist/theme/ThemeProvider.js +16 -0
- package/dist/ui.css +1 -1
- package/dist/utils/animationVanillaExtract.css.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/package.json +7 -6
- package/dist/components/List/constants.cjs +0 -5
- package/dist/components/List/constants.js +0 -5
- package/dist/components/Menu/constants.cjs +0 -7
- package/dist/components/Menu/constants.js +0 -7
- package/dist/components/Modal/constants.cjs +0 -53
- package/dist/components/Modal/constants.js +0 -53
- package/dist/utils/searchAlgorithm.cjs +0 -40
- package/dist/utils/searchAlgorithm.d.ts +0 -12
- package/dist/utils/searchAlgorithm.js +0 -40
|
@@ -2,15 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
-
const _styled = require("@emotion/styled/base");
|
|
6
5
|
const index$2 = require("../SelectInput/index.cjs");
|
|
7
6
|
const index = require("../Stack/index.cjs");
|
|
8
7
|
const index$1 = require("../Text/index.cjs");
|
|
9
|
-
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
10
|
-
const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
|
|
11
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
12
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
13
|
-
}
|
|
14
8
|
const optionsItemsPerPage = [{
|
|
15
9
|
label: "10",
|
|
16
10
|
value: "10"
|
|
@@ -24,19 +18,6 @@ const optionsItemsPerPage = [{
|
|
|
24
18
|
label: "100",
|
|
25
19
|
value: "100"
|
|
26
20
|
}];
|
|
27
|
-
const StyledSelectInput = /* @__PURE__ */ _styled__default.default(index$2.SelectInput, process.env.NODE_ENV === "production" ? {
|
|
28
|
-
target: "ehm0l0i0"
|
|
29
|
-
} : {
|
|
30
|
-
target: "ehm0l0i0",
|
|
31
|
-
label: "StyledSelectInput"
|
|
32
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
33
|
-
name: "1vwd1t",
|
|
34
|
-
styles: "width:fit-content;min-width:none"
|
|
35
|
-
} : {
|
|
36
|
-
name: "1vwd1t",
|
|
37
|
-
styles: "width:fit-content;min-width:none/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1BhZ2luYXRpb24vUGVyUGFnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkI2QyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9QYWdpbmF0aW9uL1BlclBhZ2UudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHR5cGUgeyBEaXNwYXRjaCwgU2V0U3RhdGVBY3Rpb24gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFNlbGVjdElucHV0IH0gZnJvbSAnLi4vU2VsZWN0SW5wdXQnXG5pbXBvcnQgeyBTdGFjayB9IGZyb20gJy4uL1N0YWNrJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4uL1RleHQnXG5cbmNvbnN0IG9wdGlvbnNJdGVtc1BlclBhZ2UgPSBbXG4gIHtcbiAgICBsYWJlbDogJzEwJyxcbiAgICB2YWx1ZTogJzEwJyxcbiAgfSxcbiAge1xuICAgIGxhYmVsOiAnMjUnLFxuICAgIHZhbHVlOiAnMjUnLFxuICB9LFxuICB7XG4gICAgbGFiZWw6ICc1MCc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wiPlxuICAgICAgPFRleHQgYXM9XCJzcGFuXCIgcHJvbWluZW5jZT1cIndlYWtcIiBzZW50aW1lbnQ9XCJuZXV0cmFsXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAge3BlclBhZ2VUZXh0ID8/ICdJdGVtcyBwZXIgcGFnZSd9XG4gICAgICA8L1RleHQ+XG4gICAgICA8U3R5bGVkU2VsZWN0SW5wdXRcbiAgICAgICAgbmFtZT1cInNlbGVjdC1pdGVtcy1wZXItcGFnZVwiXG4gICAgICAgIG9uQ2hhbmdlPXtoYW5kbGVDaGFuZ2V9XG4gICAgICAgIG9wdGlvbnM9e29wdGlvbnNJdGVtc1BlclBhZ2V9XG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHZhbHVlPXtwZXJQYWdlLnRvU3RyaW5nKCl9XG4gICAgICAvPlxuICAgICAgPFRleHQgYXM9XCJzcGFuXCIgcHJvbWluZW5jZT1cIndlYWtcIiBzZW50aW1lbnQ9XCJuZXV0cmFsXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAgeyhwYWdlIC0gMSkgKiBwZXJQYWdlICsgMX0te01hdGgubWluKHBhZ2UgKiBwZXJQYWdlLCBudW1iZXJPZkl0ZW1zKX17JyAnfVxuICAgICAgICB7bnVtYmVyT2ZJdGVtc1RleHQgPz8gYG9mICR7bnVtYmVyT2ZJdGVtc30gaXRlbXNcImB9XG4gICAgICA8L1RleHQ+XG4gICAgPC9TdGFjaz5cbiAgKVxufVxuIl19 */",
|
|
38
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
39
|
-
});
|
|
40
21
|
const PerPage = ({
|
|
41
22
|
perPage,
|
|
42
23
|
onChangePerPage,
|
|
@@ -53,7 +34,9 @@ const PerPage = ({
|
|
|
53
34
|
};
|
|
54
35
|
return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", direction: "row", gap: "2", children: [
|
|
55
36
|
/* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "body", children: perPageText ?? "Items per page" }),
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
/* @__PURE__ */ jsxRuntime.jsx(index$2.SelectInput, { name: "select-items-per-page", onChange: handleChange, options: optionsItemsPerPage, size: "small", style: {
|
|
38
|
+
width: "fit-content"
|
|
39
|
+
}, value: perPage.toString() }),
|
|
57
40
|
/* @__PURE__ */ jsxRuntime.jsxs(index$1.Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "body", children: [
|
|
58
41
|
(page - 1) * perPage + 1,
|
|
59
42
|
"-",
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
4
3
|
import { SelectInput } from "../SelectInput/index.js";
|
|
5
4
|
import { Stack } from "../Stack/index.js";
|
|
6
5
|
import { Text } from "../Text/index.js";
|
|
7
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
8
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
9
|
-
}
|
|
10
6
|
const optionsItemsPerPage = [{
|
|
11
7
|
label: "10",
|
|
12
8
|
value: "10"
|
|
@@ -20,19 +16,6 @@ const optionsItemsPerPage = [{
|
|
|
20
16
|
label: "100",
|
|
21
17
|
value: "100"
|
|
22
18
|
}];
|
|
23
|
-
const StyledSelectInput = /* @__PURE__ */ _styled(SelectInput, process.env.NODE_ENV === "production" ? {
|
|
24
|
-
target: "ehm0l0i0"
|
|
25
|
-
} : {
|
|
26
|
-
target: "ehm0l0i0",
|
|
27
|
-
label: "StyledSelectInput"
|
|
28
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
29
|
-
name: "1vwd1t",
|
|
30
|
-
styles: "width:fit-content;min-width:none"
|
|
31
|
-
} : {
|
|
32
|
-
name: "1vwd1t",
|
|
33
|
-
styles: "width:fit-content;min-width:none/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1BhZ2luYXRpb24vUGVyUGFnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkI2QyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9QYWdpbmF0aW9uL1BlclBhZ2UudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHR5cGUgeyBEaXNwYXRjaCwgU2V0U3RhdGVBY3Rpb24gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFNlbGVjdElucHV0IH0gZnJvbSAnLi4vU2VsZWN0SW5wdXQnXG5pbXBvcnQgeyBTdGFjayB9IGZyb20gJy4uL1N0YWNrJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4uL1RleHQnXG5cbmNvbnN0IG9wdGlvbnNJdGVtc1BlclBhZ2UgPSBbXG4gIHtcbiAgICBsYWJlbDogJzEwJyxcbiAgICB2YWx1ZTogJzEwJyxcbiAgfSxcbiAge1xuICAgIGxhYmVsOiAnMjUnLFxuICAgIHZhbHVlOiAnMjUnLFxuICB9LFxuICB7XG4gICAgbGFiZWw6ICc1MCcsXG4gICAgdmFsdWU6ICc1MCcsXG4gIH0sXG4gIHtcbiAgICBsYWJlbDogJzEwMCcsXG4gICAgdmFsdWU6ICcxMDAnLFxuICB9LFxuXVxuXG5jb25zdCBTdHlsZ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AgICAge3BlclBhZ2VUZXh0ID8/ICdJdGVtcyBwZXIgcGFnZSd9XG4gICAgICA8L1RleHQ+XG4gICAgICA8U3R5bGVkU2VsZWN0SW5wdXRcbiAgICAgICAgbmFtZT1cInNlbGVjdC1pdGVtcy1wZXItcGFnZVwiXG4gICAgICAgIG9uQ2hhbmdlPXtoYW5kbGVDaGFuZ2V9XG4gICAgICAgIG9wdGlvbnM9e29wdGlvbnNJdGVtc1BlclBhZ2V9XG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHZhbHVlPXtwZXJQYWdlLnRvU3RyaW5nKCl9XG4gICAgICAvPlxuICAgICAgPFRleHQgYXM9XCJzcGFuXCIgcHJvbWluZW5jZT1cIndlYWtcIiBzZW50aW1lbnQ9XCJuZXV0cmFsXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAgeyhwYWdlIC0gMSkgKiBwZXJQYWdlICsgMX0te01hdGgubWluKHBhZ2UgKiBwZXJQYWdlLCBudW1iZXJPZkl0ZW1zKX17JyAnfVxuICAgICAgICB7bnVtYmVyT2ZJdGVtc1RleHQgPz8gYG9mICR7bnVtYmVyT2ZJdGVtc30gaXRlbXNcImB9XG4gICAgICA8L1RleHQ+XG4gICAgPC9TdGFjaz5cbiAgKVxufVxuIl19 */",
|
|
34
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
35
|
-
});
|
|
36
19
|
const PerPage = ({
|
|
37
20
|
perPage,
|
|
38
21
|
onChangePerPage,
|
|
@@ -49,7 +32,9 @@ const PerPage = ({
|
|
|
49
32
|
};
|
|
50
33
|
return /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", gap: "2", children: [
|
|
51
34
|
/* @__PURE__ */ jsx(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "body", children: perPageText ?? "Items per page" }),
|
|
52
|
-
/* @__PURE__ */ jsx(
|
|
35
|
+
/* @__PURE__ */ jsx(SelectInput, { name: "select-items-per-page", onChange: handleChange, options: optionsItemsPerPage, size: "small", style: {
|
|
36
|
+
width: "fit-content"
|
|
37
|
+
}, value: perPage.toString() }),
|
|
53
38
|
/* @__PURE__ */ jsxs(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "body", children: [
|
|
54
39
|
(page - 1) * perPage + 1,
|
|
55
40
|
"-",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
var pageNumbersContainer = "uv_a0295u0";
|
|
5
|
+
var pageButton = { small: "uv_a0295u1", medium: "uv_a0295u2" };
|
|
6
|
+
var ellipsisClass = { small: "uv_a0295u4 uv_a0295u3", medium: "uv_a0295u5 uv_a0295u3" };
|
|
7
|
+
exports.ellipsisClass = ellipsisClass;
|
|
8
|
+
exports.pageButton = pageButton;
|
|
9
|
+
exports.pageNumbersContainer = pageNumbersContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
var pageNumbersContainer = "uv_a0295u0";
|
|
3
|
+
var pageButton = { small: "uv_a0295u1", medium: "uv_a0295u2" };
|
|
4
|
+
var ellipsisClass = { small: "uv_a0295u4 uv_a0295u3", medium: "uv_a0295u5 uv_a0295u3" };
|
|
5
|
+
export {
|
|
6
|
+
ellipsisClass,
|
|
7
|
+
pageButton,
|
|
8
|
+
pageNumbersContainer
|
|
9
|
+
};
|
|
@@ -18,7 +18,8 @@ const Row = ({
|
|
|
18
18
|
alignItems,
|
|
19
19
|
justifyContent,
|
|
20
20
|
gap,
|
|
21
|
-
padding
|
|
21
|
+
padding,
|
|
22
|
+
style
|
|
22
23
|
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${className ? `${className} ` : ""}${styles_css.row} ${styles_css.sprinkles({
|
|
23
24
|
alignItems: typeof alignItems === "object" ? alignItems : {
|
|
24
25
|
xxsmall: alignItems
|
|
@@ -29,14 +30,17 @@ const Row = ({
|
|
|
29
30
|
justifyContent: typeof justifyContent === "object" ? justifyContent : {
|
|
30
31
|
xxsmall: justifyContent
|
|
31
32
|
}
|
|
32
|
-
})}`, "data-testid": dataTestId, style:
|
|
33
|
-
...
|
|
34
|
-
...acc,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...acc,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}),
|
|
33
|
+
})}`, "data-testid": dataTestId, style: {
|
|
34
|
+
...dynamic.assignInlineVars({
|
|
35
|
+
...Object.keys(variables_css.templateColumn).reduce((acc, column) => ({
|
|
36
|
+
...acc,
|
|
37
|
+
[variables_css.templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
|
|
38
|
+
}), {}),
|
|
39
|
+
...Object.keys(variables_css.paddings).reduce((acc, localPadding) => ({
|
|
40
|
+
...acc,
|
|
41
|
+
[variables_css.paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
|
|
42
|
+
}), {})
|
|
43
|
+
}),
|
|
44
|
+
...style
|
|
45
|
+
}, children });
|
|
42
46
|
exports.Row = Row;
|
|
@@ -12,9 +12,10 @@ type RowProps = {
|
|
|
12
12
|
alignItems?: ResponsiveProp<AlignItemsType>;
|
|
13
13
|
justifyContent?: ResponsiveProp<JustifyContentType>;
|
|
14
14
|
padding?: ResponsiveProp<CSSProperties['padding']>;
|
|
15
|
+
style?: CSSProperties;
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
17
18
|
* Row component is a wrapper for grid layout.
|
|
18
19
|
*/
|
|
19
|
-
export declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, padding, }: RowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, padding, style, }: RowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -16,7 +16,8 @@ const Row = ({
|
|
|
16
16
|
alignItems,
|
|
17
17
|
justifyContent,
|
|
18
18
|
gap,
|
|
19
|
-
padding
|
|
19
|
+
padding,
|
|
20
|
+
style
|
|
20
21
|
}) => /* @__PURE__ */ jsx("div", { className: `${className ? `${className} ` : ""}${row} ${sprinkles({
|
|
21
22
|
alignItems: typeof alignItems === "object" ? alignItems : {
|
|
22
23
|
xxsmall: alignItems
|
|
@@ -27,16 +28,19 @@ const Row = ({
|
|
|
27
28
|
justifyContent: typeof justifyContent === "object" ? justifyContent : {
|
|
28
29
|
xxsmall: justifyContent
|
|
29
30
|
}
|
|
30
|
-
})}`, "data-testid": dataTestId, style:
|
|
31
|
-
...
|
|
32
|
-
...acc,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
...acc,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}),
|
|
31
|
+
})}`, "data-testid": dataTestId, style: {
|
|
32
|
+
...assignInlineVars({
|
|
33
|
+
...Object.keys(templateColumn).reduce((acc, column) => ({
|
|
34
|
+
...acc,
|
|
35
|
+
[templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
|
|
36
|
+
}), {}),
|
|
37
|
+
...Object.keys(paddings).reduce((acc, localPadding) => ({
|
|
38
|
+
...acc,
|
|
39
|
+
[paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
|
|
40
|
+
}), {})
|
|
41
|
+
}),
|
|
42
|
+
...style
|
|
43
|
+
}, children });
|
|
40
44
|
export {
|
|
41
45
|
Row
|
|
42
46
|
};
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
5
|
+
const fuzzySearch = require("@scaleway/fuzzy-search");
|
|
5
6
|
const Icon = require("@ultraviolet/icons");
|
|
6
7
|
const react = require("react");
|
|
7
|
-
const searchAlgorithm = require("../../../utils/searchAlgorithm.cjs");
|
|
8
8
|
const index = require("../../TextInput/index.cjs");
|
|
9
9
|
const SelectInputProvider = require("../SelectInputProvider.cjs");
|
|
10
10
|
const dropdown_css = require("./dropdown.css.cjs");
|
|
11
11
|
const getReferenceText = (option) => {
|
|
12
12
|
if (option.searchText) {
|
|
13
|
-
return
|
|
13
|
+
return fuzzySearch.normalizeString(option.searchText);
|
|
14
14
|
}
|
|
15
15
|
if (typeof option.label === "string") {
|
|
16
|
-
return
|
|
16
|
+
return fuzzySearch.normalizeString(option.label);
|
|
17
17
|
}
|
|
18
18
|
return "";
|
|
19
19
|
};
|
|
20
20
|
const searchRegex = (data, query) => data.filter((option) => {
|
|
21
21
|
const referenceText = getReferenceText(option);
|
|
22
22
|
const regex = new RegExp(query, "i");
|
|
23
|
-
return (query.length > 2 ?
|
|
23
|
+
return (query.length > 2 ? fuzzySearch.isFuzzyMatch(query, referenceText) : referenceText.match(regex)) || typeof option.description === "string" && option.description.match(regex) || option.value.match(regex);
|
|
24
24
|
});
|
|
25
25
|
const findClosestOption = (options, searchInput) => {
|
|
26
26
|
if (searchInput) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { isFuzzyMatch, normalizeString } from "@scaleway/fuzzy-search";
|
|
3
4
|
import { SearchIcon } from "@ultraviolet/icons";
|
|
4
5
|
import { useRef, useEffect } from "react";
|
|
5
|
-
import { isFuzzyMatch, normalizeString } from "../../../utils/searchAlgorithm.js";
|
|
6
6
|
import { TextInput } from "../../TextInput/index.js";
|
|
7
7
|
import { useSelectInput } from "../SelectInputProvider.js";
|
|
8
8
|
import { searchBar } from "./dropdown.css.js";
|