@ultraviolet/ui 3.13.1 → 3.14.0

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 (111) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/defineProperty.js +1 -1
  2. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/objectSpread2.js +1 -1
  3. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/objectWithoutProperties.js +1 -1
  4. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
  5. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/toPrimitive.js +1 -1
  6. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/toPropertyKey.js +1 -1
  7. package/dist/_virtual/{_@oxc-project_runtime@0.122.0 → _@oxc-project_runtime@0.124.0}/helpers/typeof.js +1 -1
  8. package/dist/components/ActionBar/index.js +1 -1
  9. package/dist/components/Alert/index.js +10 -10
  10. package/dist/components/Alert/styles.css.d.ts +1 -1
  11. package/dist/components/Alert/styles.css.js +1 -1
  12. package/dist/components/Avatar/index.js +1 -1
  13. package/dist/components/Badge/index.js +1 -5
  14. package/dist/components/BarChart/index.js +1 -1
  15. package/dist/components/Breadcrumbs/components/Item.js +1 -1
  16. package/dist/components/Carousel/Item.js +1 -1
  17. package/dist/components/DateInput/Context.js +6 -6
  18. package/dist/components/Drawer/index.js +1 -1
  19. package/dist/components/EmptyState/index.d.ts.map +1 -1
  20. package/dist/components/EmptyState/index.js +4 -4
  21. package/dist/components/Expandable/AnimatedExpandable.js +1 -1
  22. package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
  23. package/dist/components/FileInput/DropzoneContent.d.ts.map +1 -1
  24. package/dist/components/FileInput/DropzoneContent.js +1 -2
  25. package/dist/components/FileInput/components/Button.js +2 -2
  26. package/dist/components/FileInput/components/List.d.ts +1 -1
  27. package/dist/components/FileInput/components/List.d.ts.map +1 -1
  28. package/dist/components/FileInput/components/List.js +2 -1
  29. package/dist/components/FileInput/index.d.ts +2 -2
  30. package/dist/components/FileInput/index.d.ts.map +1 -1
  31. package/dist/components/FileInput/index.js +104 -84
  32. package/dist/components/FileInput/styles.css.d.ts +5 -0
  33. package/dist/components/FileInput/styles.css.d.ts.map +1 -1
  34. package/dist/components/FileInput/styles.css.js +21 -18
  35. package/dist/components/FileInput/types.d.ts +12 -7
  36. package/dist/components/FileInput/types.d.ts.map +1 -1
  37. package/dist/components/GlobalAlert/index.d.ts +6 -6
  38. package/dist/components/InfiniteScroll/index.js +1 -1
  39. package/dist/components/LineChart/helpers.d.ts.map +1 -1
  40. package/dist/components/LineChart/index.js +1 -1
  41. package/dist/components/Link/index.d.ts +1 -1
  42. package/dist/components/Link/index.d.ts.map +1 -1
  43. package/dist/components/List/Cell.js +1 -1
  44. package/dist/components/List/ListContext.js +3 -3
  45. package/dist/components/Loader/index.js +1 -1
  46. package/dist/components/Menu/MenuContent.d.ts.map +1 -1
  47. package/dist/components/Menu/index.js +2 -2
  48. package/dist/components/Modal/components/Dialog.js +4 -3
  49. package/dist/components/Modal/styles.css.d.ts.map +1 -1
  50. package/dist/components/Notification/Notification.js +1 -1
  51. package/dist/components/PieChart/index.js +1 -1
  52. package/dist/components/Popup/index.js +1 -1
  53. package/dist/components/Popup/styles.css.d.ts.map +1 -1
  54. package/dist/components/Popup/styles.css.js +6 -2
  55. package/dist/components/Row/index.js +1 -1
  56. package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
  57. package/dist/components/SelectInput/components/Dropdown/SearchBar.js +1 -1
  58. package/dist/components/SelectableCard/MultiStateInput.js +1 -1
  59. package/dist/components/SelectableCard/SelectableCard.js +1 -1
  60. package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
  61. package/dist/components/Slider/components/SingleSlider.js +1 -1
  62. package/dist/components/Stack/index.js +2 -2
  63. package/dist/components/Stepper/index.js +1 -1
  64. package/dist/components/Table/Cell.js +1 -1
  65. package/dist/components/Table/TableContext.js +2 -2
  66. package/dist/components/Tabs/Tab.js +2 -2
  67. package/dist/components/Tabs/TabMenu.js +2 -2
  68. package/dist/components/Tabs/TabMenuItem.js +2 -2
  69. package/dist/components/Tabs/TabsContext.d.ts.map +1 -1
  70. package/dist/components/Tabs/index.js +2 -2
  71. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  72. package/dist/components/TagInput/index.js +1 -1
  73. package/dist/components/TagList/index.d.ts.map +1 -1
  74. package/dist/components/TagList/index.js +1 -1
  75. package/dist/components/Text/index.d.ts.map +1 -1
  76. package/dist/components/Text/index.js +2 -2
  77. package/dist/components/Text/style.css.d.ts +1 -0
  78. package/dist/components/Text/style.css.d.ts.map +1 -1
  79. package/dist/components/Text/style.css.js +444 -441
  80. package/dist/components/Text/variables.css.d.ts.map +1 -1
  81. package/dist/components/TextArea/index.js +1 -1
  82. package/dist/components/TimeInput/index.js +1 -1
  83. package/dist/components/Toaster/Toaster.js +2 -2
  84. package/dist/components/Toaster/index.d.ts +3 -3
  85. package/dist/components/TreeMapChart/index.js +1 -1
  86. package/dist/components/VerificationCode/index.d.ts.map +1 -1
  87. package/dist/compositions/CodeEditor/index.js +1 -2
  88. package/dist/compositions/EstimateCost/Components/Item.js +1 -1
  89. package/dist/compositions/EstimateCost/Components/LineThrough.js +2 -2
  90. package/dist/compositions/EstimateCost/Components/Unit.js +1 -1
  91. package/dist/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
  92. package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
  93. package/dist/compositions/EstimateCost/Image.js +1 -1
  94. package/dist/compositions/InfoTable/components/Row.js +1 -1
  95. package/dist/compositions/Navigation/NavigationProvider.js +1 -1
  96. package/dist/compositions/Navigation/components/Group.js +1 -1
  97. package/dist/compositions/Navigation/components/PinnedItems.js +1 -1
  98. package/dist/compositions/OptionSelector/styles.css.js +57 -57
  99. package/dist/compositions/OrderSummary/helpers.d.ts.map +1 -1
  100. package/dist/compositions/OrderSummary/helpers.js +1 -1
  101. package/dist/helpers/nivoTheme.d.ts +1 -0
  102. package/dist/helpers/nivoTheme.d.ts.map +1 -1
  103. package/dist/helpers/nivoTheme.js +1 -0
  104. package/dist/ui.css +1 -1
  105. package/package.json +12 -13
  106. package/dist/components/SelectInput/components/Dropdown.d.ts +0 -42
  107. package/dist/components/SelectInput/components/Dropdown.d.ts.map +0 -1
  108. package/dist/components/SelectInput/components/DropdownOption.d.ts +0 -10
  109. package/dist/components/SelectInput/components/DropdownOption.d.ts.map +0 -1
  110. package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +0 -10
  111. package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
  import { init_toPropertyKey, toPropertyKey } from "./toPropertyKey.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
