@karakuri-ui/react 0.2.2 → 0.2.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.
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Enterprise React component library with design token system.
4
4
 
5
+ [![npm react](https://img.shields.io/npm/v/@karakuri-ui/react?color=37D8E6&label=react)](https://www.npmjs.com/package/@karakuri-ui/react)
6
+ [![npm tokens](https://img.shields.io/npm/v/@karakuri-ui/tokens?color=37D8E6&label=tokens)](https://www.npmjs.com/package/@karakuri-ui/tokens)
7
+
5
8
  📖 [KARAKURI Design System](https://karakuri-ai.github.io/design-system)
6
9
 
7
10
  ---
@@ -76,3 +79,10 @@ import { Chart, type ChartConfig } from '@karakuri-ui/react/chart' // charts: s
76
79
  | **Charts** | Recharts |
77
80
  | **Tokens** | Figma Token Studio → `sync-tokens` |
78
81
  | **Build** | tsup (library), Next.js (docs) |
82
+
83
+ ## Roadmap
84
+
85
+ - [ ] AI guide via `llms.txt` — AI tool integration for token-aware code generation
86
+ - [ ] Chat components — TypingIndicator, QuickReply, ChatInput, ChatMessage
87
+ - [ ] Token Playground — live token editor with real-time preview
88
+ - [ ] Figma design kit — component library for designers
package/dist/index.js CHANGED
@@ -1596,7 +1596,7 @@ var Field = Object.assign(FieldRoot, {
1596
1596
  var inputVariants = (0, import_class_variance_authority9.cva)(
1597
1597
  [
1598
1598
  "flex w-full bg-background text-foreground placeholder:text-foreground/30",
1599
- "border transition-colors duration-micro",
1599
+ "border transition-colors duration-micro outline-transparent",
1600
1600
  "focus:[outline:2px_solid_transparent]",
1601
1601
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-background-muted",
1602
1602
  "file:border-0 file:bg-transparent file:text-sm file:font-semibold"
@@ -1805,7 +1805,7 @@ var import_class_variance_authority10 = require("class-variance-authority");
1805
1805
  var textareaVariants = (0, import_class_variance_authority10.cva)(
1806
1806
  [
1807
1807
  "flex w-full bg-background text-foreground placeholder:text-foreground/30",
1808
- "border transition-colors duration-micro",
1808
+ "border transition-colors duration-micro outline-transparent",
1809
1809
  "focus:[outline:2px_solid_transparent]",
1810
1810
  "disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-background-muted"
1811
1811
  ].join(" "),
@@ -2545,7 +2545,7 @@ var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, radiu
2545
2545
  onCloseAutoFocus?.(e);
2546
2546
  },
2547
2547
  className: cn(
2548
- "z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background shadow-lg",
2548
+ "z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2549
2549
  flush ? "py-1" : "p-1",
2550
2550
  contentRadiusMap[radius],
2551
2551
  className
@@ -2682,7 +2682,7 @@ var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) =
2682
2682
  {
2683
2683
  ref,
2684
2684
  className: cn(
2685
- "z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background shadow-lg",
2685
+ "z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2686
2686
  flush ? "py-1" : "p-1",
2687
2687
  contentRadiusMap[radius],
2688
2688
  className
@@ -2842,7 +2842,7 @@ var SelectTrigger = React18.forwardRef(({ className, children, ...props }, ref)
2842
2842
  "flex w-full items-center justify-between bg-background text-foreground hover:bg-background-muted",
2843
2843
  "border border-border-form",
2844
2844
  triggerRadiusMap[radius],
2845
- "transition-colors duration-micro",
2845
+ "transition-colors duration-micro outline-transparent",
2846
2846
  "focus-visible:shadow-[0_0_0_2px_var(--color-focus-ring)] focus:[outline:2px_solid_transparent]",
2847
2847
  "disabled:cursor-not-allowed disabled:opacity-50",
2848
2848
  "data-[placeholder]:text-foreground/30",
@@ -2900,7 +2900,7 @@ var SelectContent = React18.forwardRef(({ className, children, position = "poppe
2900
2900
  onCloseAutoFocus?.(e);
2901
2901
  },
2902
2902
  className: cn(
2903
- "relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background shadow-lg",
2903
+ "relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2904
2904
  flush ? "py-1" : "p-1",
2905
2905
  contentRadiusMap2[contentRadius],
2906
2906
  position === "popper" && "max-h-[var(--radix-select-content-available-height)]",
@@ -4939,7 +4939,7 @@ var PaginationRoot = React26.forwardRef(
4939
4939
  className: cn("", className),
4940
4940
  ...props
4941
4941
  },
4942
- children
4942
+ children ?? /* @__PURE__ */ React26.createElement(PaginationContent, null, withEdges && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationFirst, null)), withControls && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationPrevious, null)), /* @__PURE__ */ React26.createElement(PaginationItems, null), withControls && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationNext, null)), withEdges && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationLast, null)))
4943
4943
  ));
4944
4944
  }
4945
4945
  );
@@ -5236,7 +5236,7 @@ var ModalContent = React27.forwardRef(({ className, children, size = "sm", scrol
5236
5236
  "div",
5237
5237
  {
5238
5238
  className: cn(
5239
- "relative w-full rounded-xl bg-background shadow-xl overflow-hidden",
5239
+ "relative w-full rounded-xl bg-background text-foreground shadow-xl overflow-hidden",
5240
5240
  modalContentVariants({ size }),
5241
5241
  className
5242
5242
  ),
@@ -5252,7 +5252,7 @@ var ModalContent = React27.forwardRef(({ className, children, size = "sm", scrol
5252
5252
  {
5253
5253
  ref,
5254
5254
  className: cn(
5255
- "relative w-full rounded-xl bg-background shadow-xl overflow-hidden",
5255
+ "relative w-full rounded-xl bg-background text-foreground shadow-xl overflow-hidden",
5256
5256
  "focus:outline-none",
5257
5257
  "data-[state=open]:animate-modal-content-enter data-[state=closed]:animate-modal-content-exit",
5258
5258
  modalContentVariants({ size }),
@@ -5356,7 +5356,7 @@ var AlertModalContent = React27.forwardRef(({ className, children, size = "sm",
5356
5356
  {
5357
5357
  ref,
5358
5358
  className: cn(
5359
- "relative w-full rounded-xl bg-background shadow-xl",
5359
+ "relative w-full rounded-xl bg-background text-foreground shadow-xl",
5360
5360
  "focus:outline-none",
5361
5361
  "data-[state=open]:animate-modal-content-enter data-[state=closed]:animate-modal-content-exit",
5362
5362
  alertModalContentVariants({ size }),
@@ -5538,7 +5538,7 @@ var DrawerContent = React28.forwardRef(({ className, children, side = "right", s
5538
5538
  {
5539
5539
  ref,
5540
5540
  className: cn(
5541
- "fixed z-modal flex flex-col bg-background shadow-xl",
5541
+ "fixed z-modal flex flex-col bg-background text-foreground shadow-xl",
5542
5542
  "focus:outline-none",
5543
5543
  SIDE_POSITION[side],
5544
5544
  isHorizontal ? "max-w-full h-full" : "max-h-full w-full",
@@ -5732,8 +5732,8 @@ var popoverContentVariants = (0, import_class_variance_authority25.cva)(
5732
5732
  {
5733
5733
  variants: {
5734
5734
  variant: {
5735
- default: "bg-background-paper border border-border shadow-lg",
5736
- elevated: "bg-background-paper/95 border border-border-subtle shadow-xl backdrop-blur-sm"
5735
+ default: "bg-background-paper text-foreground border border-border shadow-lg",
5736
+ elevated: "bg-background-paper/95 text-foreground border border-border-subtle shadow-xl backdrop-blur-sm"
5737
5737
  },
5738
5738
  size: {
5739
5739
  sm: "text-sm p-3 rounded-lg",