@algolia/satellite 1.6.0 → 1.8.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 (132) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +142 -0
  2. package/dist/cjs/Actions/Accordion/Accordion.js +149 -0
  3. package/dist/cjs/Actions/Accordion/Accordion.tailwind.d.ts +5 -0
  4. package/dist/cjs/Actions/Accordion/Accordion.tailwind.js +44 -0
  5. package/dist/cjs/Actions/Button/PolymorphicButton.js +2 -2
  6. package/dist/cjs/Actions/Button/PolymorphicIconButton.js +2 -2
  7. package/dist/cjs/Actions/Button/types.d.ts +2 -2
  8. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.d.ts +2 -2
  9. package/dist/cjs/Actions/index.d.ts +2 -0
  10. package/dist/cjs/Actions/index.js +18 -0
  11. package/dist/cjs/Fields/AutoComplete/AutoComplete.js +4 -4
  12. package/dist/cjs/Fields/DatePicker/components/Calendar.js +1 -4
  13. package/dist/cjs/Fields/Field/Field.js +12 -2
  14. package/dist/cjs/Fields/Field/FieldContext.d.ts +1 -0
  15. package/dist/cjs/Fields/Field/useField.d.ts +2 -1
  16. package/dist/cjs/Fields/Field/useField.js +7 -2
  17. package/dist/cjs/Fields/Form/Form.d.ts +12 -10
  18. package/dist/cjs/Fields/Form/Form.js +50 -38
  19. package/dist/cjs/Fields/Form/FormContext.d.ts +6 -6
  20. package/dist/cjs/Fields/Form/FormContext.js +2 -2
  21. package/dist/cjs/Fields/Form/index.d.ts +4 -3
  22. package/dist/cjs/Fields/Form/index.js +31 -21
  23. package/dist/cjs/Fields/Form/stories/AsynchronousValidation.js +142 -127
  24. package/dist/cjs/Fields/Form/stories/Complex.js +648 -642
  25. package/dist/cjs/Fields/Form/stories/DependentFieldsValidation.js +127 -121
  26. package/dist/cjs/Fields/Form/stories/DirtyFields.js +195 -189
  27. package/dist/cjs/Fields/Form/stories/DynamicFieldsValidation.js +251 -245
  28. package/dist/cjs/Fields/Form/stories/ExtraErrors.js +276 -0
  29. package/dist/cjs/Fields/Form/stories/FieldArrays.js +180 -174
  30. package/dist/cjs/Fields/Form/stories/JSONForms.js +58 -55
  31. package/dist/cjs/Fields/Form/stories/MultiStep.js +456 -472
  32. package/dist/cjs/Fields/Form/stories/ValidationStrategies.js +226 -237
  33. package/dist/cjs/Fields/Form/useForm.d.ts +1 -1
  34. package/dist/cjs/Fields/Form/useForm.js +3 -3
  35. package/dist/cjs/Fields/RangeSlider/RangeSlider.js +7 -8
  36. package/dist/cjs/Helpers/utilities/focusable.tailwind.js +1 -1
  37. package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.js +1 -2
  38. package/dist/cjs/Indicators/Skeleton/Skeleton.d.ts +7 -0
  39. package/dist/cjs/Indicators/Skeleton/Skeleton.js +12 -5
  40. package/dist/cjs/Layout/Sidebar/SidebarButtonLink.js +1 -1
  41. package/dist/cjs/Layout/Sidebar/SidebarLink.js +2 -2
  42. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +1 -1
  43. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +4 -5
  44. package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +3 -1
  45. package/dist/cjs/Layout/Tables/DataTable/DataTable.js +3 -0
  46. package/dist/cjs/Layout/Tables/DataTable/components/Body.d.ts +1 -1
  47. package/dist/cjs/Layout/Tables/DataTable/components/Header.d.ts +1 -1
  48. package/dist/cjs/Layout/Tables/DataTable/components/HeaderCell.d.ts +1 -1
  49. package/dist/cjs/Layout/Tables/DataTable/utils.d.ts +1 -1
  50. package/dist/cjs/Layout/Tables/Table/Table.d.ts +2 -0
  51. package/dist/cjs/Layout/Tables/Table/Table.js +4 -2
  52. package/dist/cjs/Layout/Tables/Table/Table.tailwind.js +6 -1
  53. package/dist/cjs/Navigation/Stepper/Step.js +8 -7
  54. package/dist/cjs/Navigation/Stepper/Stepper.d.ts +6 -0
  55. package/dist/cjs/Navigation/Stepper/Stepper.js +9 -3
  56. package/dist/cjs/Navigation/Stepper/StepperContext.d.ts +2 -1
  57. package/dist/cjs/Overlay/Dropdown/DropdownContext.d.ts +1 -1
  58. package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +1 -1
  59. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +1 -1
  60. package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.d.ts +1 -1
  61. package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.d.ts +1 -1
  62. package/dist/cjs/styles/helpers/makePurgeCssExtractor.js +3 -3
  63. package/dist/cjs/styles/tailwind.config.js +1 -1
  64. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  65. package/dist/cjs/utils/useTriggerInputChange.js +4 -3
  66. package/dist/esm/Actions/Accordion/Accordion.d.ts +142 -0
  67. package/dist/esm/Actions/Accordion/Accordion.js +139 -0
  68. package/dist/esm/Actions/Accordion/Accordion.tailwind.d.ts +5 -0
  69. package/dist/esm/Actions/Accordion/Accordion.tailwind.js +43 -0
  70. package/dist/esm/Actions/Button/PolymorphicButton.js +2 -2
  71. package/dist/esm/Actions/Button/PolymorphicIconButton.js +2 -2
  72. package/dist/esm/Actions/Button/types.d.ts +2 -2
  73. package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +2 -2
  74. package/dist/esm/Actions/index.d.ts +2 -0
  75. package/dist/esm/Actions/index.js +2 -2
  76. package/dist/esm/Fields/AutoComplete/AutoComplete.js +4 -4
  77. package/dist/esm/Fields/DatePicker/components/Calendar.js +1 -4
  78. package/dist/esm/Fields/Field/Field.js +13 -3
  79. package/dist/esm/Fields/Field/FieldContext.d.ts +1 -0
  80. package/dist/esm/Fields/Field/useField.d.ts +2 -1
  81. package/dist/esm/Fields/Field/useField.js +7 -2
  82. package/dist/esm/Fields/Form/Form.d.ts +12 -10
  83. package/dist/esm/Fields/Form/Form.js +52 -40
  84. package/dist/esm/Fields/Form/FormContext.d.ts +6 -6
  85. package/dist/esm/Fields/Form/FormContext.js +1 -1
  86. package/dist/esm/Fields/Form/index.d.ts +4 -3
  87. package/dist/esm/Fields/Form/index.js +2 -3
  88. package/dist/esm/Fields/Form/stories/AsynchronousValidation.js +143 -128
  89. package/dist/esm/Fields/Form/stories/Complex.js +649 -643
  90. package/dist/esm/Fields/Form/stories/DependentFieldsValidation.js +128 -122
  91. package/dist/esm/Fields/Form/stories/DirtyFields.js +196 -190
  92. package/dist/esm/Fields/Form/stories/DynamicFieldsValidation.js +252 -246
  93. package/dist/esm/Fields/Form/stories/ExtraErrors.js +266 -0
  94. package/dist/esm/Fields/Form/stories/FieldArrays.js +181 -175
  95. package/dist/esm/Fields/Form/stories/JSONForms.js +59 -56
  96. package/dist/esm/Fields/Form/stories/MultiStep.js +457 -473
  97. package/dist/esm/Fields/Form/stories/ValidationStrategies.js +227 -238
  98. package/dist/esm/Fields/Form/useForm.d.ts +1 -1
  99. package/dist/esm/Fields/Form/useForm.js +3 -3
  100. package/dist/esm/Fields/RangeSlider/RangeSlider.js +8 -9
  101. package/dist/esm/Helpers/utilities/focusable.tailwind.js +1 -1
  102. package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.js +1 -2
  103. package/dist/esm/Indicators/Skeleton/Skeleton.d.ts +7 -0
  104. package/dist/esm/Indicators/Skeleton/Skeleton.js +12 -5
  105. package/dist/esm/Layout/Sidebar/SidebarButtonLink.js +1 -1
  106. package/dist/esm/Layout/Sidebar/SidebarLink.js +2 -2
  107. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +1 -1
  108. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +4 -5
  109. package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +3 -1
  110. package/dist/esm/Layout/Tables/DataTable/DataTable.js +3 -0
  111. package/dist/esm/Layout/Tables/DataTable/components/Body.d.ts +1 -1
  112. package/dist/esm/Layout/Tables/DataTable/components/Header.d.ts +1 -1
  113. package/dist/esm/Layout/Tables/DataTable/components/HeaderCell.d.ts +1 -1
  114. package/dist/esm/Layout/Tables/DataTable/utils.d.ts +1 -1
  115. package/dist/esm/Layout/Tables/Table/Table.d.ts +2 -0
  116. package/dist/esm/Layout/Tables/Table/Table.js +4 -2
  117. package/dist/esm/Layout/Tables/Table/Table.tailwind.js +6 -1
  118. package/dist/esm/Navigation/Stepper/Step.js +8 -7
  119. package/dist/esm/Navigation/Stepper/Stepper.d.ts +6 -0
  120. package/dist/esm/Navigation/Stepper/Stepper.js +9 -3
  121. package/dist/esm/Navigation/Stepper/StepperContext.d.ts +2 -1
  122. package/dist/esm/Overlay/Dropdown/DropdownContext.d.ts +1 -1
  123. package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +1 -1
  124. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +1 -1
  125. package/dist/esm/Overlay/MenuButton/components/items/LinkItem.d.ts +1 -1
  126. package/dist/esm/Overlay/MenuButton/components/items/ToggleItem.d.ts +1 -1
  127. package/dist/esm/styles/helpers/makePurgeCssExtractor.js +3 -3
  128. package/dist/esm/styles/tailwind.config.js +1 -1
  129. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  130. package/dist/esm/utils/useTriggerInputChange.js +4 -3
  131. package/dist/satellite.min.css +1 -1
  132. package/package.json +20 -19
