@automattic/vip-design-system 2.4.5 → 2.6.1

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 (97) hide show
  1. package/build/system/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  2. package/build/system/Breadcrumbs/Breadcrumbs.js +75 -20
  3. package/build/system/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -0
  4. package/build/system/Breadcrumbs/Breadcrumbs.stories.js +47 -7
  5. package/build/system/Breadcrumbs/Breadcrumbs.test.js +72 -0
  6. package/build/system/Breadcrumbs/styles.d.ts +2 -0
  7. package/build/system/Breadcrumbs/styles.js +8 -2
  8. package/build/system/Dropdown/Dropdown.d.ts +25 -36
  9. package/build/system/Dropdown/Dropdown.js +60 -99
  10. package/build/system/Dropdown/Dropdown.stories.d.ts +1 -26
  11. package/build/system/Dropdown/Dropdown.test.js +51 -28
  12. package/build/system/Dropdown/DropdownContent.d.ts +14 -10
  13. package/build/system/Dropdown/DropdownContent.js +43 -47
  14. package/build/system/Dropdown/DropdownItem.d.ts +20 -32
  15. package/build/system/Dropdown/DropdownItem.js +86 -103
  16. package/build/system/Dropdown/DropdownLabel.d.ts +11 -7
  17. package/build/system/Dropdown/DropdownLabel.js +29 -29
  18. package/build/system/Dropdown/DropdownSeparator.d.ts +10 -6
  19. package/build/system/Dropdown/DropdownSeparator.js +28 -28
  20. package/build/system/Dropdown/index.d.ts +17 -39
  21. package/build/system/Dropdown/index.js +23 -50
  22. package/build/system/FilterDropdown/FilterDropdown.d.ts +27 -0
  23. package/build/system/FilterDropdown/FilterDropdown.js +75 -0
  24. package/build/system/FilterDropdown/FilterDropdown.stories.d.ts +18 -0
  25. package/build/system/FilterDropdown/FilterDropdown.stories.js +46 -0
  26. package/build/system/FilterDropdown/FilterDropdown.test.d.ts +1 -0
  27. package/build/system/FilterDropdown/FilterDropdown.test.js +53 -0
  28. package/build/system/Hr/Hr.d.ts +7 -0
  29. package/build/system/Hr/Hr.js +22 -0
  30. package/build/system/Hr/Hr.stories.d.ts +23 -0
  31. package/build/system/Hr/Hr.stories.js +30 -0
  32. package/build/system/Hr/Hr.test.d.ts +1 -0
  33. package/build/system/Hr/Hr.test.js +41 -0
  34. package/build/system/Link/Link.d.ts +11 -1
  35. package/build/system/Link/Link.js +16 -1
  36. package/build/system/Link/Link.stories.d.ts +14 -1
  37. package/build/system/Link/Link.stories.js +16 -3
  38. package/build/system/Nav/styles.js +2 -1
  39. package/build/system/Page/Page.d.ts +2 -0
  40. package/build/system/Page/Page.js +10 -0
  41. package/build/system/Page/Page.test.d.ts +1 -0
  42. package/build/system/Page/Page.test.js +41 -0
  43. package/build/system/index.d.ts +3 -1
  44. package/build/system/index.js +4 -0
  45. package/build/system/theme/index.d.ts +889 -23
  46. package/build/system/theme/index.js +7 -8
  47. package/build/system/utils/stories/CustomLink.d.ts +1 -0
  48. package/build/system/utils/stories/CustomLink.js +7 -1
  49. package/package.json +1 -1
  50. package/src/system/Breadcrumbs/Breadcrumbs.stories.tsx +32 -3
  51. package/src/system/Breadcrumbs/Breadcrumbs.test.tsx +60 -0
  52. package/src/system/Breadcrumbs/Breadcrumbs.tsx +100 -29
  53. package/src/system/Breadcrumbs/styles.ts +11 -0
  54. package/src/system/Dropdown/{Dropdown.test.js → Dropdown.test.tsx} +2 -1
  55. package/src/system/Dropdown/Dropdown.tsx +72 -0
  56. package/src/system/Dropdown/DropdownContent.tsx +46 -0
  57. package/src/system/Dropdown/DropdownItem.tsx +112 -0
  58. package/src/system/Dropdown/DropdownLabel.tsx +29 -0
  59. package/src/system/Dropdown/DropdownSeparator.tsx +28 -0
  60. package/src/system/Dropdown/{index.js → index.ts} +1 -3
  61. package/src/system/FilterDropdown/FilterDropdown.stories.tsx +57 -0
  62. package/src/system/FilterDropdown/FilterDropdown.test.tsx +52 -0
  63. package/src/system/FilterDropdown/FilterDropdown.tsx +92 -0
  64. package/src/system/Hr/Hr.stories.tsx +48 -0
  65. package/src/system/Hr/Hr.test.tsx +22 -0
  66. package/src/system/Hr/Hr.tsx +11 -0
  67. package/src/system/Link/Link.stories.tsx +42 -1
  68. package/src/system/Link/Link.tsx +17 -8
  69. package/src/system/Nav/styles.ts +1 -0
  70. package/src/system/Page/Page.test.tsx +22 -0
  71. package/src/system/Page/Page.tsx +3 -0
  72. package/src/system/index.js +4 -0
  73. package/src/system/theme/index.js +7 -8
  74. package/src/system/utils/stories/CustomLink.tsx +6 -0
  75. package/tokens/valet-core/$metadata.json +1 -17
  76. package/tokens/valet-core/$themes.json +0 -2586
  77. package/src/system/Dropdown/Dropdown.js +0 -101
  78. package/src/system/Dropdown/DropdownContent.js +0 -50
  79. package/src/system/Dropdown/DropdownItem.js +0 -108
  80. package/src/system/Dropdown/DropdownLabel.js +0 -31
  81. package/src/system/Dropdown/DropdownSeparator.js +0 -30
  82. package/tokens/valet-core/figma-parsely-web-type.json +0 -1217
  83. package/tokens/valet-core/figma-valet-web-type.json +0 -1217
  84. package/tokens/valet-core/figma-wpvip-services-web-type.json +0 -1267
  85. package/tokens/valet-core/figma-wpvip-web-type.json +0 -1213
  86. package/tokens/valet-core/parsely-web-color.json +0 -729
  87. package/tokens/valet-core/parsely-web-core.json +0 -172
  88. package/tokens/valet-core/parsely-web-type.json +0 -362
  89. package/tokens/valet-core/valet-web-color.json +0 -677
  90. package/tokens/valet-core/valet-web-core.json +0 -172
  91. package/tokens/valet-core/wpvip-services-web-color.json +0 -730
  92. package/tokens/valet-core/wpvip-services-web-core.json +0 -172
  93. package/tokens/valet-core/wpvip-services-web-type.json +0 -412
  94. package/tokens/valet-core/wpvip-web-color-dark.json +0 -735
  95. package/tokens/valet-core/wpvip-web-color.json +0 -730
  96. package/tokens/valet-core/wpvip-web-type.json +0 -412
  97. package/tokens/valet-core/wpvip-web.json +0 -1310
