@mivabyte/ui 26.9.21 → 26.10.3

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 (147) hide show
  1. package/README.md +130 -39
  2. package/dist/components/ui/alert-dialog.cjs +4 -4
  3. package/dist/components/ui/alert-dialog.cjs.map +1 -1
  4. package/dist/components/ui/alert-dialog.js +4 -4
  5. package/dist/components/ui/alert-dialog.js.map +1 -1
  6. package/dist/components/ui/alert.cjs +2 -2
  7. package/dist/components/ui/alert.cjs.map +1 -1
  8. package/dist/components/ui/alert.js +2 -2
  9. package/dist/components/ui/alert.js.map +1 -1
  10. package/dist/components/ui/button-group.cjs.map +1 -1
  11. package/dist/components/ui/button-group.d.ts.map +1 -1
  12. package/dist/components/ui/button-group.js.map +1 -1
  13. package/dist/components/ui/button.cjs +4 -4
  14. package/dist/components/ui/button.cjs.map +1 -1
  15. package/dist/components/ui/button.js +4 -4
  16. package/dist/components/ui/button.js.map +1 -1
  17. package/dist/components/ui/calendar.cjs +36 -25
  18. package/dist/components/ui/calendar.cjs.map +1 -1
  19. package/dist/components/ui/calendar.d.cts +5 -3
  20. package/dist/components/ui/calendar.d.ts +5 -3
  21. package/dist/components/ui/calendar.d.ts.map +1 -1
  22. package/dist/components/ui/calendar.js +36 -25
  23. package/dist/components/ui/calendar.js.map +1 -1
  24. package/dist/components/ui/carousel.cjs +4 -4
  25. package/dist/components/ui/carousel.cjs.map +1 -1
  26. package/dist/components/ui/carousel.js +4 -4
  27. package/dist/components/ui/carousel.js.map +1 -1
  28. package/dist/components/ui/checkbox.cjs +1 -1
  29. package/dist/components/ui/checkbox.cjs.map +1 -1
  30. package/dist/components/ui/checkbox.js +1 -1
  31. package/dist/components/ui/checkbox.js.map +1 -1
  32. package/dist/components/ui/combobox.cjs +4 -4
  33. package/dist/components/ui/combobox.cjs.map +1 -1
  34. package/dist/components/ui/combobox.js +4 -4
  35. package/dist/components/ui/combobox.js.map +1 -1
  36. package/dist/components/ui/command.cjs +25 -27
  37. package/dist/components/ui/command.cjs.map +1 -1
  38. package/dist/components/ui/command.js +24 -26
  39. package/dist/components/ui/command.js.map +1 -1
  40. package/dist/components/ui/date-picker.cjs +36 -24
  41. package/dist/components/ui/date-picker.cjs.map +1 -1
  42. package/dist/components/ui/date-picker.js +36 -24
  43. package/dist/components/ui/date-picker.js.map +1 -1
  44. package/dist/components/ui/dialog.cjs +18 -20
  45. package/dist/components/ui/dialog.cjs.map +1 -1
  46. package/dist/components/ui/dialog.d.ts.map +1 -1
  47. package/dist/components/ui/dialog.js +17 -19
  48. package/dist/components/ui/dialog.js.map +1 -1
  49. package/dist/components/ui/empty.cjs +1 -1
  50. package/dist/components/ui/empty.cjs.map +1 -1
  51. package/dist/components/ui/empty.js +1 -1
  52. package/dist/components/ui/empty.js.map +1 -1
  53. package/dist/components/ui/field.cjs +2 -2
  54. package/dist/components/ui/field.cjs.map +1 -1
  55. package/dist/components/ui/field.js +2 -2
  56. package/dist/components/ui/field.js.map +1 -1
  57. package/dist/components/ui/form.cjs +158 -0
  58. package/dist/components/ui/form.cjs.map +1 -0
  59. package/dist/components/ui/form.d.cts +24 -0
  60. package/dist/components/ui/form.d.ts +25 -0
  61. package/dist/components/ui/form.d.ts.map +1 -0
  62. package/dist/components/ui/form.js +128 -0
  63. package/dist/components/ui/form.js.map +1 -0
  64. package/dist/components/ui/input-group.cjs.map +1 -1
  65. package/dist/components/ui/input-group.d.ts.map +1 -1
  66. package/dist/components/ui/input-group.js.map +1 -1
  67. package/dist/components/ui/message.cjs +5 -2
  68. package/dist/components/ui/message.cjs.map +1 -1
  69. package/dist/components/ui/message.d.cts +1 -1
  70. package/dist/components/ui/message.d.ts +1 -1
  71. package/dist/components/ui/message.d.ts.map +1 -1
  72. package/dist/components/ui/message.js +6 -3
  73. package/dist/components/ui/message.js.map +1 -1
  74. package/dist/components/ui/pagination.cjs +4 -4
  75. package/dist/components/ui/pagination.cjs.map +1 -1
  76. package/dist/components/ui/pagination.js +4 -4
  77. package/dist/components/ui/pagination.js.map +1 -1
  78. package/dist/components/ui/progress.cjs +3 -2
  79. package/dist/components/ui/progress.cjs.map +1 -1
  80. package/dist/components/ui/progress.d.ts.map +1 -1
  81. package/dist/components/ui/progress.js +3 -2
  82. package/dist/components/ui/progress.js.map +1 -1
  83. package/dist/components/ui/radio-group.cjs +2 -2
  84. package/dist/components/ui/radio-group.cjs.map +1 -1
  85. package/dist/components/ui/radio-group.js +2 -2
  86. package/dist/components/ui/radio-group.js.map +1 -1
  87. package/dist/components/ui/sheet.cjs +18 -20
  88. package/dist/components/ui/sheet.cjs.map +1 -1
  89. package/dist/components/ui/sheet.d.ts.map +1 -1
  90. package/dist/components/ui/sheet.js +17 -19
  91. package/dist/components/ui/sheet.js.map +1 -1
  92. package/dist/components/ui/sidebar.cjs +61 -63
  93. package/dist/components/ui/sidebar.cjs.map +1 -1
  94. package/dist/components/ui/sidebar.js +60 -62
  95. package/dist/components/ui/sidebar.js.map +1 -1
  96. package/dist/components/ui/slider.cjs +2 -2
  97. package/dist/components/ui/slider.cjs.map +1 -1
  98. package/dist/components/ui/slider.js +2 -2
  99. package/dist/components/ui/slider.js.map +1 -1
  100. package/dist/components/ui/sonner.cjs +53 -0
  101. package/dist/components/ui/sonner.cjs.map +1 -0
  102. package/dist/components/ui/sonner.d.cts +4 -0
  103. package/dist/components/ui/sonner.d.ts +5 -0
  104. package/dist/components/ui/sonner.d.ts.map +1 -0
  105. package/dist/components/ui/sonner.js +51 -0
  106. package/dist/components/ui/sonner.js.map +1 -0
  107. package/dist/components/ui/switch.cjs +2 -2
  108. package/dist/components/ui/switch.cjs.map +1 -1
  109. package/dist/components/ui/switch.js +2 -2
  110. package/dist/components/ui/switch.js.map +1 -1
  111. package/dist/components/ui/toast.cjs +301 -9
  112. package/dist/components/ui/toast.cjs.map +1 -1
  113. package/dist/components/ui/toast.d.cts +16 -2
  114. package/dist/components/ui/toast.d.ts +16 -2
  115. package/dist/components/ui/toast.d.ts.map +1 -1
  116. package/dist/components/ui/toast.js +272 -1
  117. package/dist/components/ui/toast.js.map +1 -1
  118. package/dist/index.cjs +3 -2
  119. package/dist/index.cjs.map +1 -1
  120. package/dist/index.d.cts +3 -5
  121. package/dist/index.d.ts +3 -5
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +2 -2
  124. package/dist/index.js.map +1 -1
  125. package/dist/lib/render-child.cjs +37 -0
  126. package/dist/lib/render-child.cjs.map +1 -0
  127. package/dist/lib/render-child.d.cts +22 -0
  128. package/dist/lib/render-child.d.ts +23 -0
  129. package/dist/lib/render-child.d.ts.map +1 -0
  130. package/dist/lib/render-child.js +15 -0
  131. package/dist/lib/render-child.js.map +1 -0
  132. package/dist/styles.css +1 -1
  133. package/package.json +49 -47
  134. package/dist/components/ui/container.cjs +0 -69
  135. package/dist/components/ui/container.cjs.map +0 -1
  136. package/dist/components/ui/container.d.cts +0 -11
  137. package/dist/components/ui/container.d.ts +0 -12
  138. package/dist/components/ui/container.d.ts.map +0 -1
  139. package/dist/components/ui/container.js +0 -46
  140. package/dist/components/ui/container.js.map +0 -1
  141. package/dist/components/ui/kbd-group.cjs +0 -74
  142. package/dist/components/ui/kbd-group.cjs.map +0 -1
  143. package/dist/components/ui/kbd-group.d.cts +0 -9
  144. package/dist/components/ui/kbd-group.d.ts +0 -10
  145. package/dist/components/ui/kbd-group.d.ts.map +0 -1
  146. package/dist/components/ui/kbd-group.js +0 -51
  147. package/dist/components/ui/kbd-group.js.map +0 -1
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@mivabyte/ui",
3
- "version": "26.9.21",
3
+ "version": "26.10.3",
4
4
  "description": "Shared Mivabyte design tokens and React UI primitives.",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "sideEffects": [
9
- "**/*.css"
9
+ "**/*.css",
10
+ "./dist/components/ui/toast.js",
11
+ "./dist/components/ui/toast.cjs"
10
12
  ],