@@ -6,16 +6,22 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Skeleton = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
  var _clsx = _interopRequireDefault(require("clsx"));
12
12
  var _Icons = require("../../Icons");
13
13
  var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- var _templateObject, _templateObject2;
16
- var _excluded = ["circle", "image", "className"];
15
+ var _excluded = ["circle", "image", "className", "size"];
16
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ var DEFAULT_SKELETON_SIZES = {
20
+ sm: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["w-full h-8"]))),
21
+ md: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["w-full h-16"]))),
22
+ lg: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["w-full h-32"])))
23
+ };
24
+
19
25
  /**
20
26
  * The `Skeleton` component is used to display a placeholder during loading.
21
27
  *
@@ -28,12 +34,13 @@ var Skeleton = exports.Skeleton = function Skeleton(_ref) {
28
34
  _ref$image = _ref.image,
29
35
  image = _ref$image === void 0 ? false : _ref$image,
30
36
  className = _ref.className,
37
+ size = _ref.size,
31
38
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
39
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, props), {}, {
33
40
  "aria-hidden": true,
34
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex animate-pulse bg-grey-200/80 ", ""])), circle ? "rounded-full aspect-square max-w-fit" : "rounded"), className),
41
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["flex animate-pulse bg-grey-200/80 ", ""])), circle ? "rounded-full aspect-square max-w-fit" : "rounded"), size && DEFAULT_SKELETON_SIZES[size], className),
35
42
  children: image ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.ImageIcon, {
36
- className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["mx-auto self-center text-grey-300/50 w-[40%] h-[40%] max-w-[32px] max-h-[32px]"])))
43
+ className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["mx-auto self-center text-grey-300/50 w-[40%] h-[40%] max-w-[32px] max-h-[32px]"])))
37
44
  }) : null
38
45
  }));
39
46
  };
@@ -66,7 +66,7 @@ var SidebarButtonLink = exports.SidebarButtonLink = function SidebarButtonLink(p
66
66
  onBlur: function onBlur() {
67
67
  return setIsInteractedWith(false);
68
68
  },
69
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n h-8 min-w-8 w-full rounded\n flex items-center space-x-3\n border border-transparent\n display-body\n hover:no-underline focus:no-underline\n ", "\n ", "\n ", "\n ", "\n "])), disabled ? "cursor-not-allowed opacity-70" : "focus:border-grey-500", isActive ? "shadow-z100" : !disabled && "hover:border-grey-200", isActive && "bg-gradient-to-b from-white to-grey-50", collapsed ? "pl-2" : "px-2"),
69
+ className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n h-8 min-w-8 w-full rounded\n flex items-center space-x-3\n border border-transparent\n display-body\n hover:no-underline focus:no-underline\n ", "\n ", "\n ", "\n ", "\n "])), disabled ? "cursor-not-allowed opacity-70" : "focusable-visible", isActive ? "shadow-z100" : !disabled && "hover:border-grey-200", isActive && "bg-gradient-to-b from-white to-grey-50", collapsed ? "pl-2" : "px-2"),
70
70
  "aria-current": isActive,
71
71
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
72
72
  className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["", " ml-[-3px] shrink-0"])), showColors ? "text-accent-600" : "text-grey-400"),
@@ -30,14 +30,14 @@ var SidebarLink = exports.SidebarLink = function SidebarLink(props) {
30
30
  var isActive = !disabled && !isExternalLink && isLinkActive((_linkProps$href = linkProps.href) !== null && _linkProps$href !== void 0 ? _linkProps$href : "");
31
31
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", _objectSpread(_objectSpread({}, linkProps), {}, {
32
32
  id: id,
33
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex items-center overflow-hidden w-full\n group hover:no-underline focus:outline-none\n ", "\n "])), disabled ? "cursor-not-allowed" : "cursor-pointer"), className),
33
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex items-center w-full\n group focusable-visible-group hover:no-underline focus:outline-none\n ", "\n "])), disabled ? "cursor-not-allowed" : "cursor-pointer"), className),
34
34
  "aria-current": isActive,
35
35
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
36
36
  className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 mr-3 ", ""])), disabled ? "text-grey-300" : "text-grey-500"),
37
37
  width: "1rem",
38
38
  height: "1rem"
39
39
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
40
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n flex-1 inline-flex items-center overflow-hidden\n ", ""])), disabled ? "text-grey-300" : isActive ? "font-semibold text-accent-600" : "typo-subdued group-focus:text-accent-600 group-hover:text-accent-600"),
40
+ className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n flex-1 inline-flex items-center overflow-hidden\n ", ""])), disabled ? "text-grey-300" : isActive ? "font-semibold text-accent-600" : "typo-subdued focusable-visible-group-item group-hover:text-accent-600"),
41
41
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
42
42
  className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["truncate"]))),
43
43
  children: children
@@ -23,7 +23,7 @@ var SidebarGroupLink = exports.SidebarGroupLink = function SidebarGroupLink(prop
23
23
  var isExternalLink = linkProps.target === "_blank";
24
24
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", _objectSpread(_objectSpread({}, linkProps), {}, {
25
25
  id: id,
26
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n inline-flex w-full items-center hover:no-underline focus:outline-none leading-md\n ", "\n ", ""])), disabled ? "cursor-not-allowed" : "cursor-pointer", disabled ? "text-grey-300" : active ? "font-semibold text-accent-600" : "typo-subdued hover:text-accent-600 focus:text-accent-600"),
26
+ className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n inline-flex w-full items-center hover:no-underline leading-md\n ", "\n ", ""])), disabled ? "cursor-not-allowed" : "cursor-pointer focusable-visible", disabled ? "text-grey-300" : active ? "font-semibold text-accent-600" : "typo-subdued hover:text-accent-600"),
27
27
  "aria-current": active,
28
28
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
29
29
  className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["truncate"]))),
@@ -17,7 +17,7 @@ var _SidebarContext = require("../SidebarContext");
17
17
  var _ActiveLinkIndicator = require("./ActiveLinkIndicator");
18
18
  var _SidebarGroupLink = require("./SidebarGroupLink");
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
20
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
21
21
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
23
  var isCollapsibleSidebarLinksGroupProps = function isCollapsibleSidebarLinksGroupProps(props) {
@@ -58,7 +58,7 @@ var SidebarLinksGroup = exports.SidebarLinksGroup = function SidebarLinksGroup(p
58
58
  className: className,
59
59
  children: [isCollapsibleSidebarLinksGroupProps(props) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
60
60
  type: "button",
61
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex w-full text-left items-center mb-4 overflow-hidden focus:outline-none group cursor-pointer"]))),
61
+ className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n flex w-full text-left items-center mb-4 focus:outline-none group focusable-visible-group cursor-pointer"]))),
62
62
  onClick: function onClick() {
63
63
  return setIsOpen(!isOpen);
64
64
  },
@@ -69,7 +69,7 @@ var SidebarLinksGroup = exports.SidebarLinksGroup = function SidebarLinksGroup(p
69
69
  width: "1rem",
70
70
  height: "1rem"
71
71
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
72
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["truncate display-subheading uppercase text-grey-800 group-focus:text-accent-500 group-hover:text-accent-500 mr-2"]))),
72
+ className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["truncate display-subheading uppercase text-grey-800 focusable-visible-group-item group-hover:text-accent-500 mr-2"]))),
73
73
  children: props.title
74
74
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.ChevronRightIcon, {
75
75
  className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["shrink-0 text-grey-500 motion-safe:transition-all motion-safe:duration-150 ease-in-out ", ""])), isOpen && "rotate-90"),
@@ -83,10 +83,9 @@ var SidebarLinksGroup = exports.SidebarLinksGroup = function SidebarLinksGroup(p
83
83
  activeIndex: activeLinkIndex,
84
84
  linksCount: links.length
85
85
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
86
- className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["flex-1 space-y-2 overflow-hidden"]))),
86
+ className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["flex-1 space-y-2 min-w-0"]))),
87
87
  children: links.map(function (link, idx) {
88
88
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
89
- className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["overflow-hidden"]))),
90
89
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SidebarGroupLink.SidebarGroupLink, _objectSpread(_objectSpread({}, link), {}, {
91
90
  active: activeLinkIndex === idx
92
91
  }))
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import { type DisplayMode } from "../Table";
2
3
  import type { ColumnDefinition, DataConfiguration, GetItemId, PaginationConfiguration, Row, SelectMode, Sorting, Status } from "./types";
3
4
  declare type CanSelectItem<Item> = (item: Item, idx: number) => boolean;
4
5
  export declare type SortMode = "single" | "multi";
@@ -21,6 +22,7 @@ interface BaseDataTableProps<Item> {
21
22
  pagination?: PaginationConfiguration;
22
23
  /** the `onChange` is triggered when either sorting or paginating */