@@ -1,33 +1,56 @@
1
- /**
2
- * External dependencies
3
- */
4
- import { fireEvent, render, screen } from '@testing-library/react';
5
- import { axe } from 'jest-axe';
1
+ "use strict";
6
2
 
7
- /**
3
+ var _react = require("@testing-library/react");
4
+ var _jestAxe = require("jest-axe");
5
+ var _react2 = _interopRequireDefault(require("react"));
6
+ var Dropdown = _interopRequireWildcard(require("."));
7
+ var _jsxRuntime = require("theme-ui/jsx-runtime");
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
12
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
14
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } /**
15
+ * External dependencies
16
+ */ /**
8
17
  * Internal dependencies
9
18
  */
10
- import * as Dropdown from '.';
11
-
12
- const defaultProps = {
13
- trigger: <button>Trigger</button>,
19
+ var defaultProps = {
20
+ trigger: (0, _jsxRuntime.jsx)("button", {
21
+ children: "Trigger"
22
+ })
14
23
  };
24
+ var getButton = function getButton() {
25
+ return _react.screen.getByRole('button', {
26
+ name: 'Trigger'
27
+ });
28
+ };
29
+ describe('<Dropdown />', function () {
30
+ it('renders the Dropdown component', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31
+ var _render, container;
32
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33
+ while (1) switch (_context.prev = _context.next) {
34
+ case 0:
35
+ _render = (0, _react.render)((0, _jsxRuntime.jsx)(Dropdown.Root, _extends({}, defaultProps, {
36
+ children: (0, _jsxRuntime.jsx)(Dropdown.Item, {
37
+ children: "My Item"
38
+ })
39
+ }))), container = _render.container;
40
+ expect(getButton()).toBeInTheDocument();
41
+ _react.fireEvent.click(getButton());
15
42
 
16
- const getButton = () => screen.getByRole( 'button', { name: 'Trigger' } );
17
-
18
- describe( '<Dropdown />', () => {
19
- it( 'renders the Dropdown component', async () => {
20
- const { container } = render(
21
- <Dropdown.Root { ...defaultProps }>
22
- <Dropdown.Item>My Item</Dropdown.Item>
23
- </Dropdown.Root>
24
- );
25
-
26
- expect( getButton() ).toBeInTheDocument();
27
-
28
- fireEvent.click( getButton() );
29
-
30
- // Check for accessibility issues
31
- await expect( await axe( container ) ).toHaveNoViolations();
32
- } );
33
- } );
43
+ // Check for accessibility issues
44
+ _context.t0 = expect;
45
+ _context.next = 6;
46
+ return (0, _jestAxe.axe)(container);
47
+ case 6:
48
+ _context.t1 = _context.sent;
49
+ (0, _context.t0)(_context.t1).toHaveNoViolations();
50
+ case 8:
51
+ case "end":
52
+ return _context.stop();
53
+ }
54
+ }, _callee);
55
+ })));
56
+ });
@@ -1,11 +1,15 @@
1
- export namespace styles {
2
- let minWidth: number;
3
- let borderRadius: number;
4
- let backgroundColor: string;
5
- let boxShadow: string;
6
- let px: number;
7
- let py: number;
8
- }
9
- export const DropdownContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
10
- export const DropdownSubContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
1
+ /** @jsxImportSource theme-ui */
11
2
  import React from 'react';
