@calcifer-design/ui 0.1.0

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 (48) hide show
  1. package/dist/components/Button/Button.d.ts +12 -0
  2. package/dist/components/Button/Button.js +26 -0
  3. package/dist/components/Button/Button.module.js +6 -0
  4. package/dist/components/Button/Button_module.css +79 -0
  5. package/dist/components/Button/LinkButton.d.ts +19 -0
  6. package/dist/components/Button/LinkButton.js +24 -0
  7. package/dist/components/Card/Card.d.ts +15 -0
  8. package/dist/components/Card/Card.js +31 -0
  9. package/dist/components/Card/Card.module.js +9 -0
  10. package/dist/components/Card/Card_module.css +55 -0
  11. package/dist/components/DataTable/DataTable.d.ts +46 -0
  12. package/dist/components/DataTable/DataTable.js +98 -0
  13. package/dist/components/DataTable/DataTable.module.js +13 -0
  14. package/dist/components/DataTable/DataTable_module.css +149 -0
  15. package/dist/components/LiveRegion/LiveRegion.d.ts +5 -0
  16. package/dist/components/LiveRegion/LiveRegion.js +13 -0
  17. package/dist/components/LiveRegion/LiveRegion.module.js +5 -0
  18. package/dist/components/LiveRegion/LiveRegion_module.css +12 -0
  19. package/dist/components/NavMenu/NavMenu.d.ts +19 -0
  20. package/dist/components/NavMenu/NavMenu.js +86 -0
  21. package/dist/components/NavMenu/NavMenu.module.js +12 -0
  22. package/dist/components/NavMenu/NavMenu_module.css +85 -0
  23. package/dist/components/PageHeading/PageHeading.d.ts +16 -0
  24. package/dist/components/PageHeading/PageHeading.js +32 -0
  25. package/dist/components/PageHeading/PageHeading.module.js +7 -0
  26. package/dist/components/PageHeading/PageHeading_module.css +53 -0
  27. package/dist/components/SkipLink/SkipLink.d.ts +6 -0
  28. package/dist/components/SkipLink/SkipLink.js +11 -0
  29. package/dist/components/SkipLink/SkipLink.module.js +5 -0
  30. package/dist/components/SkipLink/SkipLink_module.css +24 -0
  31. package/dist/components/StatusDot/StatusDot.d.ts +17 -0
  32. package/dist/components/StatusDot/StatusDot.js +26 -0
  33. package/dist/components/StatusDot/StatusDot.module.js +9 -0
  34. package/dist/components/StatusDot/StatusDot_module.css +73 -0
  35. package/dist/components/Tabs/Tabs.d.ts +16 -0
  36. package/dist/components/Tabs/Tabs.js +35 -0
  37. package/dist/components/Tabs/Tabs.module.js +8 -0
  38. package/dist/components/Tabs/Tabs_module.css +53 -0
  39. package/dist/components/Tag/Tag.d.ts +6 -0
  40. package/dist/components/Tag/Tag.js +10 -0
  41. package/dist/components/Tag/Tag.module.js +5 -0
  42. package/dist/components/Tag/Tag_module.css +20 -0
  43. package/dist/hooks/useMediaQuery.d.ts +3 -0
  44. package/dist/hooks/useMediaQuery.js +22 -0
  45. package/dist/index.d.ts +23 -0
  46. package/dist/index.js +12 -0
  47. package/dist/styles/base.css +58 -0
  48. package/package.json +69 -0