23
24
  onChange?(dataConfiguration: DataConfiguration): void;
25
+ mode?: DisplayMode;
24
26
  /** Specify the global status of the table */
25
27
  status?: Status;
26
28
  /** Allows for specifying a custom empty state */
@@ -51,5 +53,5 @@ export declare type DataTableProps<Item> = BaseDataTableProps<Item> & (DataTable
51
53
  *
52
54
  * See the [Data Table documentation page](https://satellite.algolia.com/layouts/data-table) for more information.
53
55
  */
54
- export declare const DataTable: <Item extends {}>({ data, itemId, columns, onChange, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale, }: DataTableProps<Item>) => import("react/jsx-runtime").JSX.Element;
56
+ export declare const DataTable: <Item extends object>({ data, itemId, columns, onChange, mode, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale, }: DataTableProps<Item>) => import("react/jsx-runtime").JSX.Element;
55
57
  export {};
@@ -52,6 +52,8 @@ var DataTable = exports.DataTable = function DataTable(_ref) {
52
52
  itemId = _ref.itemId,
53
53
  columns = _ref.columns,
54
54
  onChange = _ref.onChange,
55
+ _ref$mode = _ref.mode,
56
+ mode = _ref$mode === void 0 ? "comfortable" : _ref$mode,
55
57
  _ref$status = _ref.status,
56
58
  status = _ref$status === void 0 ? "success" : _ref$status,
57
59
  noDataContent = _ref.noDataContent,
@@ -220,6 +222,7 @@ var DataTable = exports.DataTable = function DataTable(_ref) {
220
222
  })
221
223
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Table.Table, {
222
224
  className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["datatable ", " ", ""])), status === "loading" && "pointer-events-none select-none", status === "loading" && data.length === 0 && "h-48"),