3
+ export interface DropdownContentProps {
4
+ className?: string;
5
+ }
6
+ export declare const styles: {
7
+ minWidth: number;
8
+ borderRadius: number;
9
+ backgroundColor: string;
10
+ boxShadow: string;
11
+ px: number;
12
+ py: number;
13
+ };
14
+ export declare const DropdownContent: React.ForwardRefExoticComponent<DropdownContentProps & React.RefAttributes<HTMLDivElement>>;
15
+ export declare const DropdownSubContent: React.ForwardRefExoticComponent<DropdownContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,50 +1,46 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.styles = exports.DropdownSubContent = exports.DropdownContent = void 0;
5
+ var DropdownMenuPrimitive = _interopRequireWildcard(require("@radix-ui/react-dropdown-menu"));
6
+ var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("theme-ui/jsx-runtime");
9
+ var _excluded = ["className"],
10
+ _excluded2 = ["className"];
1
11
  /** @jsxImportSource theme-ui */
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
- import classNames from 'classnames';
8
- import PropTypes from 'prop-types';
9
- import React from 'react';
10
-
11
- export const styles = {
12
- minWidth: 220,
13
- borderRadius: 2,
14
- backgroundColor: 'background',
15
- boxShadow: 'high',
16
- px: 2,
17
- py: 1,
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
+ var styles = exports.styles = {
18
+ minWidth: 220,
19
+ borderRadius: 2,
20
+ backgroundColor: 'background',
21
+ boxShadow: 'high',
22
+ px: 2,
23
+ py: 1
18
24
  };
19
-
20
- export const DropdownContent = React.forwardRef( ( { className, ...props }, forwardRef ) => (
21
- <DropdownMenuPrimitive.DropdownMenuContent
22
- className={ classNames( 'vip-dropdown-menu-content', className ) }
23
- ref={ forwardRef }
24
- sx={ styles }
25
- { ...props }
26
- />
27
- ) );
28
-
25
+ var DropdownContent = exports.DropdownContent = /*#__PURE__*/_react["default"].forwardRef(function (_ref, forwardRef) {
26
+ var className = _ref.className,
27
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
28
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.DropdownMenuContent, _extends({
29
+ className: (0, _classnames["default"])('vip-dropdown-menu-content', className),
30
+ ref: forwardRef,
31
+ sx: styles
32
+ }, props));
33
+ });
29
34
  DropdownContent.displayName = 'DropdownContent';
