@a-type/ui 6.0.28 → 6.0.30
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/components/divider/Divider.js +4 -5
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/divider/Divider.module.css +10 -0
- package/dist/css/arbor.css +10 -10
- package/package.json +3 -3
- package/src/components/divider/Divider.module.css +10 -0
- package/src/components/divider/Divider.tsx +5 -9
|
@@ -11,14 +11,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { Separator as BaseSeparator } from '@base-ui/react/separator';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const DividerBase = withClassName(BaseSeparator, 'relative h-1px w-full bg-neutral-ink');
|
|
14
|
+
import clsx from 'clsx';
|
|
15
|
+
import cls from './Divider.module.css';
|
|
17
16
|
export const Divider = function Divider(_a) {
|
|
18
17
|
var { ref, compensate, padded, className } = _a, props = __rest(_a, ["ref", "compensate", "padded", "className"]);
|
|
19
|
-
return (_jsx(
|
|
18
|
+
return (_jsx(BaseSeparator, Object.assign({ ref: ref, style: {
|
|
20
19
|
left: compensate ? `calc(${compensate} * 0.25rem)` : undefined,
|
|
21
20
|
width: compensate ? `calc(100% - ${compensate} * 0.5rem)` : undefined,
|
|
22
|
-
} }, props, {
|
|
21
|
+
} }, props, { "data-padded": padded ? '' : undefined, className: clsx(cls.root, className) })));
|
|
23
22
|
};
|
|
24
23
|
//# sourceMappingURL=Divider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../../src/components/divider/Divider.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../../src/components/divider/Divider.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,GAAG,MAAM,sBAAsB,CAAC;AAOvC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,OAAO,CAAC,EAQvC;QARuC,EACvC,GAAG,EACH,UAAU,EACV,MAAM,EACN,SAAS,OAIT,EAHG,KAAK,cAL+B,4CAMvC,CADQ;IAIR,OAAO,CACN,KAAC,aAAa,kBACb,GAAG,EAAE,GAAG,EACR,KAAK,EAAE;YACN,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,UAAU,aAAa,CAAC,CAAC,CAAC,SAAS;YAC9D,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,eAAe,UAAU,YAAY,CAAC,CAAC,CAAC,SAAS;SACrE,IACG,KAAK,mBACI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EACpC,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,IACnC,CACF,CAAC;AACH,CAAC,CAAC"}
|
package/dist/css/arbor.css
CHANGED
|
@@ -347,19 +347,19 @@
|
|
|
347
347
|
--m-global-typography-baseLetterSpacing: 0;
|
|
348
348
|
--m-global-typography-darkModeWeightAdjustment: 0;
|
|
349
349
|
--m-global-typography-boldness: 0.5;
|
|
350
|
-
--m-easing-tight: cubic-bezier(calc(max(0,
|
|
351
|
-
--m-easing-medium: cubic-bezier(calc(max(0,
|
|
350
|
+
--m-easing-tight: cubic-bezier(0.7000000000000001, calc(0 - max(0, 0.5 - 0.5) * 0.6000000000000001), 0.05, calc(1 + max(0, 0.5 - 0.5) * 0.6000000000000001 * 2));
|
|
351
|
+
--m-easing-medium: cubic-bezier(0.55, calc(0 - max(0, 0.5 - 0.5) * 0.4), 0.1, calc(1 + max(0, 0.5 - 0.5) * 0.4 * 2));
|
|
352
352
|
--m-easing: var(--m-easing-medium);
|
|
353
|
-
--m-easing-loose: cubic-bezier(calc(max(0,
|
|
354
|
-
--m-easing-in-tight: cubic-bezier(
|
|
355
|
-
--m-easing-in-medium: cubic-bezier(
|
|
353
|
+
--m-easing-loose: cubic-bezier(0.4, calc(0 - max(0, 0.5 - 0.5) * 0.2), 0.15000000000000002, calc(1 + max(0, 0.5 - 0.5) * 0.2 * 2));
|
|
354
|
+
--m-easing-in-tight: cubic-bezier(0.6000000000000001, calc(0 - max(0, 0.5 - 0.5) * 0.4), 1, 1);
|
|
355
|
+
--m-easing-in-medium: cubic-bezier(0.4, calc(0 - max(0, 0.5 - 0.5) * 0.3), 1, 1);
|
|
356
356
|
--m-easing-in: var(--m-easing-in-medium);
|
|
357
|
-
--m-easing-in-loose: cubic-bezier(
|
|
358
|
-
--m-easing-out-tight: cubic-bezier(0,
|
|
359
|
-
--m-easing-out-medium: cubic-bezier(0,
|
|
357
|
+
--m-easing-in-loose: cubic-bezier(0.2, calc(0 - max(0, 0.5 - 0.5) * 0.19999999999999998), 1, 1);
|
|
358
|
+
--m-easing-out-tight: cubic-bezier(0.30000000000000004, calc(1 + max(0, 0.5 - 0.5) * 2.2), 0.65, 1);
|
|
359
|
+
--m-easing-out-medium: cubic-bezier(0.2, calc(1 + max(0, 0.5 - 0.5) * 1.1), 0.55, 1);
|
|
360
360
|
--m-easing-out: var(--m-easing-out-medium);
|
|
361
|
-
--m-easing-out-loose: cubic-bezier(0,
|
|
362
|
-
--m-global-easing-bounciness:
|
|
361
|
+
--m-easing-out-loose: cubic-bezier(0.1, calc(1 + max(0, 0.5 - 0.5) * 0.55), 0.45000000000000007, 1);
|
|
362
|
+
--m-global-easing-bounciness: 0.5;
|
|
363
363
|
--m-duration-short: calc(200ms * pow(2, -1) * 1);
|
|
364
364
|
--m-duration-medium: calc(200ms * pow(2, 0) * 1);
|
|
365
365
|
--m-duration: var(--m-duration-medium);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a-type/ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/a-type/ui"
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@a-type/utils": "^1.1.9",
|
|
41
|
-
"@arbor-css/core": "^0.0.
|
|
42
|
-
"@arbor-css/postcss": "^0.0.
|
|
41
|
+
"@arbor-css/core": "^0.0.133",
|
|
42
|
+
"@arbor-css/postcss": "^0.0.133",
|
|
43
43
|
"@base-ui/react": "^1.4.1",
|
|
44
44
|
"@use-gesture/react": "^10.3.1",
|
|
45
45
|
"browser-image-resizer": "^2.4.1",
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { Separator as BaseSeparator } from '@base-ui/react/separator';
|
|
2
|
-
import
|
|
2
|
+
import clsx from 'clsx';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const DividerBase = withClassName(
|
|
7
|
-
BaseSeparator,
|
|
8
|
-
'relative h-1px w-full bg-neutral-ink',
|
|
9
|
-
);
|
|
4
|
+
import cls from './Divider.module.css';
|
|
10
5
|
|
|
11
6
|
export interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
7
|
compensate?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -23,14 +18,15 @@ export const Divider = function Divider({
|
|
|
23
18
|
ref?: React.Ref<HTMLDivElement>;
|
|
24
19
|
}) {
|
|
25
20
|
return (
|
|
26
|
-
<
|
|
21
|
+
<BaseSeparator
|
|
27
22
|
ref={ref}
|
|
28
23
|
style={{
|
|
29
24
|
left: compensate ? `calc(${compensate} * 0.25rem)` : undefined,
|
|
30
25
|
width: compensate ? `calc(100% - ${compensate} * 0.5rem)` : undefined,
|
|
31
26
|
}}
|
|
32
27
|
{...props}
|
|
33
|
-
|
|
28
|
+
data-padded={padded ? '' : undefined}
|
|
29
|
+
className={clsx(cls.root, className)}
|
|
34
30
|
/>
|
|
35
31
|
);
|
|
36
32
|
};
|