225
+ mode: mode,
223
226
  highlight: false,
224
227
  footer: shouldRenderPagination() && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Footer.DataTableFooter, {
225
228
  pagination: pagination,
@@ -11,4 +11,4 @@ export interface DataTableBodyProps<Item> extends Pick<DataTableProps<Item>, "se
11
11
  selectMode: SelectMode;
12
12
  locale: Required<DataTableLocale>;
13
13
  }
14
- export declare const DataTableBody: <Item extends {}>({ rows, columns, status, noDataContent, errorContent, selectMode, selection, onSelectionChange, onRowHoverChange, canHoverRow, locale, }: DataTableBodyProps<Item>) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const DataTableBody: <Item extends object>({ rows, columns, status, noDataContent, errorContent, selectMode, selection, onSelectionChange, onRowHoverChange, canHoverRow, locale, }: DataTableBodyProps<Item>) => import("react/jsx-runtime").JSX.Element;
@@ -5,4 +5,4 @@ export interface DataTableHeaderProps<Item> {
5
5
  onToggleSort: (columnId: string, direction: SortingDirection) => void;
6
6
  disabled?: boolean;
7
7
  }
8
- export declare const DataTableHeader: <Item extends {}>({ columns, sorting, onToggleSort, disabled, }: DataTableHeaderProps<Item>) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const DataTableHeader: <Item extends object>({ columns, sorting, onToggleSort, disabled, }: DataTableHeaderProps<Item>) => import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,4 @@ export interface DataTableHeaderCellProps<Item> extends HTMLAttributes<HTMLTable
8
8
  onToggleSort: (columnId: string, sortingDirection: SortingDirection) => void;
