@7onic-ui/react 0.3.11 → 0.3.13

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/index.mjs CHANGED
@@ -251,7 +251,7 @@ import {
251
251
  DropdownMenuSubContent,
252
252
  DropdownMenuSubTrigger,
253
253
  DropdownMenuTrigger
254
- } from "./chunk-V5UFWYFI.mjs";
254
+ } from "./chunk-WDTDGSJN.mjs";
255
255
  import {
256
256
  Accordion,
257
257
  AccordionContent,
@@ -289,7 +289,7 @@ import {
289
289
  BreadcrumbPage,
290
290
  BreadcrumbSeparator,
291
291
  breadcrumbSizeMap
292
- } from "./chunk-NWFMJWGX.mjs";
292
+ } from "./chunk-ZN7DBSKH.mjs";
293
293
  import {
294
294
  ButtonGroup,
295
295
  useButtonGroup
package/llms.txt CHANGED
@@ -656,7 +656,7 @@ import { Toggle } from '@7onic-ui/react'
656
656
  | variant | `'default' \| 'outline' \| 'ghost' \| 'outline-ghost'` | `'default'` | Visual style |
657
657
  | size | `'xs' \| 'sm' \| 'md' \| 'default' \| 'lg'` | `'default'` | 28/32/36/40/48px |
658
658
  | radius | Same as Button | `'default'` | Border radius |
659
- | fontWeight | `'normal' \| 'semibold'` | per variant | Font weight |
659
+ | fontWeight | `'normal' \| 'semibold'` | `'normal'` | Font weight |
660
660
  | iconOnly | `boolean` | `false` | Square mode (no text padding) |
661
661
  | pressEffect | `boolean` | `true` | Scale-down on press |
662
662
  | pressed | `boolean` | — | Controlled state |
@@ -683,7 +683,7 @@ import { ToggleGroup, ToggleGroupItem } from '@7onic-ui/react'
683
683
  | variant | `'default' \| 'outline'` | `'default'` | Visual style |
684
684
  | size | `'xs' \| 'sm' \| 'md' \| 'default' \| 'lg'` | `'default'` | Item size |
685
685
  | radius | Same as Button | `'default'` | Border radius |
686
- | fontWeight | `'normal' \| 'semibold'` | per variant | Font weight |
686
+ | fontWeight | `'normal' \| 'semibold'` | `'normal'` | Font weight |
687
687
  | orientation | `'horizontal' \| 'vertical'` | `'horizontal'` | Layout direction |
688
688
  | value | `string \| string[]` | — | Controlled value |
689
689
  | defaultValue | `string \| string[]` | — | Uncontrolled default |
@@ -710,7 +710,7 @@ import { Segmented, SegmentedItem } from '@7onic-ui/react'
710
710
  | variant | `'default' \| 'outline' \| 'underline' \| 'ghost'` | `'default'` | Visual style |
711
711
  | size | `'sm' \| 'md' \| 'default' \| 'lg'` | `'default'` | 32/36/40/48px (no xs) |
712
712
  | radius | Same as Button (excl. none) | `'default'` | Border radius |
713
- | fontWeight | `'normal' \| 'semibold'` | per variant | Font weight |
713
+ | fontWeight | `'normal' \| 'semibold'` | `'normal'` | Font weight |
714
714
  | value | `string` | — | Controlled value |
715
715
  | defaultValue | `string` | — | Uncontrolled default |
716
716
  | onValueChange | `(value: string) => void` | — | Change handler |
@@ -1540,7 +1540,7 @@ const chartConfig = {
1540
1540
  | Prop (Container) | Type | Default | Description |
1541
1541
  |---|---|---|---|
1542
1542
  | config | `ChartConfig` | required | Data key → label/color mapping |
1543
- | hoverFade | `boolean` | `false` | Fade non-hovered elements |
1543
+ | hoverFade | `boolean` | `false` | Fade non-hovered elements (Bar / Line / Area only — ChartPie highlights with its own `activeShape`) |
1544
1544
 
1545
1545
  | Prop (Bar) | Type | Default | Description |
1546
1546
  |---|---|---|---|
@@ -1867,7 +1867,7 @@ import { ChatMessage, ChatMessageAvatar, ChatMessageContent, ChatMessageFooter }
1867
1867
  | radius | `'md' \| 'lg' \| 'xl' \| '2xl'` | `'2xl'` | Bubble corner radius |
1868
1868
  | tail | `boolean` | `true` | Asymmetric tail corner (sharp on avatar side) — bubble only |
1869
1869
  | avatarSize | `'sm' \| 'md' \| 'lg'` | — | Avatar size — also adjusts gap between avatar and bubble |
1870
- | typing | `boolean` | `false` | Show animated typing dots inside Content |
1870
+ | typing | `boolean \| TypingIndicatorProps` (without `className`) | `false` | Show the typing indicator inside Content — `true` for defaults, or an object (`variant`, `color`, `speed`, `label`, `showLabel`) to customize |
1871
1871
  | actions | `ReactNode` | — | Hover-reveal action buttons (copy, react, etc.) |
1872
1872
 
1873
1873
  | Prop (ChatMessage.Avatar) | Type | Default | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7onic-ui/react",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -104,6 +104,7 @@
104
104
  "@types/react": "^19.0.0",
105
105
  "@types/react-dom": "^19.0.0",
106
106
  "autoprefixer": "^10.4.19",
107
+ "axe-core": "4.11.1",
107
108
  "cmdk": "^1.1.1",
108
109
  "eslint": "^9.39.5",
109
110
  "eslint-config-next": "^16.4.3",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/ui/breadcrumb.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cn } from '@/lib/utils'\n\n// ─── Context ──────────────────────────────────────────────\n\ntype BreadcrumbContextValue = {\n size?: 'sm' | 'default' | 'lg'\n separator?: React.ReactNode\n}\n\nconst BreadcrumbContext = React.createContext<BreadcrumbContextValue>({})\nconst useBreadcrumbContext = () => React.useContext(BreadcrumbContext)\n\n// ─── Default Separator Icon ───────────────────────────────\n\nfunction ChevronRightIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n strokeWidth={2}\n >\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M9 5l7 7-7 7\" />\n </svg>\n )\n}\n\n// ─── Ellipsis Icon ────────────────────────────────────────\n\nfunction EllipsisIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n viewBox=\"0 0 24 24\"\n >\n <circle cx=\"6\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"12\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"18\" cy=\"12\" r=\"1.5\" />\n </svg>\n )\n}\n\n// ─── Breadcrumb (Root) ────────────────────────────────────\n\nconst breadcrumbSizeMap = {\n sm: { text: 'text-xs', icon: 'icon-xs', gap: 'gap-1.5' },\n default: { text: 'text-sm', icon: 'icon-xs', gap: 'gap-2' },\n lg: { text: 'text-md', icon: 'icon-sm', gap: 'gap-2' },\n} as const\n\nexport interface BreadcrumbProps extends React.ComponentPropsWithoutRef<'nav'> {\n /** Separator element between items */\n separator?: React.ReactNode\n /** Size of the breadcrumb */\n size?: 'sm' | 'default' | 'lg'\n /** Max items before collapsing (undefined = no collapse) */\n maxItems?: number\n /** Items visible before the ellipsis when collapsed */\n itemsBeforeCollapse?: number\n /** Items visible after the ellipsis when collapsed */\n itemsAfterCollapse?: number\n}\n\nconst Breadcrumb = React.forwardRef<HTMLElement, BreadcrumbProps>(\n ({ className, separator, size = 'default', ...props }, ref) => (\n <BreadcrumbContext.Provider value={{ size, separator }}>\n <nav\n ref={ref}\n aria-label=\"breadcrumb\"\n className={cn('', className)}\n {...props}\n />\n </BreadcrumbContext.Provider>\n )\n)\nBreadcrumb.displayName = 'Breadcrumb'\n\n// ─── BreadcrumbList ───────────────────────────────────────\n\nconst BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<'ol'>>(\n ({ className, ...props }, ref) => {\n const { size = 'default' } = useBreadcrumbContext()\n const sizeClass = breadcrumbSizeMap[size]\n return (\n <ol\n ref={ref}\n className={cn(\n 'flex flex-wrap items-center',\n sizeClass.gap,\n sizeClass.text,\n 'text-text-muted',\n className\n )}\n {...props}\n />\n )\n }\n)\nBreadcrumbList.displayName = 'BreadcrumbList'\n\n// ─── BreadcrumbItem ───────────────────────────────────────\n\nconst BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<'li'>>(\n ({ className, ...props }, ref) => (\n <li\n ref={ref}\n className={cn('inline-flex items-center gap-1.5', className)}\n {...props}\n />\n )\n)\nBreadcrumbItem.displayName = 'BreadcrumbItem'\n\n// ─── BreadcrumbLink ───────────────────────────────────────\n\nexport interface BreadcrumbLinkProps extends React.ComponentPropsWithoutRef<'a'> {\n /** Use Radix Slot to compose with custom link components */\n asChild?: boolean\n}\n\nconst BreadcrumbLink = React.forwardRef<HTMLAnchorElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a'\n return (\n <Comp\n ref={ref}\n className={cn(\n 'transition-colors duration-fast hover:text-foreground',\n className\n )}\n {...props}\n />\n )\n }\n)\nBreadcrumbLink.displayName = 'BreadcrumbLink'\n\n// ─── BreadcrumbPage ───────────────────────────────────────\n\nconst BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<'span'>>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn('text-foreground', className)}\n {...props}\n />\n )\n)\nBreadcrumbPage.displayName = 'BreadcrumbPage'\n\n// ─── BreadcrumbSeparator ──────────────────────────────────\n\nconst BreadcrumbSeparator = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<'li'>>(\n ({ children, className, ...props }, ref) => {\n const { separator, size = 'default' } = useBreadcrumbContext()\n const sizeClass = breadcrumbSizeMap[size]\n return (\n <li\n ref={ref}\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn('flex items-center text-text-subtle', className)}\n {...props}\n >\n {children ?? separator ?? <ChevronRightIcon className={sizeClass.icon} />}\n </li>\n )\n }\n)\nBreadcrumbSeparator.displayName = 'BreadcrumbSeparator'\n\n// ─── BreadcrumbEllipsis ───────────────────────────────────\n\nexport interface BreadcrumbEllipsisProps extends React.ComponentPropsWithoutRef<'span'> {}\n\nconst BreadcrumbEllipsis = React.forwardRef<HTMLSpanElement, BreadcrumbEllipsisProps>(\n ({ className, ...props }, ref) => {\n const { size = 'default' } = useBreadcrumbContext()\n const sizeClass = breadcrumbSizeMap[size]\n return (\n <span\n ref={ref}\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn('flex items-center justify-center', className)}\n {...props}\n >\n <EllipsisIcon className={sizeClass.icon} />\n <span className=\"sr-only\">More</span>\n </span>\n )\n }\n)\nBreadcrumbEllipsis.displayName = 'BreadcrumbEllipsis'\n\n// ─── Exports ──────────────────────────────────────────────\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n breadcrumbSizeMap,\n}\n"],"mappings":";;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,YAAY;AAUrB,IAAM,oBAA0B,oBAAsC,CAAC,CAAC;AACxE,IAAM,uBAAuB,MAAY,iBAAW,iBAAiB;AAIrE,SAAS,iBAAiB,EAAE,UAAU,GAA2B;AAC/D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,SAAQ;AAAA,MACR,QAAO;AAAA,MACP,aAAa;AAAA;AAAA,IAEb,oCAAC,UAAK,eAAc,SAAQ,gBAAe,SAAQ,GAAE,gBAAe;AAAA,EACtE;AAEJ;AAIA,SAAS,aAAa,EAAE,UAAU,GAA2B;AAC3D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,SAAQ;AAAA;AAAA,IAER,oCAAC,YAAO,IAAG,KAAI,IAAG,MAAK,GAAE,OAAM;AAAA,IAC/B,oCAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,OAAM;AAAA,IAChC,oCAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,OAAM;AAAA,EAClC;AAEJ;AAIA,IAAM,oBAAoB;AAAA,EACxB,IAAI,EAAE,MAAM,WAAW,MAAM,WAAW,KAAK,UAAU;AAAA,EACvD,SAAS,EAAE,MAAM,WAAW,MAAM,WAAW,KAAK,QAAQ;AAAA,EAC1D,IAAI,EAAE,MAAM,WAAW,MAAM,WAAW,KAAK,QAAQ;AACvD;AAeA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