@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.
Files changed (131) hide show
  1. package/dist/components/ActionBar/styles.css.cjs +1 -0
  2. package/dist/components/ActionBar/styles.css.js +1 -0
  3. package/dist/components/Breadcrumbs/components/Item.cjs +1 -1
  4. package/dist/components/Breadcrumbs/components/Item.js +2 -2
  5. package/dist/components/Breadcrumbs/components/styles.css.cjs +3 -1
  6. package/dist/components/Breadcrumbs/components/styles.css.d.ts +1 -0
  7. package/dist/components/Breadcrumbs/components/styles.css.js +3 -1
  8. package/dist/components/Breadcrumbs/styles.css.cjs +0 -1
  9. package/dist/components/Breadcrumbs/styles.css.js +0 -1
  10. package/dist/components/Button/index.cjs +2 -1
  11. package/dist/components/Button/index.d.ts +1 -0
  12. package/dist/components/Button/index.js +2 -1
  13. package/dist/components/Carousel/index.cjs +9 -64
  14. package/dist/components/Carousel/index.js +9 -62
  15. package/dist/components/Carousel/styles.css.cjs +15 -0
  16. package/dist/components/Carousel/styles.css.d.ts +6 -0
  17. package/dist/components/Carousel/styles.css.js +15 -0
  18. package/dist/components/Dialog/index.cjs +3 -21
  19. package/dist/components/Dialog/index.d.ts +1 -0
  20. package/dist/components/Dialog/index.js +3 -19
  21. package/dist/components/Dialog/styles.css.cjs +7 -0
  22. package/dist/components/Dialog/styles.css.d.ts +2 -0
  23. package/dist/components/Dialog/styles.css.js +7 -0
  24. package/dist/components/Drawer/index.cjs +14 -105
  25. package/dist/components/Drawer/index.d.ts +9 -16
  26. package/dist/components/Drawer/index.js +11 -100
  27. package/dist/components/Drawer/styles.css.cjs +17 -0
  28. package/dist/components/Drawer/styles.css.d.ts +12 -0
  29. package/dist/components/Drawer/styles.css.js +17 -0
  30. package/dist/components/Link/index.cjs +2 -1
  31. package/dist/components/Link/index.d.ts +1 -0
  32. package/dist/components/Link/index.js +2 -1
  33. package/dist/components/List/Cell.cjs +21 -15
  34. package/dist/components/List/Cell.d.ts +2 -1
  35. package/dist/components/List/Cell.js +21 -13
  36. package/dist/components/List/ColumnProvider.cjs +28 -0
  37. package/dist/components/List/ColumnProvider.d.ts +14 -0
  38. package/dist/components/List/ColumnProvider.js +28 -0
  39. package/dist/components/List/HeaderCell.cjs +11 -45
  40. package/dist/components/List/HeaderCell.d.ts +2 -2
  41. package/dist/components/List/HeaderCell.js +12 -44
  42. package/dist/components/List/HeaderRow.cjs +4 -25
  43. package/dist/components/List/HeaderRow.js +4 -23
  44. package/dist/components/List/Row.cjs +23 -183
  45. package/dist/components/List/Row.d.ts +0 -16
  46. package/dist/components/List/Row.js +22 -180
  47. package/dist/components/List/SkeletonRows.cjs +7 -36
  48. package/dist/components/List/SkeletonRows.js +6 -33
  49. package/dist/components/List/index.cjs +4 -32
  50. package/dist/components/List/index.d.ts +1 -0
  51. package/dist/components/List/index.js +4 -30
  52. package/dist/components/List/styles.css.cjs +35 -0
  53. package/dist/components/List/styles.css.d.ts +24 -0
  54. package/dist/components/List/styles.css.js +35 -0
  55. package/dist/components/List/variables.css.cjs +16 -0
  56. package/dist/components/List/variables.css.d.ts +7 -0
  57. package/dist/components/List/variables.css.js +16 -0
  58. package/dist/components/Menu/MenuContent.cjs +13 -77
  59. package/dist/components/Menu/MenuContent.js +13 -75
  60. package/dist/components/Menu/components/Group.cjs +2 -12
  61. package/dist/components/Menu/components/Group.js +2 -10
  62. package/dist/components/Menu/components/Item.cjs +16 -94
  63. package/dist/components/Menu/components/Item.js +16 -92
  64. package/dist/components/Menu/styles.css.cjs +24 -0
  65. package/dist/components/Menu/styles.css.d.ts +47 -0
  66. package/dist/components/Menu/styles.css.js +24 -0
  67. package/dist/components/Modal/ModalContent.cjs +2 -14
  68. package/dist/components/Modal/ModalContent.js +2 -12
  69. package/dist/components/Modal/components/Dialog.cjs +18 -82
  70. package/dist/components/Modal/components/Dialog.d.ts +1 -13
  71. package/dist/components/Modal/components/Dialog.js +19 -81
  72. package/dist/components/Modal/constants.d.ts +42 -2
  73. package/dist/components/Modal/styles.css.cjs +21 -0
  74. package/dist/components/Modal/styles.css.d.ts +78 -0
  75. package/dist/components/Modal/styles.css.js +21 -0
  76. package/dist/components/Notification/index.cjs +2 -19
  77. package/dist/components/Notification/index.js +3 -20
  78. package/dist/components/Notification/styles.css.cjs +5 -0
  79. package/dist/components/Notification/styles.css.d.ts +1 -0
  80. package/dist/components/Notification/styles.css.js +5 -0
  81. package/dist/components/Pagination/PaginationButtons.cjs +4 -41
  82. package/dist/components/Pagination/PaginationButtons.js +4 -39
  83. package/dist/components/Pagination/PerPage.cjs +3 -20
  84. package/dist/components/Pagination/PerPage.js +3 -18
  85. package/dist/components/Pagination/styles.css.cjs +9 -0
  86. package/dist/components/Pagination/styles.css.d.ts +3 -0
  87. package/dist/components/Pagination/styles.css.js +9 -0
  88. package/dist/components/Row/index.cjs +15 -11
  89. package/dist/components/Row/index.d.ts +2 -1
  90. package/dist/components/Row/index.js +15 -11
  91. package/dist/components/SelectInput/components/SearchBarDropdown.cjs +4 -4
  92. package/dist/components/SelectInput/components/SearchBarDropdown.js +1 -1
  93. package/dist/components/Snippet/index.cjs +20 -154
  94. package/dist/components/Snippet/index.js +18 -150
  95. package/dist/components/Snippet/styles.css.cjs +26 -0
  96. package/dist/components/Snippet/styles.css.d.ts +48 -0
  97. package/dist/components/Snippet/styles.css.js +26 -0
  98. package/dist/components/Stepper/Step.cjs +43 -113
  99. package/dist/components/Stepper/Step.js +41 -109
  100. package/dist/components/Stepper/index.cjs +10 -65
  101. package/dist/components/Stepper/index.js +10 -63
  102. package/dist/components/Stepper/styles.css.cjs +20 -0
  103. package/dist/components/Stepper/styles.css.d.ts +122 -0
  104. package/dist/components/Stepper/styles.css.js +20 -0
  105. package/dist/components/Table/Row.cjs +6 -6
  106. package/dist/components/Table/Row.js +6 -6
  107. package/dist/components/Toaster/index.cjs +3 -23
  108. package/dist/components/Toaster/index.js +3 -21
  109. package/dist/components/Toaster/styles.css.cjs +7 -0
  110. package/dist/components/Toaster/styles.css.d.ts +2 -0
  111. package/dist/components/Toaster/styles.css.js +7 -0
  112. package/dist/components/UnitInput/index.cjs +2 -1
  113. package/dist/components/UnitInput/index.d.ts +2 -1
  114. package/dist/components/UnitInput/index.js +2 -1
  115. package/dist/components/UnitInput/styles.css.cjs +1 -0
  116. package/dist/components/UnitInput/styles.css.js +1 -0
  117. package/dist/theme/ThemeProvider.cjs +16 -0
  118. package/dist/theme/ThemeProvider.js +16 -0
  119. package/dist/ui.css +1 -1
  120. package/dist/utils/animationVanillaExtract.css.d.ts +1 -0
  121. package/dist/utils/index.d.ts +1 -1
  122. package/package.json +7 -6
  123. package/dist/components/List/constants.cjs +0 -5
  124. package/dist/components/List/constants.js +0 -5
  125. package/dist/components/Menu/constants.cjs +0 -7
  126. package/dist/components/Menu/constants.js +0 -7
  127. package/dist/components/Modal/constants.cjs +0 -53
  128. package/dist/components/Modal/constants.js +0 -53
  129. package/dist/utils/searchAlgorithm.cjs +0 -40
  130. package/dist/utils/searchAlgorithm.d.ts +0 -12
  131. 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1BhZ2luYXRpb24vUGVyUGFnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkI2QyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9QYWdpbmF0aW9uL1BlclBhZ2UudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHR5cGUgeyBEaXNwYXRjaCwgU2V0U3RhdGVBY3Rpb24gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFNlbGVjdElucHV0IH0gZnJvbSAnLi4vU2VsZWN0SW5wdXQnXG5pbXBvcnQgeyBTdGFjayB9IGZyb20gJy4uL1N0YWNrJ1xuaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4uL1RleHQnXG5cbmNvbnN0IG9wdGlvbnNJdGVtc1BlclBhZ2UgPSBbXG4gIHtcbiAgICBsYWJlbDogJzEwJyxcbiAgICB2YWx1ZTogJzEwJyxcbiAgfSxcb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1cm4gKFxuICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZGlyZWN0aW9uPVwicm93XCIgZ2FwPVwiMlwiPlxuICAgICAgPFRleHQgYXM9XCJzcGFuXCIgcHJvbWluZW5jZT1cIndlYWtcIiBzZW50aW1lbnQ9XCJuZXV0cmFsXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAge3BlclBhZ2VUZXh0ID8/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(StyledSelectInput, { name: "select-items-per-page", onChange: handleChange, options: optionsItemsPerPage, size: "small", value: perPage.toString() }),
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,eyJ2ZXJzaW9uIjozLCJzb3V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NlbGVjdC1pdGVtcy1wZXItcGFnZVwiXG4gICAgICAgIG9uQ2hhbmdlPXtoYW5kbGVDaGFuZ2V9XG4gICAgICAgIG9wdGlvbnM9e29wdGlvbnNJdGVtc1BlclBhZ2V9XG4gICAgICAgIHNpemU9XCJzbWFsbFwiXG4gICAgICAgIHZhbHVlPXtwZXJQYWdlLnRvU3RyaW5nKCl9XG4gICAgICAvPlxuICAgICAgPFRleHQgYXM9XCJzcGFuXCIgcHJvbWluZW5jZT1cIndlYWtcIiBzZW50aW1lbnQ9XCJuZXV0cmFsXCIgdmFyaWFudD1cImJvZHlcIj5cbiAgICAgICAgeyhwYWdlIC0gMSkgKiBwZXJQYWdlICsgMX0te01hdGgubWluKHBhZ2UgKiBwZXJQYWdlLCBudW1iZXJPZkl0ZW1zKX17JyAnfVxuICAgICAgICB7bnVtYmVyT2ZJdGVtc1RleHQgPz8gYG9mICR7bnVtYmVyT2ZJdGVtc30gaXRlbXNcImB9XG4gICAgICA8L1RleHQ+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(StyledSelectInput, { name: "select-items-per-page", onChange: handleChange, options: optionsItemsPerPage, size: "small", value: perPage.toString() }),
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,3 @@
1
+ export declare const pageNumbersContainer: string;
2
+ export declare const pageButton: Record<"medium" | "small", string>;
3
+ export declare const ellipsisClass: Record<"medium" | "small", string>;
@@ -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: dynamic.assignInlineVars({
33
- ...Object.keys(variables_css.templateColumn).reduce((acc, column) => ({
34
- ...acc,
35
- [variables_css.templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
36
- }), {}),
37
- ...Object.keys(variables_css.paddings).reduce((acc, localPadding) => ({
38
- ...acc,
39
- [variables_css.paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
40
- }), {})
41
- }), children });
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: assignInlineVars({
31
- ...Object.keys(templateColumn).reduce((acc, column) => ({
32
- ...acc,
33
- [templateColumn[column]]: typeof templateColumns === "object" ? templateColumns[column] || "" : templateColumns
34
- }), {}),
35
- ...Object.keys(paddings).reduce((acc, localPadding) => ({
36
- ...acc,
37
- [paddings[localPadding]]: typeof padding === "object" ? padding[localPadding] || "" : padding
38
- }), {})
39
- }), children });
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 searchAlgorithm.normalizeString(option.searchText);
13
+ return fuzzySearch.normalizeString(option.searchText);
14
14
  }
15
15
  if (typeof option.label === "string") {
16
- return searchAlgorithm.normalizeString(option.label);
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 ? searchAlgorithm.isFuzzyMatch(query, referenceText) : referenceText.match(regex)) || typeof option.description === "string" && option.description.match(regex) || option.value.match(regex);
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";