9
9
  children: ReactNode;
10
10
  }
11
- export declare const DataTableHeaderCell: <Item extends {}>({ sortingDirection, onToggleSort, column: { id, className, sort }, disabled, children, ...props }: DataTableHeaderCellProps<Item>) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const DataTableHeaderCell: <Item extends object>({ sortingDirection, onToggleSort, column: { id, className, sort }, disabled, children, ...props }: DataTableHeaderCellProps<Item>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import type { AdvancedColumnDefinition, DeterminatePagination, IndeterminatePagination, PaginationConfiguration, Row } from "./types";
2
2
  export declare const isDeterminatePagination: (pagination: PaginationConfiguration) => pagination is DeterminatePagination;
3
3
  export declare const isIndeterminatePagination: (pagination: PaginationConfiguration) => pagination is IndeterminatePagination;
4
- export declare const getCellValue: <Item extends {}>(column: AdvancedColumnDefinition<Item>, row: Row<Item>) => any;
4
+ export declare const getCellValue: <Item extends object>(column: AdvancedColumnDefinition<Item>, row: Row<Item>) => any;
@@ -1,9 +1,11 @@
1
1
  import type { DetailedHTMLProps, ReactNode, TableHTMLAttributes, VFC } from "react";
2
+ export declare type DisplayMode = "comfortable" | "compact";
2
3
  export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
3
4
  footer?: ReactNode;
4
5
  smallFooter?: boolean;
5
6
  hasActions?: boolean;
6
7
  highlight?: boolean;
8
+ mode?: DisplayMode;
7
9
  }