30
-
31
- DropdownContent.propTypes = {
32
- className: PropTypes.string,
33
- };
34
-
35
- export const DropdownSubContent = React.forwardRef( ( { className, ...props }, forwardRef ) => (
36
- <DropdownMenuPrimitive.Portal>
37
- <DropdownMenuPrimitive.DropdownMenuSubContent
38
- className={ classNames( 'vip-dropdown-menu-sub-content', className ) }
39
- ref={ forwardRef }
40
- sx={ styles }
41
- { ...props }
42
- />
43
- </DropdownMenuPrimitive.Portal>
44
- ) );
45
-
46
- DropdownSubContent.displayName = 'DropdownSubContent';
47
-
48
- DropdownSubContent.propTypes = {
49
- className: PropTypes.string,
50
- };
35
+ var DropdownSubContent = exports.DropdownSubContent = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, forwardRef) {
36
+ var className = _ref2.className,
37
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
38
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.Portal, {
39
+ children: (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.DropdownMenuSubContent, _extends({
40
+ className: (0, _classnames["default"])('vip-dropdown-menu-sub-content', className),
41
+ ref: forwardRef,
42
+ sx: styles
43
+ }, props))
44
+ });
45
+ });
46
+ DropdownSubContent.displayName = 'DropdownSubContent';
@@ -1,33 +1,21 @@
1
- export const styles: {
2
- unset: string;
3
- cursor: string;
4
- display: string;
5
- alignItems: string;
6
- flexDirection: string;
7
- textAlign: string;
8
- height: number;
9
- textDecoration: string;
10
- position: string;
11
- m: number;
12
- color: string;
13
- px: number;
14
- paddingLeft: number;
15
- py: number;
16
- '&:hover, &:focus': {
17
- backgroundColor: string;
18
- textDecoration: string;
19
- };
20
- '&[data-disabled]': {
21
- color: string;
22
- pointerEvents: string;
23
- };
24
- '&[data-highlighted]': {
25
- backgroundColor: string;
26
- color: string;
27
- };
28
- };
29
- export const DropdownItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
30
- export const DropdownCheckboxItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
31
- export const DropdownRadioItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
32
- export const DropdownSubTrigger: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
1
+ /** @jsxImportSource theme-ui */
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
33
3
  import React from 'react';