11
13
  "main": "./dist/index.js",
12
14
  "types": "./dist/index.d.ts",
@@ -254,17 +256,6 @@
254
256
  },
255
257
  "default": "./dist/components/ui/command.js"
256
258
  },
257
- "./container": {
258
- "import": {
259
- "types": "./dist/components/ui/container.d.ts",
260
- "default": "./dist/components/ui/container.js"
261
- },
262
- "require": {
263
- "types": "./dist/components/ui/container.d.cts",
264
- "default": "./dist/components/ui/container.cjs"
265
- },
266
- "default": "./dist/components/ui/container.js"
267
- },
268
259
  "./context-menu": {
269
260
  "import": {
270
261
  "types": "./dist/components/ui/context-menu.d.ts",
@@ -364,6 +355,17 @@
364
355
  },
365
356
  "default": "./dist/components/ui/field.js"
366
357
  },
358
+ "./form": {
359
+ "import": {
360
+ "types": "./dist/components/ui/form.d.ts",
361
+ "default": "./dist/components/ui/form.js"
362
+ },
363
+ "require": {
364
+ "types": "./dist/components/ui/form.d.cts",
365
+ "default": "./dist/components/ui/form.cjs"
366
+ },
367
+ "default": "./dist/components/ui/form.js"
368
+ },
367
369
  "./hover-card": {
368
370
  "import": {
369
371
  "types": "./dist/components/ui/hover-card.d.ts",
@@ -430,17 +432,6 @@
430
432
  },
431
433
  "default": "./dist/components/ui/kbd.js"
432
434
  },