8
10
  /**
9
11
  * The `Table` component is used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
@@ -13,7 +13,7 @@ var _satellitePrefixer = _interopRequireDefault(require("../../../styles/helpers
13
13
  var _TableFooter = require("./components/TableFooter");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  var _templateObject, _templateObject2, _templateObject3;
16
- var _excluded = ["className", "footer", "smallFooter", "hasActions", "highlight"];
16
+ var _excluded = ["className", "footer", "smallFooter", "hasActions", "highlight", "mode"];
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
19
  /**
@@ -29,13 +29,15 @@ var Table = exports.Table = function Table(_ref) {
29
29
  hasActions = _ref.hasActions,
30
30
  _ref$highlight = _ref.highlight,
31
31
  highlight = _ref$highlight === void 0 ? true : _ref$highlight,
32
+ _ref$mode = _ref.mode,
33
+ mode = _ref$mode === void 0 ? "comfortable" : _ref$mode,
32
34
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
33
35
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
34
36
  className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["rounded text-grey-900 bg-white display-body"]))), className),
35
37
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
36
38
  className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["overflow-x-auto"]))),
37
39
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("table", _objectSpread(_objectSpread({}, props), {}, {
38
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["table ", " ", ""])), hasActions && "table-with-actions", highlight && "table-with-highlight")
40
+ className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["table ", " ", " ", ""])), mode === "compact" && "table-compact", hasActions && "table-with-actions", highlight && "table-with-highlight")
39
41
  }))
40
42
  }), !!footer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableFooter.TableFooter, {
41
43
  size: smallFooter ? "small" : "default",
@@ -11,7 +11,7 @@ var tablePlugin = plugin(function (_ref) {
11
11
  borderCollapse: "collapse",
12
12
  textAlign: "left",
13
13
  "th, td": {
14
- padding: "14px 16px"
14
+ padding: "12px 16px"
15
15
  },
16
16
  thead: {
17
17
  backgroundColor: theme("colors.grey.50")
@@ -24,6 +24,11 @@ var tablePlugin = plugin(function (_ref) {
24
24
  borderBottom: "1px solid ".concat(theme("colors.grey.100"))
25
25
  }
26
26
  },
27
+ ".table-compact": {
28
+ "th, td": {
29
+ padding: "10px 16px"
30
+ }
31
+ },
27
32
  ".table-with-actions": {
28
33
  "th:last-of-type, td:last-of-type": {
29
34
  textAlign: "right"
@@ -17,7 +17,7 @@ var _uniqueId = require("../../utils/uniqueId");
17
17
  var _StepperContext = require("./StepperContext");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  var _excluded = ["className", "index", "icon", "label", "name", "completed", "disabled"];
20
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29;
20
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31;
21
21
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
23
  var BUTTON_SIZE_CLASSNAMES = {
@@ -63,6 +63,7 @@ var Step = exports.Step = function Step(_ref) {
63
63
  var activeLocale = typeof locale.activeStep === "function" ? locale.activeStep(stepName) : locale.activeStep;
64
64
  var completedLocale = typeof locale.completedStep === "function" ? locale.completedStep(stepName) : locale.completedStep;
65
65
  var incompletedLocale = typeof locale.incompletedStep === "function" ? locale.incompletedStep(stepName) : locale.incompletedStep;
66
+ var isVertical = context.orientation === "vertical";
66
67
  var Icon = CustomIcon;
67
68
  if (completed) {
68
69
  Icon = CheckIconInternal;
@@ -78,7 +79,7 @@ var Step = exports.Step = function Step(_ref) {
78
79
  "aria-label": disabled ? disabledLocale : active ? activeLocale : completed ? completedLocale : incompletedLocale,
79
80
  "aria-current": active ? "step" : undefined,
80
81
  disabled: disabled,
81
- tabIndex: index === context.activeStep ? 0 : -1,
82
+ tabIndex: index === context.focusedStep ? 0 : -1,
82
83
  "data-step-idx": index,
83
84
  onClick: function onClick() {
84
85
  var _context$onStepChange;
@@ -96,20 +97,20 @@ var Step = exports.Step = function Step(_ref) {
96
97
  }
97
98
  },
98
99
  children: [context.connectors && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
99
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["absolute -z-10 border-l h-full group-last/step:hidden"]))), completed ? (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["border-green-600"]))) : (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["border-grey-200"]))), CONNECTOR_SIZE_CLASSNAMES[context.size])
100
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["absolute -z-10 group-last/step:hidden"]))), isVertical ? (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["border-l h-full"]))) : (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["border-t w-4 -right-px translate-x-full"]))), completed ? (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["border-green-600"]))) : (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["border-grey-200"]))), isVertical && CONNECTOR_SIZE_CLASSNAMES[context.size])
100
101
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
101
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["rounded-full flex items-center justify-center shrink-0 text-sm"]))), !active && !completed && (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100"]))), !active && !completed && !disabled && (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["group-hover/button:bg-white"]))), active && !completed && (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-800 text-white"]))), completed && (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["bg-green-600 text-white"]))), ICON_SIZE_CLASSNAMES[context.size]),
102
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["rounded-full flex items-center justify-center shrink-0 text-sm"]))), !active && !completed && (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100"]))), !active && !completed && !disabled && (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["group-hover/button:bg-white"]))), active && !completed && (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-800 text-white"]))), completed && (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["bg-green-600 text-white"]))), ICON_SIZE_CLASSNAMES[context.size]),
102
103
  children: Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
103
104
  width: ICON_SIZE[context.size],
104
105
  height: ICON_SIZE[context.size]
105
106
  }) : index + 1
106
107
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
107
- className: (0, _clsx["default"])(disabled && (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["text-grey-300"])))),
108
+ className: (0, _clsx["default"])(disabled && (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["text-grey-300"])))),
108
109
  children: [!!label && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
109
- className: (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["text-sm line-clamp-1"]))),
110
+ className: (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["text-sm line-clamp-1"]))),
110
111
  children: label
111
112
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["text-base line-clamp-2"]))), (completed || active) && (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["text-grey-900"]))), context.size === "small" && (0, _satellitePrefixer["default"])(_templateObject29 || (_templateObject29 = (0, _taggedTemplateLiteral2["default"])(["text-sm"])))),
113
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject29 || (_templateObject29 = (0, _taggedTemplateLiteral2["default"])(["text-base line-clamp-2"]))), (completed || active) && (0, _satellitePrefixer["default"])(_templateObject30 || (_templateObject30 = (0, _taggedTemplateLiteral2["default"])(["text-grey-900"]))), context.size === "small" && (0, _satellitePrefixer["default"])(_templateObject31 || (_templateObject31 = (0, _taggedTemplateLiteral2["default"])(["text-sm"])))),
113
114
  children: name
114
115
  })]
115
116
  })]
@@ -7,6 +7,7 @@ export declare type StepperLocale = {
7
7
  completedStep?: string | ((stepName: string) => string);
8
8
  };
9
9
  export declare type StepperSizes = "small" | "default" | "large";
10
+ export declare type StepperOrientation = "horizontal" | "vertical";
10
11
  export interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
11
12
  /**
12
13
  * Defines the steps of the Stepper.
@@ -27,6 +28,11 @@ export interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, "chil
27
28
  * @default "default"
28
29
  */
29
30
  size?: StepperSizes;