4
+ import { ThemeUIStyleObject } from 'theme-ui';
5
+ export interface DropdownItemProps extends DropdownMenuPrimitive.MenuItemProps {
6
+ className?: string;
7
+ }
8
+ export interface DropdownRadioItemProps extends DropdownMenuPrimitive.MenuRadioItemProps {
9
+ className?: string;
10
+ }
11
+ export interface DropdownCheckboxItemProps extends DropdownMenuPrimitive.MenuCheckboxItemProps {
12
+ className?: string;
13
+ }
14
+ export interface DropdownSubTriggerItemProps extends DropdownMenuPrimitive.DropdownMenuSubTriggerProps {
15
+ className?: string;
16
+ }
17
+ export declare const styles: ThemeUIStyleObject;
18
+ export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLDivElement>>;
19
+ export declare const DropdownCheckboxItem: React.ForwardRefExoticComponent<DropdownCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
20
+ export declare const DropdownRadioItem: React.ForwardRefExoticComponent<DropdownRadioItemProps & React.RefAttributes<HTMLDivElement>>;
21
+ export declare const DropdownSubTrigger: React.ForwardRefExoticComponent<DropdownSubTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,108 +1,91 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.styles = exports.DropdownSubTrigger = exports.DropdownRadioItem = exports.DropdownItem = exports.DropdownCheckboxItem = void 0;
5
+ var DropdownMenuPrimitive = _interopRequireWildcard(require("@radix-ui/react-dropdown-menu"));
6
+ var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("theme-ui/jsx-runtime");
9
+ var _excluded = ["className"],
10
+ _excluded2 = ["className"],
11
+ _excluded3 = ["className"],
12
+ _excluded4 = ["className"];
1
13
  /** @jsxImportSource theme-ui */
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
- import classNames from 'classnames';
8
- import PropTypes from 'prop-types';
9
- import React from 'react';
10
-
11
- export const styles = {
12
- unset: 'all',
13
- cursor: 'pointer',
14
- display: 'flex',
15
- alignItems: 'center',
16
- flexDirection: 'row',
17
- textAlign: 'left',
18
- height: 25,
19
- textDecoration: 'none',
20
- position: 'relative',
21
- m: 0,
22
- color: 'heading',
23
- px: 2,
24
- paddingLeft: 3,
25
- py: 1,
26
- '&:hover, &:focus': {
27
- backgroundColor: 'hover',
28
- textDecoration: 'none',
29
- },
30
-
31
- '&[data-disabled]': {
32
- color: 'muted',
33
- pointerEvents: 'none',
34
- },
35
-
36
- '&[data-highlighted]': {
37
- backgroundColor: 'hover',
38
- color: 'link',
39
- },
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
+ var styles = exports.styles = {
20
+ unset: 'all',
21
+ cursor: 'pointer',
22
+ display: 'flex',
23
+ alignItems: 'center',
24
+ flexDirection: 'row',
25
+ textAlign: 'left',
26
+ height: 25,
27
+ textDecoration: 'none',
28
+ position: 'relative',
29
+ m: 0,
30
+ color: 'heading',
31
+ px: 2,
32
+ paddingLeft: 3,
33
+ py: 1,
34
+ '&:hover, &:focus': {
35
+ backgroundColor: 'hover',
36
+ textDecoration: 'none'
37
+ },
38
+ '&[data-disabled]': {
39
+ color: 'muted',
40
+ pointerEvents: 'none'
41
+ },
42
+ '&[data-highlighted]': {
43
+ backgroundColor: 'hover',
44
+ color: 'link'
45
+ }
40
46
  };
41
-
42
- export const DropdownItem = React.forwardRef( ( { className, ...props }, forwardRef ) => (
43
- <DropdownMenuPrimitive.DropdownMenuItem
44
- className={ classNames( 'vip-dropdown-menu-item', className ) }
45
- ref={ forwardRef }
46
- sx={ styles }
47
- { ...props }
48
- />
49
- ) );
50
-
47
+ var DropdownItem = exports.DropdownItem = /*#__PURE__*/_react["default"].forwardRef(function (_ref, forwardRef) {
48
+ var className = _ref.className,
49
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
50
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.DropdownMenuItem, _extends({
51
+ className: (0, _classnames["default"])('vip-dropdown-menu-item', className),
52
+ ref: forwardRef,
53
+ sx: styles
54
+ }, props));
55
+ });
51
56
  DropdownItem.displayName = 'DropdownItem';
52
-
53
- DropdownItem.propTypes = {
54
- className: PropTypes.string,
55
- };
56
-
57
- export const DropdownCheckboxItem = React.forwardRef( ( { className, ...props }, forwardRef ) => (
58
- <DropdownMenuPrimitive.CheckboxItem
59
- className={ classNames( 'vip-dropdown-checkbox-item', className ) }
60
- ref={ forwardRef }
61
- sx={ styles }
62
- { ...props }
63
- />
64
- ) );
65
-
57
+ var DropdownCheckboxItem = exports.DropdownCheckboxItem = /*#__PURE__*/_react["default"].forwardRef(function (_ref2, forwardRef) {
58
+ var className = _ref2.className,
59
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
60
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.CheckboxItem, _extends({
61
+ className: (0, _classnames["default"])('vip-dropdown-checkbox-item', className),
62
+ ref: forwardRef,
63
+ sx: styles
64
+ }, props));
65
+ });
66
66
  DropdownCheckboxItem.displayName = 'DropdownCheckboxItem';
