@febkosq8/arc 0.8.1 → 0.8.2
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/arc.js +5 -10
- package/package.json +67 -67
package/dist/arc.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Select as B } from "@base-ui/react/select";
|
|
|
14
14
|
import { rankItem as V } from "@tanstack/match-sorter-utils";
|
|
15
15
|
import { columnFilteringFeature as ee, columnResizingFeature as te, columnSizingFeature as ne, columnVisibilityFeature as re, createColumnHelper as ie, createFilteredRowModel as ae, createPaginatedRowModel as oe, createSortedRowModel as se, filterFn_includesString as ce, globalFilteringFeature as le, rowPaginationFeature as ue, rowSortingFeature as de, sortFn_alphanumeric as fe, sortFn_alphanumericCaseSensitive as pe, sortFn_basic as me, sortFn_datetime as he, sortFn_text as ge, sortFn_textCaseSensitive as _e, tableFeatures as ve, useTable as ye } from "@tanstack/react-table";
|
|
16
16
|
import { Switch as be } from "@base-ui/react/switch";
|
|
17
|
-
|
|
17
|
+
// components/button-group.tsx
|
|
18
18
|
var xe = ({ className: e, orientation: r = "horizontal", selectedVariant: o, children: s, ...c }) => /* @__PURE__ */ f("div", {
|
|
19
19
|
role: "group",
|
|
20
20
|
className: t("arc-button-group inline-flex w-fit gap-0 overflow-hidden rounded-md border border-border", "[&>.arc-button]:rounded-none! [&>.arc-button:not(:first-child)]:border-l [&>.arc-button:not(:first-child)]:border-border", "[&>.arc-double-click-button]:z-1 [&>.arc-double-click-button]:m-0 [&>.arc-double-click-button]:rounded-none! [&>.arc-double-click-button]:p-0", "[&>.arc-double-click-button>.arc-button]:rounded-none! [&>.arc-double-click-button>.arc-double-click-progress-ring]:inset-0 [&>.arc-double-click-button>.arc-double-click-progress-ring]:z-2 [&>.arc-double-click-button>.arc-double-click-progress-ring]:rounded-[inherit]", "[&>.arc-long-press-button]:z-1 [&>.arc-long-press-button]:m-0 [&>.arc-long-press-button]:rounded-none! [&>.arc-long-press-button]:p-0", "[&>.arc-long-press-button>.arc-button]:rounded-none! [&>.arc-long-press-button>.arc-double-click-progress-ring]:inset-0 [&>.arc-long-press-button>.arc-double-click-progress-ring]:z-2 [&>.arc-long-press-button>.arc-double-click-progress-ring]:rounded-[inherit]", r === "vertical" && "flex-col items-stretch [&>.arc-button]:w-full [&>.arc-double-click-button]:w-full [&>.arc-long-press-button]:w-full [&>.arc-button:not(:first-child)]:border-t [&>.arc-button:not(:first-child)]:border-l-0 [&>.arc-double-click-button:not(:first-child)]:border-t [&>.arc-double-click-button:not(:first-child)]:border-l-0 [&>.arc-long-press-button:not(:first-child)]:border-t [&>.arc-long-press-button:not(:first-child)]:border-l-0 [&>.arc-double-click-button:first-child]:rounded-t-md [&>.arc-double-click-button:last-child]:rounded-b-md [&>.arc-long-press-button:first-child]:rounded-t-md [&>.arc-long-press-button:last-child]:rounded-b-md", r === "horizontal" && "[&>.arc-double-click-button:not(:first-child)]:border-l [&>.arc-double-click-button:not(:first-child)]:border-border [&>.arc-long-press-button:not(:first-child)]:border-l [&>.arc-long-press-button:not(:first-child)]:border-border [&>.arc-double-click-button:first-child]:rounded-l-md [&>.arc-double-click-button:last-child]:rounded-r-md [&>.arc-long-press-button:first-child]:rounded-l-md [&>.arc-long-press-button:last-child]:rounded-r-md", e),
|
|
@@ -506,8 +506,7 @@ J.Header = (e) => {
|
|
|
506
506
|
...r
|
|
507
507
|
});
|
|
508
508
|
};
|
|
509
|
-
|
|
510
|
-
//#region utilities/date-handler.ts
|
|
509
|
+
// utilities/date-handler.ts
|
|
511
510
|
var Fe = class e {
|
|
512
511
|
static toDateTime(e) {
|
|
513
512
|
if (e == null || e === "") return j.invalid("missing date");
|
|
@@ -1331,8 +1330,7 @@ function Qe({ table: e }) {
|
|
|
1331
1330
|
children: [/* @__PURE__ */ f(O, { className: "mr-1.5 h-3 w-3" }), "Columns"]
|
|
1332
1331
|
});
|
|
1333
1332
|
}
|
|
1334
|
-
|
|
1335
|
-
//#region components/text-link.tsx
|
|
1333
|
+
// components/text-link.tsx
|
|
1336
1334
|
var $e = ({ className: e, href: n, text: r, target: i = "_blank", rel: a, ...o }) => /* @__PURE__ */ f("a", {
|
|
1337
1335
|
className: t("arc-text-link rounded-md text-primary underline transition hover:text-primary/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-opacity-75", e),
|
|
1338
1336
|
href: n,
|
|
@@ -1556,8 +1554,7 @@ function ct({ variant: e = "dropdown", showLabel: n = !1 }) {
|
|
|
1556
1554
|
})
|
|
1557
1555
|
});
|
|
1558
1556
|
}
|
|
1559
|
-
|
|
1560
|
-
//#region components/typing-animation.tsx
|
|
1557
|
+
// components/typing-animation.tsx
|
|
1561
1558
|
function lt(e) {
|
|
1562
1559
|
return e === "newline" ? "\n" : e === "comma" ? ", " : "";
|
|
1563
1560
|
}
|
|
@@ -1677,8 +1674,7 @@ function dt({ strings: e, placeholder: t, perTick: n = {
|
|
|
1677
1674
|
})]
|
|
1678
1675
|
});
|
|
1679
1676
|
}
|
|
1680
|
-
|
|
1681
|
-
//#region utilities/hash-navigation.ts
|
|
1677
|
+
// utilities/hash-navigation.ts
|
|
1682
1678
|
function ft({ intervalMs: e = 500, maxAttempts: t = 20, behavior: n = "smooth", block: r } = {}) {
|
|
1683
1679
|
if (typeof window > "u") return () => {};
|
|
1684
1680
|
let i = 0, a = setInterval(() => {
|
|
@@ -1712,5 +1708,4 @@ function mt({ container: e, sectionIds: t, hashFirstSection: n = !0, onActiveCha
|
|
|
1712
1708
|
};
|
|
1713
1709
|
return o(), e.addEventListener("scroll", o, { passive: !0 }), () => e.removeEventListener("scroll", o);
|
|
1714
1710
|
}
|
|
1715
|
-
//#endregion
|
|
1716
1711
|
export { Ee as Avatar, H as Button, xe as ButtonGroup, J as Card, Fe as DateHandler, De as Divider, Ce as DoubleClickButton, Oe as Dropdown, U as ErrorText, je as GridLoader, q as Input, Ie as InputTimestamp, Me as LabelField, we as LongPressButton, X as Menu, Be as Modal, Ve as MultiDropdown, Y as Pill, Re as PillLink, K as PreviewCard, Z as Select, et as Switch, Ye as Table, Ue as Tag, $e as TextLink, ct as ThemeSwitcher, dt as TypingAnimation, ft as navigateToHashOnLoad, mt as updateHashOnScroll, pt as useHashNavigationOnLoad };
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@febkosq8/arc",
|
|
3
|
-
"description": "A React components library for febkosq8",
|
|
4
|
-
"private": false,
|
|
5
|
-
"version": "0.8.
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "./dist/arc.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/arc.js"
|
|
13
|
-
},
|
|
14
|
-
"./styles.css": "./components/index.css"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"components/index.css"
|
|
19
|
-
],
|
|
20
|
-
"homepage": "https://www.npmjs.com/package/@febkosq8/arc",
|
|
21
|
-
"repository": "https://github.com/febkosq8/arc",
|
|
22
|
-
"packageManager": "pnpm@12.
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "vite build",
|
|
25
|
-
"storybook": "storybook dev -p 6006",
|
|
26
|
-
"build-storybook": "storybook build",
|
|
27
|
-
"prettier": "prettier --write .",
|
|
28
|
-
"push-npm": "npm publish --access public",
|
|
29
|
-
"prepublishOnly": "pnpm run build"
|
|
30
|
-
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"react": "19.3.1",
|
|
33
|
-
"react-dom": "19.3.1"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@base-ui/react": "1.9.0",
|
|
37
|
-
"@rinzai/zen": "0.14.0",
|
|
38
|
-
"@tanstack/match-sorter-utils": "9.2.6",
|
|
39
|
-
"@tanstack/react-table": "9.3.1",
|
|
40
|
-
"luxon": "3.7.2",
|
|
41
|
-
"react-icons": "5.7.0"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@storybook/addon-docs": "10.6.
|
|
45
|
-
"@storybook/react-vite": "10.6.
|
|
46
|
-
"@tailwindcss/postcss": "4.3.3",
|
|
47
|
-
"@types/luxon": "3.7.6",
|
|
48
|
-
"@types/node": "26.6.5",
|
|
49
|
-
"@types/react": "19.3.0",
|
|
50
|
-
"@types/react-dom": "19.3.0",
|
|
51
|
-
"@typescript/typescript6": "6.0.2",
|
|
52
|
-
"@vitejs/plugin-react": "6.1.2",
|
|
53
|
-
"eslint": "10.13.0",
|
|
54
|
-
"prettier": "3.9.10",
|
|
55
|
-
"prettier-plugin-css-order": "2.2.0",
|
|
56
|
-
"prettier-plugin-organize-attributes": "1.0.0",
|
|
57
|
-
"prettier-plugin-organize-imports": "4.3.0",
|
|
58
|
-
"prettier-plugin-tailwindcss": "0.8.1",
|
|
59
|
-
"react": "19.3.1",
|
|
60
|
-
"react-dom": "19.3.1",
|
|
61
|
-
"storybook": "10.6.
|
|
62
|
-
"tailwindcss": "4.3.3",
|
|
63
|
-
"typescript": "7.0.2",
|
|
64
|
-
"unplugin-dts": "1.1.2",
|
|
65
|
-
"vite": "8.3.
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@febkosq8/arc",
|
|
3
|
+
"description": "A React components library for febkosq8",
|
|
4
|
+
"private": false,
|
|
5
|
+
"version": "0.8.2",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/arc.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/arc.js"
|
|
13
|
+
},
|
|
14
|
+
"./styles.css": "./components/index.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"components/index.css"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://www.npmjs.com/package/@febkosq8/arc",
|
|
21
|
+
"repository": "https://github.com/febkosq8/arc",
|
|
22
|
+
"packageManager": "pnpm@12.15.0",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "vite build",
|
|
25
|
+
"storybook": "storybook dev -p 6006",
|
|
26
|
+
"build-storybook": "storybook build",
|
|
27
|
+
"prettier": "prettier --write .",
|
|
28
|
+
"push-npm": "npm publish --access public",
|
|
29
|
+
"prepublishOnly": "pnpm run build"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "19.3.1",
|
|
33
|
+
"react-dom": "19.3.1"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@base-ui/react": "1.9.0",
|
|
37
|
+
"@rinzai/zen": "0.14.0",
|
|
38
|
+
"@tanstack/match-sorter-utils": "9.2.6",
|
|
39
|
+
"@tanstack/react-table": "9.3.1",
|
|
40
|
+
"luxon": "3.7.2",
|
|
41
|
+
"react-icons": "5.7.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@storybook/addon-docs": "10.6.3",
|
|
45
|
+
"@storybook/react-vite": "10.6.3",
|
|
46
|
+
"@tailwindcss/postcss": "4.3.3",
|
|
47
|
+
"@types/luxon": "3.7.6",
|
|
48
|
+
"@types/node": "26.6.5",
|
|
49
|
+
"@types/react": "19.3.0",
|
|
50
|
+
"@types/react-dom": "19.3.0",
|
|
51
|
+
"@typescript/typescript6": "6.0.2",
|
|
52
|
+
"@vitejs/plugin-react": "6.1.2",
|
|
53
|
+
"eslint": "10.13.0",
|
|
54
|
+
"prettier": "3.9.10",
|
|
55
|
+
"prettier-plugin-css-order": "2.2.0",
|
|
56
|
+
"prettier-plugin-organize-attributes": "1.0.0",
|
|
57
|
+
"prettier-plugin-organize-imports": "4.3.0",
|
|
58
|
+
"prettier-plugin-tailwindcss": "0.8.1",
|
|
59
|
+
"react": "19.3.1",
|
|
60
|
+
"react-dom": "19.3.1",
|
|
61
|
+
"storybook": "10.6.3",
|
|
62
|
+
"tailwindcss": "4.3.3",
|
|
63
|
+
"typescript": "7.0.2",
|
|
64
|
+
"unplugin-dts": "1.1.2",
|
|
65
|
+
"vite": "8.3.5"
|
|
66
|
+
}
|
|
67
|
+
}
|