4
+ //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
5
5
  function _defineProperty(e, r, t) {
6
6
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
7
7
  value: t,
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
  import { _defineProperty, init_defineProperty } from "./defineProperty.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.122.0/helpers/objectSpread2.js
4
+ //#region \0@oxc-project+runtime@0.124.0/helpers/objectSpread2.js
5
5
  function ownKeys(e, r) {
6
6
  var t = Object.keys(e);
7
7
  if (Object.getOwnPropertySymbols) {
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
  import { _objectWithoutPropertiesLoose, init_objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.122.0/helpers/objectWithoutProperties.js
4
+ //#region \0@oxc-project+runtime@0.124.0/helpers/objectWithoutProperties.js
5
5
  function _objectWithoutProperties(e, t) {
6
6
  if (null == e) return {};
7
7
  var o;
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.122.0/helpers/objectWithoutPropertiesLoose.js
3
+ //#region \0@oxc-project+runtime@0.124.0/helpers/objectWithoutPropertiesLoose.js
4
4
  function _objectWithoutPropertiesLoose(r, e) {
5
5
  if (null == r) return {};
6
6
  var t = {};
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
  import { _typeof, init_typeof } from "./typeof.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
4
+ //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
5
5
  function toPrimitive(t, r) {
6
6
  if ("object" != _typeof(t) || !t) return t;
7
7
  var e = t[Symbol.toPrimitive];
@@ -2,7 +2,7 @@ import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
  import { _typeof, init_typeof } from "./typeof.js";
3
3
  import { init_toPrimitive, toPrimitive } from "./toPrimitive.js";
4
4
 
5
- //#region \0@oxc-project+runtime@0.122.0/helpers/toPropertyKey.js
5
+ //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
6
6
  function toPropertyKey(t) {
7
7
  var i = toPrimitive(t, "string");
8
8
  return "symbol" == _typeof(i) ? i : i + "";
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
3
+ //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
4
4
  import { Stack, init_Stack } from "../Stack/index.js";
5
5
  import { actionBarStyle, init_styles_css, rankActionBar } from "./styles.css.js";
6
6
  import { cn } from "@ultraviolet/utils";
@@ -8,9 +8,9 @@ import { useState } from "react";
8
8
  import { cn } from "@ultraviolet/utils";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { AlertCircleIcon } from "@ultraviolet/icons/AlertCircleIcon";
11
+ import { CheckCircleIcon } from "@ultraviolet/icons/CheckCircleIcon";
11
12
  import { CloseIcon } from "@ultraviolet/icons/CloseIcon";
12
- import { CheckCircleOutlineIcon } from "@ultraviolet/icons/CheckCircleOutlineIcon";
13
- import { InformationOutlineIcon } from "@ultraviolet/icons/InformationOutlineIcon";
13
+ import { InformationIcon } from "@ultraviolet/icons/InformationIcon";
14
14
  import { LightBulbIcon } from "@ultraviolet/icons/LightBulbIcon";
15
15
 
16
16
  //#region src/components/Alert/index.tsx
@@ -22,9 +22,9 @@ var init_Alert = __esmMin(() => {
22
22
  init_styles_css();
23
23
  sentimentIcons = {
24
24
  danger: AlertCircleIcon,
25
- info: InformationOutlineIcon,
25
+ info: InformationIcon,
26
26
  neutral: LightBulbIcon,
27
- success: CheckCircleOutlineIcon,
27
+ success: CheckCircleIcon,
28
28
  warning: AlertCircleIcon
29
29
  };
30
30
  Alert = ({ children, title, sentiment = "danger", buttonText, onClickButton, closable, onClose, className, disabled, "data-testid": dataTestId, size = "medium", style }) => {
@@ -54,16 +54,16 @@ var init_Alert = __esmMin(() => {
54
54
  gap: size === "small" ? 1 : 2,
55
55
  children: [/* @__PURE__ */ jsx(Icon, {
56
56
  "aria-hidden": "true",
57
- className: size === "small" ? alertStyle.smallIcon : "",
57
+ className: alertStyle.icon,
58
58
  prominence: sentiment === "neutral" ? "strong" : void 0,
59
59
  sentiment,
60
- size: size === "small" ? "small" : "large"
60
+ size: size === "small" ? "small" : "medium"
61
61
  }), /* @__PURE__ */ jsxs(Stack, {
62
62
  alignItems: "center",
63
63
  className: alertStyle.text,
64
64
  direction: "row",
65
65
  flex: "1 1 auto",
66
- gap: 1.5,
66
+ gap: size === "small" ? .5 : 1,
67
67
  wrap: true,
68
68
  children: [title ? /* @__PURE__ */ jsx(Text, {
69
69
  as: "span",
@@ -91,10 +91,10 @@ var init_Alert = __esmMin(() => {
91
91
  setOpened(false);
92
92
  onClose === null || onClose === void 0 || onClose();
93
93
  },
94
- sentiment: "neutral",
95
- size: "small",
94
+ sentiment,
95
+ size: "xsmall",
96
96
  variant: "ghost",
97
- children: /* @__PURE__ */ jsx(CloseIcon, {})
97
+ children: /* @__PURE__ */ jsx(CloseIcon, { sentiment: "neutral" })
98
98
  }) : null]
99
99
  });
100
100
  };
@@ -79,7 +79,7 @@ export declare const alertStyle: {
79
79
  text: string;
80
80
  button: Record<"medium" | "small", string>;
81
81
  buttonClose: string;
82
- smallIcon: string;
82
+ icon: string;
83
83
  };
84
84
  export {};
85
85
  //# sourceMappingURL=styles.css.d.ts.map
@@ -35,7 +35,7 @@ var init_styles_css = __esmMin(() => {
35
35
  small: "uv_1b838gxb"
36
36
  },
37
37
  buttonClose: "uv_1b838gxc",
38
- smallIcon: "uv_1b838gxd"
38
+ icon: "uv_1b838gxd"
39
39
  };
40
40
  });
41
41
 
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
4
4
  import { Text, init_Text } from "../Text/index.js";
5
5
  import { DEFAULT_COLORS, TEXT_VARIANT_BY_SIZE, init_constants, sizes } from "./constants.js";
6
6
  import { avatarStyle, init_styles_css } from "./styles.css.js";
@@ -14,12 +14,8 @@ var init_Badge = __esmMin(() => {
14
14
  init_constant();
15
15
  init_styles_css();
16
16
  Badge = ({ sentiment = "neutral", size = "medium", prominence = "default", disabled = false, className, children, "data-testid": dataTestId, style }) => {
17
- /**
18
- * Badge should display an aria-label if the status is not neutral or primary
19
- */
20
- const ariaLabel = useMemo(() => ["neutral", "primary"].some((baseSentiment) => baseSentiment === sentiment) ? void 0 : sentiment, [sentiment]);
21
17
  return /* @__PURE__ */ jsx(Text, {
22
- "aria-label": ariaLabel,
18
+ "aria-label": useMemo(() => ["neutral", "primary"].some((baseSentiment) => baseSentiment === sentiment) ? void 0 : sentiment, [sentiment]),
23
19
  as: "span",
24
20
  className: cn(className, badgeStyle.badge({
25
21
  disabled,
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
4
4
  import { getLegendColor, init_legend } from "../../helpers/legend.js";
5
5
  import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
6
6
  import { BarChartTooltip, init_Tooltip } from "./Tooltip.js";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
+ import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
4
4
  import { Text, init_Text } from "../../Text/index.js";
5
5
  import { Button, init_Button } from "../../Button/index.js";
6
6
  import { Link, init_Link } from "../../Link/index.js";
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
3
3
  import { carouselStyle, init_styles_css, widthVar } from "./styles.css.js";
4
4
  import { assignInlineVars } from "@vanilla-extract/dynamic";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -14,12 +14,12 @@ var init_Context = __esmMin(() => {
14
14
  monthToShow: 1,
15
15
  readOnly: false,
16
16
  selectsRange: false,
17
- setHoveredDate: () => null,
18
- setInputValue: () => null,
19
- setMonthToShow: () => null,
20
- setValue: () => null,
21
- setVisible: () => null,
22
- setYearToShow: () => null,
17
+ setHoveredDate: () => {},
18
+ setInputValue: () => {},
19
+ setMonthToShow: () => {},
20
+ setValue: () => {},
21
+ setVisible: () => {},
22
+ setYearToShow: () => {},
23
23
  showMonthYearPicker: false,
24
24
  yearToShow: 2e3
25
25
  });
@@ -66,7 +66,7 @@ var init_Drawer = __esmMin(() => {
66
66
  "data-size": size,
67
67
  "data-testid": dataTestId,
68
68
  disclosure,
69
- hideOnClickOutside,
69
+ hideOnClickOutside: hideOnClickOutside !== null && hideOnClickOutside !== void 0 ? hideOnClickOutside : !push,
70
70
  hideOnEsc,
71
71
  id,
72
72
  isClosable,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,SAAS,CAAA;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,qJAapB,eAAe,4CAwEjB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,SAAS,CAAA;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,qJAapB,eAAe,4CA4EjB,CAAA"}
@@ -61,22 +61,22 @@ var init_EmptyState = __esmMin(() => {
61
61
  })]
62
62
  })]
63
63
  }),
64
- /* @__PURE__ */ jsxs(Stack, {
64
+ primaryButton || secondaryButton || learnMore ? /* @__PURE__ */ jsxs(Stack, {
65
65
  alignItems: "center",
66
66
  gap: 2,
67
67
  justifyContent: "center",
68
- children: [/* @__PURE__ */ jsxs(Stack, {
68
+ children: [primaryButton || secondaryButton ? /* @__PURE__ */ jsxs(Stack, {
69
69
  direction: "row",
70
70
  gap: 2,
71
71
  children: [secondaryButton, primaryButton]
72
- }), (learnMore === null || learnMore === void 0 ? void 0 : learnMore.text) ? /* @__PURE__ */ jsx(Link, {
72
+ }) : null, (learnMore === null || learnMore === void 0 ? void 0 : learnMore.text) ? /* @__PURE__ */ jsx(Link, {
73
73
  href: learnMore.link,
74
74
  iconPosition: "right",
75
75
  size: size === "small" ? "small" : void 0,
76
76
  target: learnMore.target,
77
77
  children: learnMore.text
78
78
  }) : null]
79
- }),
79
+ }) : null,
80
80
  children
81
81
  ]
82
82
  })
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
3
3
  import { init_constant } from "./constant.js";
4
4
  import { animationDurationVar, expandableStyle, init_styles_css } from "./styles.css.js";
5
5
  import { useEffect, useRef, useState } from "react";
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/Expandable/NonAnimatedExpandable.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"DropzoneContent.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/DropzoneContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,eAAO,MAAM,eAAe,qDAMzB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC9B,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAC7C,4CAuBA,CAAA"}
1
+ {"version":3,"file":"DropzoneContent.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/DropzoneContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,eAAO,MAAM,eAAe,qDAMzB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC9B,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAC7C,4CAsBA,CAAA"}
@@ -14,10 +14,9 @@ var init_DropzoneContent = __esmMin(() => {
14
14
  sentiment: isSmall ? "neutral" : "primary",
15
15
  size: isSmall ? "small" : "xlarge"
16
16
  }), /* @__PURE__ */ jsx(Text, {
17
- as: isSmall ? "label" : "div",
17
+ as: isSmall ? "p" : "div",
18
18
  className: isSmall ? fileInputStyle.titleSmall[disabled ? "disabled" : "default"] : void 0,
19
19
  disabled,
20
- htmlFor: inputId,
21
20
  placement: "left",
22
21
  sentiment: "neutral",
23
22
  variant: isSmall ? "bodySmallStrong" : "headingSmallStrong",
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
- import { _objectWithoutProperties, init_objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
2
+ import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
3
+ import { _objectWithoutProperties, init_objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectWithoutProperties.js";
4
4
  import { Button, init_Button as init_Button$1 } from "../../Button/index.js";
5
5
  import { init_FileInputProvider, useFileInput } from "../FileInputProvider.js";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,3 +1,3 @@
1
1
  import type { ListProps } from '../types';
2
- export declare const ListFiles: ({ limit, textLimit, prominence, }: ListProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const ListFiles: ({ limit, textLimit, prominence, onDelete, }: ListProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  //# sourceMappingURL=List.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/FileInput/components/List.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,UAAU,CAAA;AA2DnD,eAAO,MAAM,SAAS,sCAInB,SAAS,mDAyFX,CAAA"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/FileInput/components/List.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,UAAU,CAAA;AA2DnD,eAAO,MAAM,SAAS,gDAKnB,SAAS,mDA0FX,CAAA"}
@@ -71,7 +71,7 @@ var init_List = __esmMin(() => {
71
71
  })
72
72
  });
73
73
  };
74
- ListFiles = ({ limit, textLimit, prominence = "default" }) => {
74
+ ListFiles = ({ limit, textLimit, prominence = "default", onDelete }) => {
75
75
  const [computedLimit, setLimit] = useState(limit);
76
76
  const seeAllOnClick = () => {
77
77
  setLimit(void 0);
@@ -120,6 +120,7 @@ var init_List = __esmMin(() => {
120
120
  const newFiles = files.filter((oldFile) => file.file !== oldFile.file);
121
121
  setFiles(newFiles);
122
122
  onChangeFiles === null || onChangeFiles === void 0 || onChangeFiles(newFiles);
123
+ onDelete === null || onDelete === void 0 || onDelete(file.fileName);
123
124
  },
124
125
  sentiment,
125
126
  size: "xsmall",
@@ -1,5 +1,5 @@
1
1
  import type { FileInputProps } from './types';
2
- export declare const FileInput: (({ style, className, variant, size, title, children, onDrop, label, labelDescription, disabled, accept, 'aria-label': ariaLabel, defaultFiles, onChangeFiles, helper, multiple, bottom, required, error, 'data-testid': dataTestid, }: FileInputProps) => import("react/jsx-runtime").JSX.Element) & {
2
+ export declare const FileInput: (({ style, className, variant, size, title, children, onDrop, label, labelDescription, disabled, accept, 'aria-label': ariaLabel, defaultFiles, onChangeFiles, helper, multiple, bottom, required, error, onChange, onFocus, onBlur, name, onKeyDown, onKeyUp, disabledDragndrop, validator, 'data-testid': dataTestid, }: FileInputProps) => import("react/jsx-runtime").JSX.Element) & {
3
3
  Button: ({ children, disabled, ...props }: ({
4
4
  type?: "button" | "reset" | "submit" | undefined;
5
5
  autoFocus?: boolean | undefined;
@@ -57,6 +57,6 @@ export declare const FileInput: (({ style, className, variant, size, title, chil
57
57
  target?: string;
58
58
  download?: string;
59
59
  })))) & import("react").RefAttributes<Element>) => import("react/jsx-runtime").JSX.Element;
60
- List: ({ limit, textLimit, prominence, }: import("./types").ListProps) => import("react/jsx-runtime").JSX.Element | null;
60
+ List: ({ limit, textLimit, prominence, onDelete, }: import("./types").ListProps) => import("react/jsx-runtime").JSX.Element | null;
61
61
  };
62
62
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,SAAS,CAAA;AAiRxD,eAAO,MAAM,SAAS,0OAtPnB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyPf,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAa,cAAc,EAAE,MAAM,SAAS,CAAA;AAiUxD,eAAO,MAAM,SAAS,6TA9RnB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiSf,CAAA"}