67
-
68
- DropdownCheckboxItem.propTypes = {
69
- className: PropTypes.string,
70
- };
71
-
72
- export const DropdownRadioItem = React.forwardRef( ( { className, ...props }, forwardRef ) => (
73
- <DropdownMenuPrimitive.RadioItem
74
- className={ classNames( 'vip-dropdown-radio-item', className ) }
75
- ref={ forwardRef }
76
- sx={ styles }
77
- { ...props }
78
- />
79
- ) );
80
-
67
+ var DropdownRadioItem = exports.DropdownRadioItem = /*#__PURE__*/_react["default"].forwardRef(function (_ref3, forwardRef) {
68
+ var className = _ref3.className,
69
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
70
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.RadioItem, _extends({
71
+ className: (0, _classnames["default"])('vip-dropdown-radio-item', className),
72
+ ref: forwardRef,
73
+ sx: styles
74
+ }, props));
75
+ });
81
76
  DropdownRadioItem.displayName = 'DropdownRadioItem';
82
-
83
- DropdownRadioItem.propTypes = {
84
- className: PropTypes.string,
85
- };
86
-
87
- export const DropdownSubTrigger = React.forwardRef( ( { className, ...props }, forwardRef ) => (
88
- <DropdownMenuPrimitive.SubTrigger
89
- className={ classNames( 'vip-dropdown-sub-trigger', className ) }
90
- ref={ forwardRef }
91
- sx={ {
92
- ...styles,
93
- ...{
94
- '&[data-state="open"]': {
95
- background: 'highlight',
96
- color: 'primary',
97
- },
98
- },
99
- } }
100
- { ...props }
101
- />
102
- ) );
103
-
104
- DropdownSubTrigger.displayName = 'DropdownSubTrigger';
105
-
106
- DropdownSubTrigger.propTypes = {
107
- className: PropTypes.string,
108
- };
77
+ var DropdownSubTrigger = exports.DropdownSubTrigger = /*#__PURE__*/_react["default"].forwardRef(function (_ref4, forwardRef) {
78
+ var className = _ref4.className,
79
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
80
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.SubTrigger, _extends({
81
+ className: (0, _classnames["default"])('vip-dropdown-sub-trigger', className),
82
+ ref: forwardRef,
83
+ sx: _extends({}, styles, {
84
+ '&[data-state="open"]': {
85
+ background: 'highlight',
86
+ color: 'primary'
87
+ }
88
+ })
89
+ }, props));
90
+ });
91
+ DropdownSubTrigger.displayName = 'DropdownSubTrigger';
@@ -1,8 +1,12 @@
1
- export namespace styles {
2
- let paddingLeft: number;
3
- let fontSize: number;
4
- let lineHeight: string;
5
- let color: string;
6
- }
7
- export const DropdownLabel: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
1
+ /** @jsxImportSource theme-ui */
8
2
  import React from 'react';
3
+ export interface DropdownLabelProps {
4
+ className?: string;
5
+ }
6
+ export declare const styles: {
7
+ paddingLeft: number;
8
+ fontSize: number;
9
+ lineHeight: string;
10
+ color: string;
11
+ };
12
+ export declare const DropdownLabel: React.ForwardRefExoticComponent<DropdownLabelProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,31 +1,31 @@
1
- /** @jsxImportSource theme-ui */
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
- import classNames from 'classnames';
8
- import PropTypes from 'prop-types';
9
- import React from 'react';
10
-
11
- export const styles = {
12
- paddingLeft: 3,
13
- fontSize: 12,
14
- lineHeight: '25px',
15
- color: 'muted',
16
- };
1
+ "use strict";
17
2
 