433
- "./kbd-group": {
434
- "import": {
435
- "types": "./dist/components/ui/kbd-group.d.ts",
436
- "default": "./dist/components/ui/kbd-group.js"
437
- },
438
- "require": {
439
- "types": "./dist/components/ui/kbd-group.d.cts",
440
- "default": "./dist/components/ui/kbd-group.cjs"
441
- },
442
- "default": "./dist/components/ui/kbd-group.js"
443
- },
444
435
  "./label": {
445
436
  "import": {
446
437
  "types": "./dist/components/ui/label.d.ts",
@@ -661,6 +652,17 @@
661
652
  },
662
653
  "default": "./dist/components/ui/slider.js"
663
654
  },
655
+ "./sonner": {
656
+ "import": {
657
+ "types": "./dist/components/ui/sonner.d.ts",
658
+ "default": "./dist/components/ui/sonner.js"
659
+ },
660
+ "require": {
661
+ "types": "./dist/components/ui/sonner.d.cts",
662
+ "default": "./dist/components/ui/sonner.cjs"
663
+ },
664
+ "default": "./dist/components/ui/sonner.js"
665
+ },
664
666
  "./spinner": {
665
667
  "import": {
666
668
  "types": "./dist/components/ui/spinner.d.ts",
@@ -780,13 +782,11 @@
780
782
  "sync:upstream": "node scripts/sync-upstream.mjs",
781
783
  "sync:imports": "node scripts/fix-shadcn-imports.mjs",
782
784
  "typecheck": "tsc --noEmit",
783
- "test": "echo No tests configured yet",
784
785
  "audit:source": "node scripts/audit-source.mjs",
785
- "bundle:check": "node scripts/check-bundle-budgets.mjs",
786
786
  "pack:check": "node scripts/check-packed-package.mjs",
787
- "verify:core": "npm run format:check && npm run audit:source && npm run registry:check && npm run storybook:check && npm run typecheck && npm run build && npm run bundle:check && npm run test:contracts && npm run pack:check && npm run package:lint",
787
+ "verify:core": "npm run format:check && npm run audit:source && npm run registry:check && npm run storybook:check && npm run typecheck && npm run build && npm run test:contracts && npm run pack:check && npm run package:lint",
788
788
  "verify": "npm run lint && npm run verify:core && npm run api:check && npm run test:coverage",
789
- "prepublishOnly": "npm run verify",
789
+ "prepublishOnly": "node scripts/without-dry-run.mjs npm run verify",
790
790
  "prepare": "npm run build",
791
791
  "lint": "eslint .",
792
792
  "lint:fix": "eslint . --fix",
@@ -803,7 +803,7 @@
803
803
  "storybook:typecheck": "tsc -p tsconfig.storybook.json",
804
804
  "storybook:build": "storybook build",
805
805
  "package:publint": "publint",
806
- "package:types": "attw --pack . --profile node16 --exclude-entrypoints styles.css --ignore-rules cjs-resolves-to-esm false-esm",
806
+ "package:types": "node scripts/check-packed-types.mjs",
807
807
  "package:lint": "npm run package:publint && npm run package:types",
808
808
  "registry:write": "node scripts/check-component-registry.mjs --write",
809
809
  "registry:check": "node scripts/check-component-registry.mjs",
@@ -817,10 +817,24 @@
817
817
  },
818
818
  "peerDependencies": {
819
819
  "react": ">=19 <20",
820
- "react-dom": ">=19 <20"
820
+ "react-dom": ">=19 <20",
821
+ "@hookform/resolvers": "^5.9.1",
822
+ "@tanstack/react-table": "^9.2.4",
823
+ "zod": "^3.25.76"
824
+ },
825
+ "peerDependenciesMeta": {
826
+ "@hookform/resolvers": {
827
+ "optional": true
828
+ },
829
+ "@tanstack/react-table": {
830
+ "optional": true
831
+ },
832
+ "zod": {
833
+ "optional": true
834
+ }
821
835
  },
822
836
  "dependencies": {
823
- "@hookform/resolvers": "^5.9.1",
837
+ "@base-ui/react": "^1.8.0",
824
838
  "@radix-ui/react-accordion": "^1.2.20",
825
839
  "@radix-ui/react-alert-dialog": "^1.1.23",
826
840
  "@radix-ui/react-avatar": "^1.2.6",
@@ -847,13 +861,10 @@
847
861
  "@radix-ui/react-toggle": "^1.1.18",
848
862
  "@radix-ui/react-toggle-group": "^1.1.19",
849
863
  "@radix-ui/react-tooltip": "^1.2.16",
850
- "@shadcn/react": "0.3.1",
851
- "@tanstack/react-table": "^9.2.4",
852
- "@types/lodash": "^4.17.25",
853
864
  "class-variance-authority": "^0.7.1",
865
+ "@types/lodash": "^4.17.25",
854
866
  "clsx": "^2.1.1",
855
867
  "cmdk": "^1.1.1",
856
- "date-fns": "^4.4.0",
857
868
  "embla-carousel-react": "^8.6.0",
858
869
  "input-otp": "^1.5.0",
859
870
  "lucide-react": "^1.47.0",
@@ -865,8 +876,7 @@
865
876
  "sonner": "^2.0.8",
866
877
  "tailwind-merge": "^3.7.0",
867
878
  "tw-animate-css": "^1.4.0",
868
- "vaul": "^1.1.2",
869
- "zod": "^3.25.76"
879
+ "vaul": "^1.1.2"
870
880
  },
871
881
  "devDependencies": {
872
882
  "@arethetypeswrong/cli": "^0.18.5",
@@ -891,7 +901,6 @@
891
901
  "axe-core": "^4.13.0",
892
902
  "eslint": "^10.11.0",
893
903
  "eslint-plugin-import-x": "^4.17.1",
894
- "eslint-plugin-jsx-a11y": "^6.10.2",
895
904
  "eslint-plugin-react-hooks": "^7.1.1",
896
905
  "eslint-plugin-unused-imports": "^4.4.1",
897
906
  "globals": "^17.12.0",
@@ -905,20 +914,13 @@
905
914
  "tailwindcss": "^4.3.3",
906
915
  "tsup": "^8.5.1",
907
916
  "typescript": "^5.7.3",
908
- "typescript-eslint": "^8.70.0",
909
- "vitest": "^4.1.11",
910
- "vitest-axe": "^0.1.0"
911
- },
912
- "overrides": {
913
- "eslint-plugin-jsx-a11y": {
914
- "eslint": "$eslint"
915
- }
917
+ "vitest": "^4.1.11"
916
918
  },
917
919
  "publishConfig": {
918
920
  "access": "public"
919
921
  },
920
922
  "engines": {
921
- "node": ">=20"
923
+ "node": ">=22"
922
924
  },
923
925
  "repository": {
924
926
  "type": "git",
@@ -1,69 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var reactSlot = require('@radix-ui/react-slot');
5
- var classVarianceAuthority = require('class-variance-authority');
6
- var clsx = require('clsx');
7
- var tailwindMerge = require('tailwind-merge');
8
- var jsxRuntime = require('react/jsx-runtime');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n.default = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
29
-
30
- // src/components/ui/container.tsx
31
- function cn(...inputs) {
32
- return tailwindMerge.twMerge(clsx.clsx(inputs));
33
- }
34
- var containerVariants = classVarianceAuthority.cva("mx-auto w-full min-w-0", {
35
- variants: {
36
- size: {
37
- standard: "max-w-[var(--content-width)]",
38
- reading: "max-w-[var(--reading-width)]",
39
- wide: "max-w-[var(--wide-width)]"
40
- },
41
- gutter: {
42
- true: "px-[var(--page-gutter)]",
43
- false: null
44
- }
45
- },
46
- defaultVariants: {
47
- size: "standard",
48
- gutter: true
49
- }
50
- });
51
- var Container = React__namespace.forwardRef(
52
- ({ className, size, gutter, asChild = false, ...props }, ref) => {
53
- const Comp = asChild ? reactSlot.Slot : "div";
54
- return /* @__PURE__ */ jsxRuntime.jsx(
55
- Comp,
56
- {
57
- ref,
58
- className: cn(containerVariants({ size, gutter, className })),
59
- ...props
60
- }
61
- );
62
- }
63
- );
64
- Container.displayName = "Container";
65
-
66
- exports.Container = Container;
67
- exports.containerVariants = containerVariants;
68
- //# sourceMappingURL=container.cjs.map
69
- //# sourceMappingURL=container.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/ui/container.tsx"],"names":["twMerge","clsx","cva","React","Slot","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACCA,IAAM,iBAAA,GAAoBC,2BAAI,wBAAA,EAA0B;AAAA,EACtD,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,QAAA,EAAU,8BAAA;AAAA,MACV,OAAA,EAAS,8BAAA;AAAA,MACT,IAAA,EAAM;AAAA,KACR;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,yBAAA;AAAA,MACN,KAAA,EAAO;AAAA;AACT,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,UAAA;AAAA,IACN,MAAA,EAAQ;AAAA;AAEZ,CAAC;AASD,IAAM,SAAA,GAAkBC,gBAAA,CAAA,UAAA;AAAA,EACtB,CAAC,EAAE,SAAA,EAAW,IAAA,EAAM,MAAA,EAAQ,UAAU,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAC/D,IAAA,MAAM,IAAA,GAAO,UAAUC,cAAA,GAAO,KAAA;AAC9B,IAAA,uBACEC,cAAA;AAAA,MAAC,IAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAA,EAAW,GAAG,iBAAA,CAAkB,EAAE,MAAM,MAAA,EAAQ,SAAA,EAAW,CAAC,CAAA;AAAA,QAC3D,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ;AACF;AACA,SAAA,CAAU,WAAA,GAAc,WAAA","file":"container.cjs","sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst containerVariants = cva(\"mx-auto w-full min-w-0\", {\n variants: {\n size: {\n standard: \"max-w-[var(--content-width)]\",\n reading: \"max-w-[var(--reading-width)]\",\n wide: \"max-w-[var(--wide-width)]\",\n },\n gutter: {\n true: \"px-[var(--page-gutter)]\",\n false: null,\n },\n },\n defaultVariants: {\n size: \"standard\",\n gutter: true,\n },\n})\n\nexport interface ContainerProps\n extends\n React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof containerVariants> {\n asChild?: boolean\n}\n\nconst Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ className, size, gutter, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\"\n return (\n <Comp\n ref={ref}\n className={cn(containerVariants({ size, gutter, className }))}\n {...props}\n />\n )\n }\n)\nContainer.displayName = \"Container\"\n\nexport { Container, containerVariants }\n"]}
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- declare const containerVariants: (props?: ({
4
- size?: "standard" | "reading" | "wide" | null | undefined;
5
- gutter?: boolean | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
8
- asChild?: boolean;
9
- }
10
- declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
11
- export { Container, containerVariants };
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- declare const containerVariants: (props?: ({
4
- size?: "standard" | "reading" | "wide" | null | undefined;
5
- gutter?: boolean | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
8
- asChild?: boolean;
9
- }
10
- declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
11
- export { Container, containerVariants };
12
- //# sourceMappingURL=container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/ui/container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,iBAAiB;;;8EAgBrB,CAAA;AAEF,MAAM,WAAW,cACf,SACE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,SAAS,uFAWd,CAAA;AAGD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,46 +0,0 @@
1
- import * as React from 'react';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { cva } from 'class-variance-authority';
4
- import { clsx } from 'clsx';
5
- import { twMerge } from 'tailwind-merge';
6
- import { jsx } from 'react/jsx-runtime';
7
-
8
- // src/components/ui/container.tsx
9
- function cn(...inputs) {
10
- return twMerge(clsx(inputs));
11
- }
12
- var containerVariants = cva("mx-auto w-full min-w-0", {
13
- variants: {
14
- size: {
15
- standard: "max-w-[var(--content-width)]",
16
- reading: "max-w-[var(--reading-width)]",
17
- wide: "max-w-[var(--wide-width)]"
18
- },
19
- gutter: {
20
- true: "px-[var(--page-gutter)]",
21
- false: null
22
- }
23
- },
24
- defaultVariants: {
25
- size: "standard",
26
- gutter: true
27
- }
28
- });
29
- var Container = React.forwardRef(
30
- ({ className, size, gutter, asChild = false, ...props }, ref) => {
31
- const Comp = asChild ? Slot : "div";
32
- return /* @__PURE__ */ jsx(
33
- Comp,
34
- {
35
- ref,
36
- className: cn(containerVariants({ size, gutter, className })),
37
- ...props
38
- }
39
- );
40
- }
41
- );
42
- Container.displayName = "Container";
43
-
44
- export { Container, containerVariants };
45
- //# sourceMappingURL=container.js.map
46
- //# sourceMappingURL=container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/ui/container.tsx"],"names":[],"mappings":";;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACCA,IAAM,iBAAA,GAAoB,IAAI,wBAAA,EAA0B;AAAA,EACtD,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,QAAA,EAAU,8BAAA;AAAA,MACV,OAAA,EAAS,8BAAA;AAAA,MACT,IAAA,EAAM;AAAA,KACR;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,yBAAA;AAAA,MACN,KAAA,EAAO;AAAA;AACT,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,UAAA;AAAA,IACN,MAAA,EAAQ;AAAA;AAEZ,CAAC;AASD,IAAM,SAAA,GAAkB,KAAA,CAAA,UAAA;AAAA,EACtB,CAAC,EAAE,SAAA,EAAW,IAAA,EAAM,MAAA,EAAQ,UAAU,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAC/D,IAAA,MAAM,IAAA,GAAO,UAAU,IAAA,GAAO,KAAA;AAC9B,IAAA,uBACE,GAAA;AAAA,MAAC,IAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAA,EAAW,GAAG,iBAAA,CAAkB,EAAE,MAAM,MAAA,EAAQ,SAAA,EAAW,CAAC,CAAA;AAAA,QAC3D,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ;AACF;AACA,SAAA,CAAU,WAAA,GAAc,WAAA","file":"container.js","sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst containerVariants = cva(\"mx-auto w-full min-w-0\", {\n variants: {\n size: {\n standard: \"max-w-[var(--content-width)]\",\n reading: \"max-w-[var(--reading-width)]\",\n wide: \"max-w-[var(--wide-width)]\",\n },\n gutter: {\n true: \"px-[var(--page-gutter)]\",\n false: null,\n },\n },\n defaultVariants: {\n size: \"standard\",\n gutter: true,\n },\n})\n\nexport interface ContainerProps\n extends\n React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof containerVariants> {\n asChild?: boolean\n}\n\nconst Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ className, size, gutter, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\"\n return (\n <Comp\n ref={ref}\n className={cn(containerVariants({ size, gutter, className }))}\n {...props}\n />\n )\n }\n)\nContainer.displayName = \"Container\"\n\nexport { Container, containerVariants }\n"]}
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- var React2 = require('react');
4
- var SeparatorPrimitive = require('@radix-ui/react-separator');
5
- var clsx = require('clsx');
6
- var tailwindMerge = require('tailwind-merge');
7
- var jsxRuntime = require('react/jsx-runtime');
8
-
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
28
- var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
29
-
30
- // src/components/ui/kbd-group.tsx
31
- function cn(...inputs) {
32
- return tailwindMerge.twMerge(clsx.clsx(inputs));
33
- }
34
- var Separator = React2__namespace.forwardRef(
35
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
36
- SeparatorPrimitive__namespace.Root,
37
- {
38
- ref,
39
- decorative,
40
- orientation,
41
- className: cn(
42
- "shrink-0 bg-border",
43
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
44
- className
45
- ),
46
- ...props
47
- }
48
- )
49
- );
50
- Separator.displayName = SeparatorPrimitive__namespace.Root.displayName;
51
- function KbdGroup({
52
- separator = true,
53
- className,
54
- children,
55
- ...props
56
- }) {
57
- const nodes = Array.isArray(children) ? children : [children];
58
- const segment = nodes.filter((child) => React2__namespace.isValidElement(child));
59
- return /* @__PURE__ */ jsxRuntime.jsx(
60
- "div",
61
- {
62
- className: `inline-flex gap-1 rounded border border-border bg-background p-1 text-foreground ${className || ""}`,
63
- ...props,
64
- children: segment.map((child, index) => /* @__PURE__ */ jsxRuntime.jsxs(React2__namespace.Fragment, { children: [
65
- child,
66
- separator && index < segment.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical" })
67
- ] }, index))
68
- }
69
- );
70
- }
71
-
72
- exports.KbdGroup = KbdGroup;
73
- //# sourceMappingURL=kbd-group.cjs.map
74
- //# sourceMappingURL=kbd-group.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/ui/separator.tsx","../../../src/components/ui/kbd-group.tsx"],"names":["twMerge","clsx","React","jsx","SeparatorPrimitive","React2","jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACAA,IAAM,SAAA,GAAkBC,iBAAA,CAAA,UAAA;AAAA,EAItB,CACE,EAAE,SAAA,EAAW,WAAA,GAAc,YAAA,EAAc,aAAa,IAAA,EAAM,GAAG,KAAA,EAAM,EACrE,GAAA,qBAEAC,cAAA;AAAA,IAAoBC,6BAAA,CAAA,IAAA;AAAA,IAAnB;AAAA,MACC,GAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,SAAA,EAAW,EAAA;AAAA,QACT,oBAAA;AAAA,QACA,WAAA,KAAgB,eAAe,gBAAA,GAAmB,gBAAA;AAAA,QAClD;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV,CAAA;AACA,SAAA,CAAU,cAAiCA,6BAAA,CAAA,IAAA,CAAK,WAAA;ACfzC,SAAS,QAAA,CAAS;AAAA,EACvB,SAAA,GAAY,IAAA;AAAA,EACZ,SAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAkB;AAChB,EAAA,MAAM,QAAQ,KAAA,CAAM,OAAA,CAAQ,QAAQ,CAAA,GAAI,QAAA,GAAW,CAAC,QAAQ,CAAA;AAC5D,EAAA,MAAM,UAAU,KAAA,CAAM,MAAA,CAAO,CAAC,KAAA,KAAgBC,iBAAA,CAAA,cAAA,CAAe,KAAK,CAAC,CAAA;AAEnE,EAAA,uBACEF,cAAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,CAAA,iFAAA,EAAoF,SAAA,IAAa,EAAE,CAAA,CAAA;AAAA,MAC7G,GAAG,KAAA;AAAA,MAEH,kBAAQ,GAAA,CAAI,CAAC,OAAO,KAAA,qBACnBG,eAAA,CAAOD,4BAAN,EACE,QAAA,EAAA;AAAA,QAAA,KAAA;AAAA,QACA,SAAA,IAAa,QAAQ,OAAA,CAAQ,MAAA,GAAS,qBACrCF,cAAAA,CAAC,SAAA,EAAA,EAAU,WAAA,EAAY,UAAA,EAAW;AAAA,OAAA,EAAA,EAHjB,KAKrB,CACD;AAAA;AAAA,GACH;AAEJ","file":"kbd-group.cjs","sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className\n )}\n {...props}\n />\n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n","import * as React from \"react\"\nimport { Separator } from \"./separator\"\nimport { cn } from \"@/lib/utils\"\n\ninterface KbdGroupProps extends React.HTMLAttributes<HTMLDivElement> {\n separator?: boolean\n children: React.ReactNode\n}\n\nexport interface KbdGroupPropsInternal extends KbdGroupProps {}\n\nexport function KbdGroup({\n separator = true,\n className,\n children,\n ...props\n}: KbdGroupProps) {\n const nodes = Array.isArray(children) ? children : [children]\n const segment = nodes.filter((child) => React.isValidElement(child))\n\n return (\n <div\n className={`inline-flex gap-1 rounded border border-border bg-background p-1 text-foreground ${className || \"\"}`}\n {...props}\n >\n {segment.map((child, index) => (\n <React.Fragment key={index}>\n {child}\n {separator && index < segment.length - 1 && (\n <Separator orientation=\"vertical\" />\n )}\n </React.Fragment>\n ))}\n </div>\n )\n}\n"]}
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- interface KbdGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
- separator?: boolean;
4
- children: React.ReactNode;
5
- }
6
- export interface KbdGroupPropsInternal extends KbdGroupProps {
7
- }
8
- export declare function KbdGroup({ separator, className, children, ...props }: KbdGroupProps): React.JSX.Element;
9
- export {};
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- interface KbdGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
- separator?: boolean;
4
- children: React.ReactNode;
5
- }
6
- export interface KbdGroupPropsInternal extends KbdGroupProps {
7
- }
8
- export declare function KbdGroup({ separator, className, children, ...props }: KbdGroupProps): React.JSX.Element;
9
- export {};
10
- //# sourceMappingURL=kbd-group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kbd-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/kbd-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAClE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,qBAAsB,SAAQ,aAAa;CAAG;AAE/D,wBAAgB,QAAQ,CAAC,EACvB,SAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,qBAmBf"}
@@ -1,51 +0,0 @@
1
- import * as React2 from 'react';
2
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
- import { clsx } from 'clsx';
4
- import { twMerge } from 'tailwind-merge';
5
- import { jsx, jsxs } from 'react/jsx-runtime';
6
-
7
- // src/components/ui/kbd-group.tsx
8
- function cn(...inputs) {
9
- return twMerge(clsx(inputs));
10
- }
11
- var Separator = React2.forwardRef(
12
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
13
- SeparatorPrimitive.Root,
14
- {
15
- ref,
16
- decorative,
17
- orientation,
18
- className: cn(
19
- "shrink-0 bg-border",
20
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
21
- className
22
- ),
23
- ...props
24
- }
25
- )
26
- );
27
- Separator.displayName = SeparatorPrimitive.Root.displayName;
28
- function KbdGroup({
29
- separator = true,
30
- className,
31
- children,
32
- ...props
33
- }) {
34
- const nodes = Array.isArray(children) ? children : [children];
35
- const segment = nodes.filter((child) => React2.isValidElement(child));
36
- return /* @__PURE__ */ jsx(
37
- "div",
38
- {
39
- className: `inline-flex gap-1 rounded border border-border bg-background p-1 text-foreground ${className || ""}`,
40
- ...props,
41
- children: segment.map((child, index) => /* @__PURE__ */ jsxs(React2.Fragment, { children: [
42
- child,
43
- separator && index < segment.length - 1 && /* @__PURE__ */ jsx(Separator, { orientation: "vertical" })
44
- ] }, index))
45
- }
46
- );
47
- }
48
-
49
- export { KbdGroup };
50
- //# sourceMappingURL=kbd-group.js.map
51
- //# sourceMappingURL=kbd-group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/ui/separator.tsx","../../../src/components/ui/kbd-group.tsx"],"names":["React","jsx"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACAA,IAAM,SAAA,GAAkBA,MAAA,CAAA,UAAA;AAAA,EAItB,CACE,EAAE,SAAA,EAAW,WAAA,GAAc,YAAA,EAAc,aAAa,IAAA,EAAM,GAAG,KAAA,EAAM,EACrE,GAAA,qBAEA,GAAA;AAAA,IAAoB,kBAAA,CAAA,IAAA;AAAA,IAAnB;AAAA,MACC,GAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,SAAA,EAAW,EAAA;AAAA,QACT,oBAAA;AAAA,QACA,WAAA,KAAgB,eAAe,gBAAA,GAAmB,gBAAA;AAAA,QAClD;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV,CAAA;AACA,SAAA,CAAU,cAAiC,kBAAA,CAAA,IAAA,CAAK,WAAA;ACfzC,SAAS,QAAA,CAAS;AAAA,EACvB,SAAA,GAAY,IAAA;AAAA,EACZ,SAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAkB;AAChB,EAAA,MAAM,QAAQ,KAAA,CAAM,OAAA,CAAQ,QAAQ,CAAA,GAAI,QAAA,GAAW,CAAC,QAAQ,CAAA;AAC5D,EAAA,MAAM,UAAU,KAAA,CAAM,MAAA,CAAO,CAAC,KAAA,KAAgB,MAAA,CAAA,cAAA,CAAe,KAAK,CAAC,CAAA;AAEnE,EAAA,uBACEC,GAAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,CAAA,iFAAA,EAAoF,SAAA,IAAa,EAAE,CAAA,CAAA;AAAA,MAC7G,GAAG,KAAA;AAAA,MAEH,kBAAQ,GAAA,CAAI,CAAC,OAAO,KAAA,qBACnB,IAAA,CAAO,iBAAN,EACE,QAAA,EAAA;AAAA,QAAA,KAAA;AAAA,QACA,SAAA,IAAa,QAAQ,OAAA,CAAQ,MAAA,GAAS,qBACrCA,GAAAA,CAAC,SAAA,EAAA,EAAU,WAAA,EAAY,UAAA,EAAW;AAAA,OAAA,EAAA,EAHjB,KAKrB,CACD;AAAA;AAAA,GACH;AAEJ","file":"kbd-group.js","sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className\n )}\n {...props}\n />\n )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n","import * as React from \"react\"\nimport { Separator } from \"./separator\"\nimport { cn } from \"@/lib/utils\"\n\ninterface KbdGroupProps extends React.HTMLAttributes<HTMLDivElement> {\n separator?: boolean\n children: React.ReactNode\n}\n\nexport interface KbdGroupPropsInternal extends KbdGroupProps {}\n\nexport function KbdGroup({\n separator = true,\n className,\n children,\n ...props\n}: KbdGroupProps) {\n const nodes = Array.isArray(children) ? children : [children]\n const segment = nodes.filter((child) => React.isValidElement(child))\n\n return (\n <div\n className={`inline-flex gap-1 rounded border border-border bg-background p-1 text-foreground ${className || \"\"}`}\n {...props}\n >\n {segment.map((child, index) => (\n <React.Fragment key={index}>\n {child}\n {separator && index < segment.length - 1 && (\n <Separator orientation=\"vertical\" />\n )}\n </React.Fragment>\n ))}\n </div>\n )\n}\n"]}