@assembly-js/design-system 3.1.6 → 3.1.7

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.
@@ -1,8 +1,31 @@
1
1
  // This file is generated by a script. Do not edit this file directly.
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ 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; }
4
+ 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) { _defineProperty(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; }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2
8
  import { clsx } from 'clsx';
3
9
  import { extendTailwindMerge } from 'tailwind-merge';
10
+ var COP_PREFIX = 'cop-';
11
+ function stripCopPrefix(_ref) {
12
+ var className = _ref.className,
13
+ parseClassName = _ref.parseClassName;
14
+ var parsed = parseClassName(className);
15
+ if (parsed.baseClassName.startsWith(COP_PREFIX)) {
16
+ return _objectSpread(_objectSpread({}, parsed), {}, {
17
+ baseClassName: parsed.baseClassName.slice(COP_PREFIX.length)
18
+ });
19
+ }
20
+ return parsed;
21
+ }
22
+
23
+ // `prefix: 'cop-'` was replaced with a custom parser because the built-in
24
+ // prefix option failed to merge mixed prefixed/non-prefixed classes correctly.
25
+ // `experimentalParseClassName` is experimental — revisit this if upgrading
26
+ // tailwind-merge to a new major version.
4
27
  var twMerge = extendTailwindMerge({
5
- prefix: 'cop-'
28
+ experimentalParseClassName: stripCopPrefix
6
29
  });
7
30
  export function cn() {
8
31
  for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -20,7 +20,7 @@ export var CheckboxSize = /*#__PURE__*/function (CheckboxSize) {
20
20
  return CheckboxSize;
21
21
  }({});
22
22
  var checkboxContainerStyles = cva({
23
- base: 'cop-box-border cop-flex cop-cursor-pointer cop-rounded-[3px] cop-border cop-border-solid cop-p-0 cop-outline-none peer-focus-visible:cop-outline-2 peer-focus-visible:cop-outline-[#0071E3] flex cop-justify-center cop-items-center',
23
+ base: 'cop-box-border cop-flex cop-cursor-pointer cop-rounded-[3px] cop-border cop-border-solid cop-p-0 cop-outline-none peer-focus-visible:cop-outline-2 peer-focus-visible:cop-outline-[#0071E3] cop-justify-center cop-items-center',
24
24
  variants: {
25
25
  size: _defineProperty(_defineProperty({}, CheckboxSize.DEFAULT, 'cop-h-4 cop-w-4'), CheckboxSize.LARGE, 'cop-h-[18px] cop-w-[18px]'),
26
26
  checked: {
@@ -6,7 +6,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
6
6
  import React from 'react';
7
7
  import { cva } from 'cva';
8
8
  var textLinkClasses = cva({
9
- base: 'cop-flex cop-items-center cop-gap-1.5 outline-none cop-outline-solid cop-outline-link cop-outline-offset-[3px] cop-w-fit cop-underline-offset-[3px] cursor-pointer',
9
+ base: 'cop-flex cop-items-center cop-gap-1.5 cop-outline-none cop-outline-solid cop-outline-link cop-outline-offset-[3px] cop-w-fit cop-underline-offset-[3px] cop-cursor-pointer',
10
10
  variants: {
11
11
  variant: {
12
12
  "default": 'cop-text-link cop-no-underline hover:cop-text-link-hover active:cop-text-link-active',
@@ -307,5 +307,14 @@ export var iconToFaMap = {
307
307
  BuildingIcon: 'building',
308
308
  CustomizationIcon: 'palette',
309
309
  PortalModulesIcon: 'list-ul',
310
- MainSettingsIcon: 'gear'
310
+ MainSettingsIcon: 'gear',
311
+ backlinks: 'arrows-repeat',
312
+ cube: 'cube',
313
+ extension: 'link',
314
+ keywords: 'book',
315
+ linegraph: 'chart-line',
316
+ piechart: 'chart-pie',
317
+ shapes: 'shapes',
318
+ venn: 'circles-overlap-3',
319
+ visible: 'eye'
311
320
  };
@@ -20,8 +20,8 @@ declare const Avatar: React.ForwardRefExoticComponent<({
20
20
  content?: string | undefined;
21
21
  translate?: "yes" | "no" | undefined;
22
22
  prefix?: string | undefined;
23
- children?: React.ReactNode;
24
23
  className?: string | undefined;
24
+ children?: React.ReactNode;
25
25
  slot?: string | undefined;
26
26
  style?: React.CSSProperties | undefined;
27
27
  title?: string | undefined;
@@ -299,8 +299,8 @@ declare const Avatar: React.ForwardRefExoticComponent<({
299
299
  content?: string | undefined;
300
300
  translate?: "yes" | "no" | undefined;
301
301
  prefix?: string | undefined;
302
- children?: React.ReactNode;
303
302
  className?: string | undefined;
303
+ children?: React.ReactNode;
304
304
  slot?: string | undefined;
305
305
  style?: React.CSSProperties | undefined;
306
306
  title?: string | undefined;