31
+ /**
32
+ * Defines the orientation of the Stepper.
33
+ * @default "vertical"
34
+ */
35
+ orientation?: StepperOrientation;
30
36
  /**
31
37
  * Defines whether the connectors should be displayed.
32
38
  * @default true
@@ -17,8 +17,8 @@ var _Step = require("./Step");
17
17
  var _StepperContext = require("./StepperContext");
18
18
  var _utils = require("./utils");
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
- var _templateObject;
21
- var _excluded = ["steps", "activeStep", "onStepChange", "size", "connectors", "locale", "className"];
20
+ var _templateObject, _templateObject2, _templateObject3;
21
+ var _excluded = ["steps", "activeStep", "onStepChange", "size", "orientation", "connectors", "locale", "className"];
22
22
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
23
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24
24
  var DEFAULT_TAG_LOCALE = {
@@ -41,6 +41,8 @@ var Stepper = exports.Stepper = function Stepper(_ref) {
41
41
  _onStepChange = _ref.onStepChange,
42
42
  _ref$size = _ref.size,
43
43
  size = _ref$size === void 0 ? "default" : _ref$size,
44
+ _ref$orientation = _ref.orientation,
45
+ orientation = _ref$orientation === void 0 ? "vertical" : _ref$orientation,
44
46
  _ref$connectors = _ref.connectors,
45
47
  connectors = _ref$connectors === void 0 ? true : _ref$connectors,
46
48
  propsLocale = _ref.locale,
@@ -87,6 +89,7 @@ var Stepper = exports.Stepper = function Stepper(_ref) {
87
89
  activeStep: activeStep,
88
90
  focusedStep: focusedStep,
89
91
  size: size,
92
+ orientation: orientation,
90
93
  connectors: connectors,
91
94
  locale: locale,
92
95
  onStepChange: function onStepChange(index) {
@@ -103,11 +106,14 @@ var Stepper = exports.Stepper = function Stepper(_ref) {
103
106
  className: (0, _clsx["default"])(className),
104
107
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("ol", {
105
108
  role: "presentation",
106
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex flex-col isolate"]))),
109
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex isolate"]))), orientation === "vertical" ? (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["flex-col"]))) : (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["gap-0"])))),
107
110
  ref: containerRef,
108
111
  onFocus: function onFocus() {
109
112
  setFocusedStep(activeStep);
110
113
  },
114
+ onBlur: function onBlur() {
115
+ setFocusedStep(activeStep);
116
+ },
111
117
  onKeyDown: function onKeyDown(event) {
112
118
  switch (event.key) {
113
119
  case "ArrowLeft":
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- import type { StepperLocale, StepperSizes } from "./Stepper";
2
+ import type { StepperLocale, StepperOrientation, StepperSizes } from "./Stepper";
3
3
  export declare type StepperContextType = {
4
4
  activeStep: number;
5
5
  focusedStep: number;
6
6
  size: StepperSizes;
7
+ orientation: StepperOrientation;
7
8
  connectors: boolean;
8
9
  locale: StepperLocale;
9
10
  onStepChange?: (index: number) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export interface DropdownContextInterface {
3
- showMenu(show: boolean): void;
3
+ showMenu: (show: boolean) => void;
4
4
  }
5
5
  export declare const DropdownContext: import("react").Context<DropdownContextInterface | null>;
6
6
  export declare const useDropdownContext: () => DropdownContextInterface;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface DropdownCollapsibleItemsGroupContextInterface {
3
3
  expandedItems: readonly string[];
4
- onItemClick(name: string): void;
4
+ onItemClick: (name: string) => void;
5
5
  }
6
6
  export declare const DropdownCollapsibleItemsGroupContext: import("react").Context<DropdownCollapsibleItemsGroupContextInterface | null>;
7
7
  /** @deprecated */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface CollapsibleItemsGroupContextInterface {
3
3
  expandedItems: readonly string[];
4
- onItemClick(name: string): void;
4
+ onItemClick: (name: string) => void;
5
5
  }
6
6
  export declare const CollapsibleItemsGroupContext: import("react").Context<CollapsibleItemsGroupContextInterface | null>;
7
7
  export declare const useCollapsibleItemsGroup: () => CollapsibleItemsGroupContextInterface;
@@ -1,5 +1,5 @@
1
- import type { IconComponentType } from "Icons";
2
1
  import type { FC } from "react";
2
+ import type { IconComponentType } from "../../../../Icons";
3
3
  import type { BaseItemProps } from "../../useMenuItemProps";
4
4
  declare type LinkItemNavigationType = "auto" | "reload" | "newTab";
5
5
  export declare type LinkItemProps = BaseItemProps & {
@@ -1,6 +1,6 @@
1
1
  import type { DropdownMenuCheckboxItemProps } from "@radix-ui/react-dropdown-menu";
2
- import type { IconComponentType } from "Icons";
3
2
  import type { FC } from "react";
3
+ import type { IconComponentType } from "../../../../Icons";
4
4
  export interface ToggleItemProps extends Omit<DropdownMenuCheckboxItemProps, "asChild"> {
5
5
  startIcon?: IconComponentType;
6
6
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
4
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
3
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6
6
  // @ts-check
7
7
  var prefixTailwindClassName = require("./prefixTailwindClassName");
8
8
 
@@ -141,5 +141,5 @@ module.exports = {
141
141
  }
142
142
  }
143
143
  },