18
- export const DropdownLabel = React.forwardRef( ( { className, ...props }, forwardRef ) => (
19
- <DropdownMenuPrimitive.DropdownMenuLabel
20
- className={ classNames( 'vip-dropdown-menu-label', className ) }
21
- ref={ forwardRef }
22
- sx={ styles }
23
- { ...props }
24
- />
25
- ) );
26
-
27
- DropdownLabel.displayName = 'DropdownLabel';
28
-
29
- DropdownLabel.propTypes = {
30
- className: PropTypes.string,
3
+ exports.__esModule = true;
4
+ exports.styles = exports.DropdownLabel = void 0;
5
+ var DropdownMenuPrimitive = _interopRequireWildcard(require("@radix-ui/react-dropdown-menu"));
6
+ var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("theme-ui/jsx-runtime");
9
+ var _excluded = ["className"];
10
+ /** @jsxImportSource theme-ui */
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ var styles = exports.styles = {
17
+ paddingLeft: 3,
18
+ fontSize: 12,
19
+ lineHeight: '25px',
20
+ color: 'muted'
31
21
  };
22
+ var DropdownLabel = exports.DropdownLabel = /*#__PURE__*/_react["default"].forwardRef(function (_ref, forwardRef) {
23
+ var className = _ref.className,
24
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
25
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.DropdownMenuLabel, _extends({
26
+ className: (0, _classnames["default"])('vip-dropdown-menu-label', className),
27
+ ref: forwardRef,
28
+ sx: styles
29
+ }, props));
30
+ });
31
+ DropdownLabel.displayName = 'DropdownLabel';
@@ -1,7 +1,11 @@
1
- export namespace styles {
2
- let height: string;
3
- let backgroundColor: string;
4
- let my: string;
5
- }
6
- export const DropdownSeparator: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
1
+ /** @jsxImportSource theme-ui */
7
2
  import React from 'react';
3
+ export interface DropdownSeparatorProps {
4
+ className?: string;
5
+ }
6
+ export declare const styles: {
7
+ height: string;
8
+ backgroundColor: string;
9
+ my: string;
10
+ };
11
+ export declare const DropdownSeparator: React.ForwardRefExoticComponent<DropdownSeparatorProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,30 +1,30 @@
1
- /** @jsxImportSource theme-ui */
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
- import classNames from 'classnames';
8
- import PropTypes from 'prop-types';
9
- import React from 'react';
10
-
11
- export const styles = {
12
- height: '1px',
13
- backgroundColor: 'borders.2',
14
- my: '5px',
15
- };
1
+ "use strict";
16
2
 
17
- export const DropdownSeparator = React.forwardRef( ( { className, ...props }, forwardRef ) => (
18
- <DropdownMenuPrimitive.DropdownMenuSeparator
19
- className={ classNames( 'vip-dropdown-menu-separator', className ) }
20
- ref={ forwardRef }
21
- sx={ styles }
22
- { ...props }
23
- />
24
- ) );
25
-
26
- DropdownSeparator.displayName = 'DropdownSeparator';
27
-
28
- DropdownSeparator.propTypes = {
29
- className: PropTypes.string,
3
+ exports.__esModule = true;
4
+ exports.styles = exports.DropdownSeparator = void 0;
5
+ var DropdownMenuPrimitive = _interopRequireWildcard(require("@radix-ui/react-dropdown-menu"));
6
+ var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("theme-ui/jsx-runtime");
9
+ var _excluded = ["className"];
10
+ /** @jsxImportSource theme-ui */
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ var styles = exports.styles = {
17
+ height: '1px',
18
+ backgroundColor: 'borders.2',
19
+ my: '5px'
30
20
  };
21
+ var DropdownSeparator = exports.DropdownSeparator = /*#__PURE__*/_react["default"].forwardRef(function (_ref, forwardRef) {
22
+ var className = _ref.className,
23
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
24
+ return (0, _jsxRuntime.jsx)(DropdownMenuPrimitive.DropdownMenuSeparator, _extends({
25
+ className: (0, _classnames["default"])('vip-dropdown-menu-separator', className),
26
+ ref: forwardRef,
27
+ sx: styles
28
+ }, props));
29
+ });
30
+ DropdownSeparator.displayName = 'DropdownSeparator';