@assembly-js/design-system 3.1.7 → 3.1.8
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.
- package/dist/esm/common/utils.js +1 -24
- package/dist/esm/components/Checkbox/Checkbox.js +1 -1
- package/dist/esm/components/TextLink/TextLink.js +1 -1
- package/dist/esm/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/esm/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/common/utils.js +1 -24
- package/dist/umd/components/Checkbox/Checkbox.js +1 -1
- package/dist/umd/components/TextLink/TextLink.js +1 -1
- package/dist/umd/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/umd/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/umd/common/utils.js
CHANGED
|
@@ -20,31 +20,8 @@
|
|
|
20
20
|
_exports.cn = cn;
|
|
21
21
|
_exports.ensureUnreachable = ensureUnreachable;
|
|
22
22
|
_exports.getInitials = getInitials;
|
|
23
|
-
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); }
|
|
24
|
-
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; }
|
|
25
|
-
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; }
|
|
26
|
-
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; }
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
-
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); }
|
|
29
|
-
var COP_PREFIX = 'cop-';
|
|
30
|
-
function stripCopPrefix(_ref) {
|
|
31
|
-
var className = _ref.className,
|
|
32
|
-
parseClassName = _ref.parseClassName;
|
|
33
|
-
var parsed = parseClassName(className);
|
|
34
|
-
if (parsed.baseClassName.startsWith(COP_PREFIX)) {
|
|
35
|
-
return _objectSpread(_objectSpread({}, parsed), {}, {
|
|
36
|
-
baseClassName: parsed.baseClassName.slice(COP_PREFIX.length)
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return parsed;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// `prefix: 'cop-'` was replaced with a custom parser because the built-in
|
|
43
|
-
// prefix option failed to merge mixed prefixed/non-prefixed classes correctly.
|
|
44
|
-
// `experimentalParseClassName` is experimental — revisit this if upgrading
|
|
45
|
-
// tailwind-merge to a new major version.
|
|
46
23
|
var twMerge = (0, _tailwindMerge.extendTailwindMerge)({
|
|
47
|
-
|
|
24
|
+
prefix: 'cop-'
|
|
48
25
|
});
|
|
49
26
|
function cn() {
|
|
50
27
|
for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
return CheckboxSize;
|
|
36
36
|
}({});
|
|
37
37
|
var checkboxContainerStyles = (0, _cva.cva)({
|
|
38
|
-
base: 'cop-box-border cop-flex cop-cursor-pointer cop-rounded-[3px] cop-border cop-border-solid cop-p-0 cop-outline-none
|
|
38
|
+
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',
|
|
39
39
|
variants: {
|
|
40
40
|
size: _defineProperty(_defineProperty({}, CheckboxSize.DEFAULT, 'cop-h-4 cop-w-4'), CheckboxSize.LARGE, 'cop-h-[18px] cop-w-[18px]'),
|
|
41
41
|
checked: {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
26
26
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
27
27
|
var textLinkClasses = (0, _cva.cva)({
|
|
28
|
-
base: 'cop-flex cop-items-center cop-gap-1.5
|
|
28
|
+
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',
|
|
29
29
|
variants: {
|
|
30
30
|
variant: {
|
|
31
31
|
"default": 'cop-text-link cop-no-underline hover:cop-text-link-hover active:cop-text-link-active',
|
|
@@ -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
|
-
className?: string | undefined;
|
|
24
23
|
children?: React.ReactNode;
|
|
24
|
+
className?: string | undefined;
|
|
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
|
-
className?: string | undefined;
|
|
303
302
|
children?: React.ReactNode;
|
|
303
|
+
className?: string | undefined;
|
|
304
304
|
slot?: string | undefined;
|
|
305
305
|
style?: React.CSSProperties | undefined;
|
|
306
306
|
title?: string | undefined;
|