144
- plugins: [require("@tailwindcss/container-queries"), require("./base.tailwind"), require("../Helpers/utilities/overlay.tailwind"), require("../Helpers/utilities/utilities.tailwind"), require("../Helpers/utilities/focusable.tailwind"), require("../Typography/Typography.tailwind"), require("../Layout/FlexGrid/FlexGrid.tailwind"), require("../Fields/AutoComplete/AutoComplete.tailwind"), require("../Actions/Button/Button.tailwind"), require("../Actions/ToggleGroup/ToggleGroup.tailwind"), require("../Layout/Card/Card.tailwind"), require("../Fields/Checkbox/Checkbox.tailwind"), require("../Indicators/EmptyState/EmptyState.tailwind"), require("../Indicators/Toast/Toast.tailwind"), require("../Helpers/HelpUnderline/HelpUnderline.tailwind"), require("../Fields/Input/Input.tailwind"), require("../Helpers/InstantSearch/InstantSearch.tailwind"), require("../Indicators/KeyboardKey/KeyboardKey.tailwind"), require("../Helpers/Medallion/Medallion.tailwind"), require("../Overlay/Modal/Modal.tailwind"), require("../Indicators/ProgressBar/ProgressBar.tailwind"), require("../Indicators/ProgressSpinner/ProgressSpinner.tailwind"), require("../Fields/RadioGroup/RadioButton.tailwind"), require("../Indicators/ScrollIndicator/ScrollIndicator.tailwind"), require("../Fields/Select/Select.tailwind"), require("../Helpers/Separator/Separator.tailwind"), require("../Actions/Switch/Switch.tailwind"), require("../Navigation/Tabs/Tabs.tailwind"), require("../Layout/Tables/DataTable/DataTable.tailwind"), require("../Layout/Tables/Table/Table.tailwind"), require("../Indicators/Tag/Tag.tailwind"), require("../Fields/TextArea/TextArea.tailwind"), require("../Fields/Toggle/Toggle.tailwind"), require("../Overlay/Tooltip/Tooltip.tailwind"), require("../Helpers/UserContent/UserContent.tailwind"), require("../Fields/DatePicker/DatePicker.tailwind")]
144
+ plugins: [require("@tailwindcss/container-queries"), require("./base.tailwind"), require("../Helpers/utilities/overlay.tailwind"), require("../Helpers/utilities/utilities.tailwind"), require("../Helpers/utilities/focusable.tailwind"), require("../Typography/Typography.tailwind"), require("../Layout/FlexGrid/FlexGrid.tailwind"), require("../Fields/AutoComplete/AutoComplete.tailwind"), require("../Actions/Button/Button.tailwind"), require("../Actions/ToggleGroup/ToggleGroup.tailwind"), require("../Actions/Accordion/Accordion.tailwind"), require("../Layout/Card/Card.tailwind"), require("../Fields/Checkbox/Checkbox.tailwind"), require("../Indicators/EmptyState/EmptyState.tailwind"), require("../Indicators/Toast/Toast.tailwind"), require("../Helpers/HelpUnderline/HelpUnderline.tailwind"), require("../Fields/Input/Input.tailwind"), require("../Helpers/InstantSearch/InstantSearch.tailwind"), require("../Indicators/KeyboardKey/KeyboardKey.tailwind"), require("../Helpers/Medallion/Medallion.tailwind"), require("../Overlay/Modal/Modal.tailwind"), require("../Indicators/ProgressBar/ProgressBar.tailwind"), require("../Indicators/ProgressSpinner/ProgressSpinner.tailwind"), require("../Fields/RadioGroup/RadioButton.tailwind"), require("../Indicators/ScrollIndicator/ScrollIndicator.tailwind"), require("../Fields/Select/Select.tailwind"), require("../Helpers/Separator/Separator.tailwind"), require("../Actions/Switch/Switch.tailwind"), require("../Navigation/Tabs/Tabs.tailwind"), require("../Layout/Tables/DataTable/DataTable.tailwind"), require("../Layout/Tables/Table/Table.tailwind"), require("../Indicators/Tag/Tag.tailwind"), require("../Fields/TextArea/TextArea.tailwind"), require("../Fields/Toggle/Toggle.tailwind"), require("../Overlay/Tooltip/Tooltip.tailwind"), require("../Helpers/UserContent/UserContent.tailwind"), require("../Fields/DatePicker/DatePicker.tailwind")]
145
145
  };
@@ -1 +1 @@
1
- export declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "clipPath" | "marker" | "mask" | "grid" | "fontSize" | "translate" | "content" | "color" | "width" | "height" | "direction" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "left" | "right" | "top" | "bottom" | "all" | "columns" | "padding" | "resize" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "font" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "position" | "printColorAdjust" | "quotes" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "item" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
1
+ export declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "clipPath" | "marker" | "mask" | "grid" | "fontSize" | "translate" | "content" | "color" | "width" | "height" | "direction" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "item" | "all" | "left" | "right" | "top" | "bottom" | "columns" | "padding" | "resize" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "font" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "position" | "printColorAdjust" | "quotes" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
@@ -11,15 +11,16 @@ var _react = require("react");
11
11
  */
12
12
  var useTriggerInputChange = exports.useTriggerInputChange = function useTriggerInputChange(inputRef) {
13
13
  var triggerInputChange = (0, _react.useCallback)(function (value) {
14
+ var _Object$getOwnPropert;
14
15
  var input = inputRef.current;
15
16
  if (!input) return;
16
17
 
17
- // @ts-ignore
18
- var nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set;
18
+ // eslint-disable-next-line @typescript-eslint/unbound-method
19
+ var nativeInputValueSetter = (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.set;
19
20
  var ev2 = new Event("input", {
20
21
  bubbles: true
21
22
  });
22
- nativeInputValueSetter.call(input, value);
23
+ nativeInputValueSetter === null || nativeInputValueSetter === void 0 || nativeInputValueSetter.call(input, value);
23
24
  input.dispatchEvent(ev2);
24
25
  }, [inputRef]);
25
26
  return triggerInputChange;