@@ -0,0 +1,23 @@
1
+ export { Button } from './components/Button/Button.js';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize } from './components/Button/Button.js';
3
+ export { LinkButton } from './components/Button/LinkButton.js';
4
+ export type { LinkButtonProps } from './components/Button/LinkButton.js';
5
+ export { Tabs } from './components/Tabs/Tabs.js';
6
+ export type { TabsProps, TabItem } from './components/Tabs/Tabs.js';
7
+ export { Card } from './components/Card/Card.js';
8
+ export type { CardProps } from './components/Card/Card.js';
9
+ export { Tag } from './components/Tag/Tag.js';
10
+ export type { TagProps } from './components/Tag/Tag.js';
11
+ export { StatusDot } from './components/StatusDot/StatusDot.js';
12
+ export type { StatusDotProps, RemoteStatus } from './components/StatusDot/StatusDot.js';
13
+ export { SkipLink } from './components/SkipLink/SkipLink.js';
14
+ export type { SkipLinkProps } from './components/SkipLink/SkipLink.js';
15
+ export { LiveRegion } from './components/LiveRegion/LiveRegion.js';
16
+ export type { LiveRegionProps } from './components/LiveRegion/LiveRegion.js';
17
+ export { PageHeading } from './components/PageHeading/PageHeading.js';
18
+ export type { PageHeadingProps } from './components/PageHeading/PageHeading.js';
19
+ export { NavMenu } from './components/NavMenu/NavMenu.js';
20
+ export type { NavMenuProps, NavItem, LinkRenderProps } from './components/NavMenu/NavMenu.js';
21
+ export { useMediaQuery, minWidth } from './hooks/useMediaQuery.js';
22
+ export { DataTable, createColumnHelper } from './components/DataTable/DataTable.js';
23
+ export type { DataTableProps, ColumnDef, SortingState } from './components/DataTable/DataTable.js';
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ export { Button } from "./components/Button/Button.js";
2
+ export { LinkButton } from "./components/Button/LinkButton.js";
3
+ export { Tabs } from "./components/Tabs/Tabs.js";
4
+ export { Card } from "./components/Card/Card.js";
5
+ export { Tag } from "./components/Tag/Tag.js";
6
+ export { StatusDot } from "./components/StatusDot/StatusDot.js";
7
+ export { SkipLink } from "./components/SkipLink/SkipLink.js";
8
+ export { LiveRegion } from "./components/LiveRegion/LiveRegion.js";
9
+ export { PageHeading } from "./components/PageHeading/PageHeading.js";
10
+ export { NavMenu } from "./components/NavMenu/NavMenu.js";
11
+ export { minWidth, useMediaQuery } from "./hooks/useMediaQuery.js";
12
+ export { DataTable, createColumnHelper } from "./components/DataTable/DataTable.js";
@@ -0,0 +1,58 @@
1
+ *, :before, :after {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ html {
6
+ isolation: isolate;
7
+ font-family: var(--font-sans);
8
+ font-size: 100%;
9
+ line-height: var(--leading-body);
10
+ -webkit-text-size-adjust: 100%;
11
+ background: var(--color-surface-1);
12
+ color: var(--color-text);
13
+ }
14
+
15
+ body {
16
+ min-height: 100dvh;
17
+ margin: 0;
18
+ }
19
+
20
+ img, video {
21
+ max-width: 100%;
22
+ height: auto;
23
+ }
24
+
25
+ button, input, select, textarea {
26
+ font: inherit;
27
+ color: inherit;
28
+ }
29
+
30
+ :focus-visible {
31
+ outline: var(--focus-ring-width) solid var(--color-focus);
32
+ outline-offset: var(--focus-ring-offset);
33
+ }
34
+
35
+ h1, h2, h3 {
36
+ line-height: var(--leading-tight);
37
+ letter-spacing: var(--tracking-heading);
38
+ margin: 0;
39
+ }
40
+
41
+ p {
42
+ max-width: var(--measure);
43
+ margin: 0;
44
+ }
45
+
46
+ code, pre {
47
+ font-family: var(--font-mono);
48
+ }
49
+
50
+ @media (prefers-reduced-motion: reduce) {
51
+ *, :before, :after {
52
+ scroll-behavior: auto !important;
53
+ transition-duration: .01ms !important;
54
+ animation-duration: .01ms !important;
55
+ animation-iteration-count: 1 !important;
56
+ }
57
+ }
58
+
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@calcifer-design/ui",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/juansrodz/calcifer-design.git",
9
+ "directory": "packages/ui"
10
+ },
11
+ "homepage": "https://juansrodz.github.io/calcifer-design/",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "sideEffects": [
19
+ "**/*.css",
20
+ "./dist/**/*.module.js"
21
+ ],
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ },
27
+ "./base.css": "./dist/styles/base.css"
28
+ },
29
+ "scripts": {
30
+ "build": "rslib build",
31
+ "dev": "rslib build --watch",
32
+ "typecheck": "bun run build && tsc -p tsconfig.json",
33
+ "test": "vitest run",
34
+ "test:dist": "vitest run --config vitest.dist.config.ts",
35
+ "storybook": "storybook dev -p 6006",
36
+ "storybook:build": "storybook build"
37
+ },
38
+ "peerDependencies": {
39
+ "react": "^19.0.0",
40
+ "react-dom": "^19.0.0"
41
+ },
42
+ "dependencies": {
43
+ "@base-ui/react": "^1.8.0",
44
+ "@calcifer-design/tokens": "0.1.0",
45
+ "@tanstack/react-table": "^9.2.4"
46
+ },
47
+ "devDependencies": {
48
+ "@calcifer-design/tsconfig": "0.0.0",
49
+ "@rsbuild/core": "^2.2.3",
50
+ "@rsbuild/plugin-react": "^2.1.0",
51
+ "@rsbuild/plugin-typed-css-modules": "^1.2.4",
52
+ "@rslib/core": "1.0.0",
53
+ "@storybook/addon-a11y": "^10.6.0",
54
+ "@storybook/addon-docs": "^10.6.0",
55
+ "@storybook/react": "^10.6.0",
56
+ "@testing-library/jest-dom": "^7.0.1",
57
+ "@testing-library/react": "^16.3.3",
58
+ "@testing-library/user-event": "^14.6.7",
59
+ "@types/react": "^19.2.0",
60
+ "@types/react-dom": "^19.2.0",
61
+ "jsdom": "^30.0.1",
62
+ "react": "^19.2.0",
63
+ "react-dom": "^19.2.0",
64
+ "storybook": "^10.6.0",
65
+ "storybook-react-rsbuild": "^3.4.2",
66
+ "vitest": "^5.0.0",
67
+ "vitest-axe": "1.0.0-pre.5"
68
+ }
69
+ }