@vjdesigns/vjdesigns-ui 2.3.0 → 2.4.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.
- package/dist/ai/llms-full.txt +67 -32
- package/dist/ai/registry.json +136 -17
- package/dist/components/data-display/Badge/Badge.cjs.js +1 -1
- package/dist/components/data-display/Badge/Badge.d.ts +7 -2
- package/dist/components/data-display/Badge/Badge.mjs +2 -1
- package/dist/components/data-display/Badge/Badge.module.css.cjs.js +1 -1
- package/dist/components/data-display/Badge/Badge.module.css.mjs +33 -32
- package/dist/components/navigation/Navbar/Navbar.cjs.js +1 -1
- package/dist/components/navigation/Navbar/Navbar.d.ts +65 -2
- package/dist/components/navigation/Navbar/Navbar.mjs +309 -169
- package/dist/components/navigation/Navbar/Navbar.module.css.cjs.js +1 -1
- package/dist/components/navigation/Navbar/Navbar.module.css.mjs +20 -11
- package/dist/i18n/en.cjs.js +1 -1
- package/dist/i18n/en.mjs +1 -0
- package/dist/i18n/types.d.ts +5 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +35 -35
- package/dist/locales/ar.cjs.js +1 -1
- package/dist/locales/ar.mjs +1 -0
- package/dist/locales/bn.cjs.js +1 -1
- package/dist/locales/bn.mjs +1 -0
- package/dist/locales/cs.cjs.js +1 -1
- package/dist/locales/cs.mjs +1 -0
- package/dist/locales/da.cjs.js +1 -1
- package/dist/locales/da.mjs +1 -0
- package/dist/locales/de.cjs.js +1 -1
- package/dist/locales/de.mjs +1 -0
- package/dist/locales/el.cjs.js +1 -1
- package/dist/locales/el.mjs +1 -0
- package/dist/locales/es.cjs.js +1 -1
- package/dist/locales/es.mjs +1 -0
- package/dist/locales/fa.cjs.js +1 -1
- package/dist/locales/fa.mjs +1 -0
- package/dist/locales/fi.cjs.js +1 -1
- package/dist/locales/fi.mjs +1 -0
- package/dist/locales/fr.cjs.js +1 -1
- package/dist/locales/fr.mjs +1 -0
- package/dist/locales/he.cjs.js +1 -1
- package/dist/locales/he.mjs +1 -0
- package/dist/locales/hi.cjs.js +1 -1
- package/dist/locales/hi.mjs +1 -0
- package/dist/locales/hu.cjs.js +1 -1
- package/dist/locales/hu.mjs +1 -0
- package/dist/locales/id.cjs.js +1 -1
- package/dist/locales/id.mjs +1 -0
- package/dist/locales/it.cjs.js +1 -1
- package/dist/locales/it.mjs +1 -0
- package/dist/locales/ja.cjs.js +1 -1
- package/dist/locales/ja.mjs +1 -0
- package/dist/locales/ko.cjs.js +1 -1
- package/dist/locales/ko.mjs +1 -0
- package/dist/locales/nb.cjs.js +1 -1
- package/dist/locales/nb.mjs +1 -0
- package/dist/locales/nl.cjs.js +1 -1
- package/dist/locales/nl.mjs +1 -0
- package/dist/locales/pl.cjs.js +1 -1
- package/dist/locales/pl.mjs +1 -0
- package/dist/locales/pt-BR.cjs.js +1 -1
- package/dist/locales/pt-BR.mjs +1 -0
- package/dist/locales/ro.cjs.js +1 -1
- package/dist/locales/ro.mjs +1 -0
- package/dist/locales/ru.cjs.js +1 -1
- package/dist/locales/ru.mjs +1 -0
- package/dist/locales/sv.cjs.js +1 -1
- package/dist/locales/sv.mjs +1 -0
- package/dist/locales/th.cjs.js +1 -1
- package/dist/locales/th.mjs +1 -0
- package/dist/locales/tr.cjs.js +1 -1
- package/dist/locales/tr.mjs +1 -0
- package/dist/locales/uk.cjs.js +1 -1
- package/dist/locales/uk.mjs +1 -0
- package/dist/locales/ur.cjs.js +1 -1
- package/dist/locales/ur.mjs +1 -0
- package/dist/locales/vi.cjs.js +1 -1
- package/dist/locales/vi.mjs +1 -0
- package/dist/locales/zh-Hans.cjs.js +1 -1
- package/dist/locales/zh-Hans.mjs +1 -0
- package/dist/locales/zh-Hant.cjs.js +1 -1
- package/dist/locales/zh-Hant.mjs +1 -0
- package/dist/vjdesigns-ui.css +1 -1
- package/package.json +1 -1
package/dist/ai/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @vjdesigns/vjdesigns-ui 2.
|
|
1
|
+
# @vjdesigns/vjdesigns-ui 2.3.0: full reference
|
|
2
2
|
|
|
3
3
|
> Accessible React 19 component library: WCAG 2.2 AA verified (axe on every story, a contrast check on every color pair), 31 languages with right-to-left support, themeable with any brand color (auto-adjusted to stay accessible), tree-shakable, no runtime dependencies besides React.
|
|
4
4
|
|
|
@@ -711,6 +711,7 @@ Renders a `<span>` with no role. For counts, pass `label` (e.g.
|
|
|
711
711
|
- Counts
|
|
712
712
|
- Anchored
|
|
713
713
|
- In text
|
|
714
|
+
- Inverse: `inverse` swaps the solid colors, for a badge on a solid tone surface: a solid Navbar, a Banner, a primary card.
|
|
714
715
|
- On surfaces (both themes)
|
|
715
716
|
|
|
716
717
|
## BadgeAnchor
|
|
@@ -5452,22 +5453,22 @@ import { Navbar } from "@vjdesigns/vjdesigns-ui";
|
|
|
5452
5453
|
|
|
5453
5454
|
Category: navigation · Storybook: Navigation/Navbar
|
|
5454
5455
|
|
|
5455
|
-
The top header of an app or site. Renders a `<header>` (a `banner`
|
|
5456
|
-
landmark when it isn't inside `main`, `article`, `aside`, `nav`, or
|
|
5457
|
-
`section`) with brand, navigation, and actions. Below `collapseBelow`
|
|
5458
|
-
the navigation moves into a modal drawer opened by a menu button.
|
|
5459
|
-
|
|
5460
|
-
```tsx
|
|
5461
|
-
<Navbar>
|
|
5462
|
-
<Navbar.Brand href="/">Hoops</Navbar.Brand>
|
|
5463
|
-
<Navbar.Nav>
|
|
5464
|
-
<Navbar.Link href="/" active>Home</Navbar.Link>
|
|
5465
|
-
<Navbar.Link href="/teams">Teams</Navbar.Link>
|
|
5466
|
-
</Navbar.Nav>
|
|
5467
|
-
<Navbar.Actions>
|
|
5468
|
-
<Button size="sm">Sign in</Button>
|
|
5469
|
-
</Navbar.Actions>
|
|
5470
|
-
</Navbar>
|
|
5456
|
+
The top header of an app or site. Renders a `<header>` (a `banner`
|
|
5457
|
+
landmark when it isn't inside `main`, `article`, `aside`, `nav`, or
|
|
5458
|
+
`section`) with brand, navigation, and actions. Below `collapseBelow`
|
|
5459
|
+
the navigation moves into a modal drawer opened by a menu button.
|
|
5460
|
+
|
|
5461
|
+
```tsx
|
|
5462
|
+
<Navbar>
|
|
5463
|
+
<Navbar.Brand href="/">Hoops</Navbar.Brand>
|
|
5464
|
+
<Navbar.Nav>
|
|
5465
|
+
<Navbar.Link href="/" active>Home</Navbar.Link>
|
|
5466
|
+
<Navbar.Link href="/teams">Teams</Navbar.Link>
|
|
5467
|
+
</Navbar.Nav>
|
|
5468
|
+
<Navbar.Actions>
|
|
5469
|
+
<Button size="sm">Sign in</Button>
|
|
5470
|
+
</Navbar.Actions>
|
|
5471
|
+
</Navbar>
|
|
5471
5472
|
```
|
|
5472
5473
|
|
|
5473
5474
|
### Props
|
|
@@ -5505,12 +5506,12 @@ The logo or product name at the start of the bar, usually a link home.
|
|
|
5505
5506
|
|
|
5506
5507
|
Also exported as `NavbarNav`.
|
|
5507
5508
|
|
|
5508
|
-
The primary links: a `<nav>` landmark around a `<ul>`. Above the
|
|
5509
|
-
`collapseBelow` breakpoint they sit in the bar; below it they are hidden
|
|
5510
|
-
(`display: none`) and the same links render vertically in a drawer that the
|
|
5511
|
-
menu button opens. Only one copy is ever exposed to assistive technology.
|
|
5512
|
-
|
|
5513
|
-
Other props go on the inline `<nav>` only. The drawer copy gets the same
|
|
5509
|
+
The primary links: a `<nav>` landmark around a `<ul>`. Above the
|
|
5510
|
+
`collapseBelow` breakpoint they sit in the bar; below it they are hidden
|
|
5511
|
+
(`display: none`) and the same links render vertically in a drawer that the
|
|
5512
|
+
menu button opens. Only one copy is ever exposed to assistive technology.
|
|
5513
|
+
|
|
5514
|
+
Other props go on the inline `<nav>` only. The drawer copy gets the same
|
|
5514
5515
|
`aria-label` / `aria-labelledby`.
|
|
5515
5516
|
|
|
5516
5517
|
- `children`: `ReactNode`. `Navbar.Link`s (each is wrapped in an `<li>` for you) and/or `Navbar.Item`s.
|
|
@@ -5523,9 +5524,9 @@ Other props go on the inline `<nav>` only. The drawer copy gets the same
|
|
|
5523
5524
|
|
|
5524
5525
|
Also exported as `NavbarItem`.
|
|
5525
5526
|
|
|
5526
|
-
A list item in `Navbar.Nav`. `Navbar.Link` adds its own `<li>`, so you
|
|
5527
|
-
only need this to wrap something else, to put props on the `<li>`, or to
|
|
5528
|
-
show an item only in the bar or only in the drawer (`showIn`). A `ref`
|
|
5527
|
+
A list item in `Navbar.Nav`. `Navbar.Link` adds its own `<li>`, so you
|
|
5528
|
+
only need this to wrap something else, to put props on the `<li>`, or to
|
|
5529
|
+
show an item only in the bar or only in the drawer (`showIn`). A `ref`
|
|
5529
5530
|
attaches to the bar's copy.
|
|
5530
5531
|
|
|
5531
5532
|
- `children`: `ReactNode`. A `Navbar.Link`, or any other control (e.g. a `Button`) that belongs in the list.
|
|
@@ -5536,18 +5537,47 @@ attaches to the bar's copy.
|
|
|
5536
5537
|
|
|
5537
5538
|
Also exported as `NavbarLink`.
|
|
5538
5539
|
|
|
5539
|
-
A primary navigation link. Wraps itself in an `<li>` unless it's already
|
|
5540
|
-
inside `Navbar.Item`. In the mobile drawer, clicking it closes the drawer
|
|
5541
|
-
(even if a router prevents the default navigation).
|
|
5542
|
-
|
|
5543
|
-
It renders once in the bar and once in the drawer (only one is ever
|
|
5540
|
+
A primary navigation link. Wraps itself in an `<li>` unless it's already
|
|
5541
|
+
inside `Navbar.Item`. In the mobile drawer, clicking it closes the drawer
|
|
5542
|
+
(even if a router prevents the default navigation).
|
|
5543
|
+
|
|
5544
|
+
It renders once in the bar and once in the drawer (only one is ever
|
|
5544
5545
|
exposed), so don't give it an `id`. A `ref` attaches to the bar's copy.
|
|
5545
5546
|
|
|
5546
5547
|
- `as`: `C`. Component or element to render. Defaults to `a`. Pass a router link (e.g. React Router or Next.js `Link`) and its props (such as `to`) are accepted and typed. It must forward `className`, `onClick`, and ARIA props to its `<a>`.
|
|
5547
5548
|
- `active`: `boolean` (default false). Marks the link as the current page: sets `aria-current="page"` and shows a filled pill with an indicator bar, so the state never relies on color alone.
|
|
5548
5549
|
- `icon`: `ReactNode`. Decorative icon before the label. Hidden from assistive technology.
|
|
5550
|
+
- `badge`: `NavbarBadgeValue`. A count (rendered with `Badge` `count`, capped at 99+, hidden at 0) or a short text such as "New", after the label. It's part of the link's name ("Messages 3"), in the bar and the mobile menu.
|
|
5551
|
+
- `badgeLabel`: `string`. Screen-reader text for the badge, e.g. "3 unread messages". Replaces the visible badge text in the accessible name.
|
|
5552
|
+
- `badgeTone`: `Tone`. Badge color. By default `accent`, except in the `solid` bar, where the badge takes the bar's own colors swapped (a `Badge` `variant="inverse"`) so it stands out from the bar in both themes. Setting it always gives a solid badge in that tone.
|
|
5549
5553
|
- `children`: `ReactNode`. The visible label.
|
|
5550
5554
|
|
|
5555
|
+
### Navbar.Group
|
|
5556
|
+
|
|
5557
|
+
Also exported as `NavbarGroup`.
|
|
5558
|
+
|
|
5559
|
+
A group of links under one button, following the WAI-ARIA disclosure
|
|
5560
|
+
navigation pattern (not a `menu`): the button has `aria-expanded`, and the
|
|
5561
|
+
links stay ordinary links in the Tab order.
|
|
5562
|
+
|
|
5563
|
+
- In the bar: the button opens a dropdown below it. Escape closes it and
|
|
5564
|
+
returns focus to the button; so do a press outside, Tab moving focus out
|
|
5565
|
+
of the group, and activating a link. Opening one group closes the others.
|
|
5566
|
+
- In the mobile menu: an expandable section with the links indented below.
|
|
5567
|
+
|
|
5568
|
+
- `label`: `ReactNode` (required). The group button's visible label, and its accessible name.
|
|
5569
|
+
- `icon`: `ReactNode`. Decorative icon before the label.
|
|
5570
|
+
- `children`: `ReactNode`. The group's `Navbar.Link`s.
|
|
5571
|
+
- `active`: `boolean` (default false). One of the group's links is the current page. The button then shows the active look (it doesn't set `aria-current`; the link does), and the group starts open in the mobile menu.
|
|
5572
|
+
- `badge`: `NavbarBadgeValue`. A count or short text on the group button, like `Navbar.Link`'s `badge`.
|
|
5573
|
+
- `badgeLabel`: `string`. Screen-reader text for the badge.
|
|
5574
|
+
- `badgeTone`: `Tone`. Badge color. Same default as `Navbar.Link`'s `badgeTone` (inverse on the solid bar).
|
|
5575
|
+
- `open`: `boolean`. Controlled open state of the dropdown in the bar.
|
|
5576
|
+
- `defaultOpen`: `boolean` (default false). Initial open state of the dropdown when uncontrolled.
|
|
5577
|
+
- `onOpenChange`: `(open: boolean) => void`. Called with the next open state of the dropdown in the bar.
|
|
5578
|
+
- `disabled`: `boolean` (default false). Disables the group button.
|
|
5579
|
+
- Plus every native `<li>` attribute.
|
|
5580
|
+
|
|
5551
5581
|
### Navbar.Actions
|
|
5552
5582
|
|
|
5553
5583
|
Also exported as `NavbarActions`.
|
|
@@ -5567,7 +5597,12 @@ The end of the bar: actions that stay visible at every width, before the menu bu
|
|
|
5567
5597
|
- Sizes: `sm` 56px, `md` 64px, `lg` 80px tall. Links and the menu button scale with it.
|
|
5568
5598
|
- With Actions: The actions area holds anything that should stay visible at every width.
|
|
5569
5599
|
- Active Link: `active` sets `aria-current="page"` and draws an accent-tinted pill with an indicator bar, so the current page is marked by shape as well as color. Links can carry a decorative `icon`.
|
|
5570
|
-
-
|
|
5600
|
+
- Link Badges: `badge` on `Navbar.Link` (and `Navbar.Group`) shows a count or short text after the label, in the bar and the mobile menu. `badgeLabel` gives screen readers the full meaning ("Messages, 3 unread messages"). On the solid bar, a badge without a `badgeTone` swaps the bar's colors (`Badge` `variant="inverse"`), so it stands out in both themes.
|
|
5601
|
+
- Link Groups: `Navbar.Group` puts links under one button (the WAI-ARIA disclosure navigation pattern, not a menu). The button opens a dropdown; Escape, a press outside, Tab moving out, or choosing a link closes it, and opening one group closes the other. `active` marks the group holding the current page.
|
|
5602
|
+
- Link group, last on the page: A group as the last focusable thing on the page: Tab past its last link leaves the page, and the dropdown still closes. A press on the panel's padding (nothing focusable) keeps it open.
|
|
5603
|
+
- Link Groups Mobile: In the mobile menu, a group is an expandable section; the one holding the current page starts open.
|
|
5604
|
+
- Link Groups Right To Left: Right-to-left: the dropdown lines up with the button's right edge.
|
|
5605
|
+
- Mobile
|
|
5571
5606
|
- Mobile Solid: The solid bar on a phone, with the menu sliding in from the start edge.
|
|
5572
5607
|
- Router Links: Pass a router link component with `as` (on `Navbar.Link` and `Navbar.Brand`); its own props, such as `to`, are typed. Track the current route yourself and set `active` on the matching link.
|
|
5573
5608
|
- Sticky on a long page: `position="sticky"` (the default) with `elevateOnScroll`: the soft shadow appears once the page scrolls. Scroll the canvas to see it.
|
package/dist/ai/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vjdesigns/vjdesigns-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"summary": "Accessible React 19 component library: WCAG 2.2 AA verified (axe on every story, a contrast check on every color pair), 31 languages with right-to-left support, themeable with any brand color (auto-adjusted to stay accessible), tree-shakable, no runtime dependencies besides React.",
|
|
5
5
|
"install": "npm install @vjdesigns/vjdesigns-ui",
|
|
6
6
|
"stylesheet": "@vjdesigns/vjdesigns-ui/dist/vjdesigns-ui.css",
|
|
@@ -687,6 +687,10 @@
|
|
|
687
687
|
"name": "In text",
|
|
688
688
|
"description": ""
|
|
689
689
|
},
|
|
690
|
+
{
|
|
691
|
+
"name": "Inverse",
|
|
692
|
+
"description": "`inverse` swaps the solid colors, for a badge on a solid tone surface: a solid Navbar, a Banner, a primary card."
|
|
693
|
+
},
|
|
690
694
|
{
|
|
691
695
|
"name": "On surfaces (both themes)",
|
|
692
696
|
"description": ""
|
|
@@ -15312,7 +15316,7 @@
|
|
|
15312
15316
|
"category": "navigation",
|
|
15313
15317
|
"folder": "Navbar",
|
|
15314
15318
|
"import": "import { Navbar } from \"@vjdesigns/vjdesigns-ui\";",
|
|
15315
|
-
"description": "The top header of an app or site. Renders a `<header>` (a `banner`\
|
|
15319
|
+
"description": "The top header of an app or site. Renders a `<header>` (a `banner`\nlandmark when it isn't inside `main`, `article`, `aside`, `nav`, or\n`section`) with brand, navigation, and actions. Below `collapseBelow`\nthe navigation moves into a modal drawer opened by a menu button.\n\n```tsx\n<Navbar>\n <Navbar.Brand href=\"/\">Hoops</Navbar.Brand>\n <Navbar.Nav>\n <Navbar.Link href=\"/\" active>Home</Navbar.Link>\n <Navbar.Link href=\"/teams\">Teams</Navbar.Link>\n </Navbar.Nav>\n <Navbar.Actions>\n <Button size=\"sm\">Sign in</Button>\n </Navbar.Actions>\n</Navbar>\n```",
|
|
15316
15320
|
"nativeElement": "header",
|
|
15317
15321
|
"props": [
|
|
15318
15322
|
{
|
|
@@ -15347,7 +15351,7 @@
|
|
|
15347
15351
|
"type": "boolean",
|
|
15348
15352
|
"required": false,
|
|
15349
15353
|
"default": "true",
|
|
15350
|
-
"description": "Keeps focused and scrolled-to content clear of a `sticky` or `fixed`\
|
|
15354
|
+
"description": "Keeps focused and scrolled-to content clear of a `sticky` or `fixed`\nbar (WCAG 2.4.11): while mounted, sets `scroll-padding-top` on the bar's\nscroll container to the bar's height, and restores it on unmount. Set\n`false` to manage it yourself, e.g. `html { scroll-padding-top:\nvar(--header-height) }` (the md bar's height). Inside the bar,\n`--navbar-height` holds its height."
|
|
15351
15355
|
},
|
|
15352
15356
|
{
|
|
15353
15357
|
"name": "bordered",
|
|
@@ -15368,14 +15372,14 @@
|
|
|
15368
15372
|
"type": "boolean",
|
|
15369
15373
|
"required": false,
|
|
15370
15374
|
"default": "false",
|
|
15371
|
-
"description": "Shows the soft shadow only once the window has scrolled (a passive,\
|
|
15375
|
+
"description": "Shows the soft shadow only once the window has scrolled (a passive,\nframe-throttled listener). A `transparent` bar also fills with the\nsurface color so links stay readable over content."
|
|
15372
15376
|
},
|
|
15373
15377
|
{
|
|
15374
15378
|
"name": "contained",
|
|
15375
15379
|
"type": "boolean",
|
|
15376
15380
|
"required": false,
|
|
15377
15381
|
"default": "true",
|
|
15378
|
-
"description": "Centers the content in a max-width `Container` with responsive gutters.\
|
|
15382
|
+
"description": "Centers the content in a max-width `Container` with responsive gutters.\nWhen `false`, the content spans the full width (gutters are kept). To\ncompose your own layout instead, set `contained={false}`."
|
|
15379
15383
|
},
|
|
15380
15384
|
{
|
|
15381
15385
|
"name": "maxWidth",
|
|
@@ -15389,7 +15393,7 @@
|
|
|
15389
15393
|
"type": "NavbarCollapseBreakpoint",
|
|
15390
15394
|
"required": false,
|
|
15391
15395
|
"default": "\"md\"",
|
|
15392
|
-
"description": "Below this breakpoint (sm 640px, md 768px, lg 1024px), `Navbar.Nav`\
|
|
15396
|
+
"description": "Below this breakpoint (sm 640px, md 768px, lg 1024px), `Navbar.Nav`\nis hidden and a menu button opens the links in a drawer instead."
|
|
15393
15397
|
},
|
|
15394
15398
|
{
|
|
15395
15399
|
"name": "open",
|
|
@@ -15436,7 +15440,7 @@
|
|
|
15436
15440
|
"type": "NavbarActiveTone",
|
|
15437
15441
|
"required": false,
|
|
15438
15442
|
"default": "\"accent\"",
|
|
15439
|
-
"description": "Color of the active link's pill and indicator bar, in the bar and the\
|
|
15443
|
+
"description": "Color of the active link's pill and indicator bar, in the bar and the\nmobile menu: `accent` (the theme's accent), `primary` (the brand color), or\n`neutral`. The `solid` variant always marks the active link with the\non-primary color."
|
|
15440
15444
|
}
|
|
15441
15445
|
],
|
|
15442
15446
|
"subcomponents": [
|
|
@@ -15449,7 +15453,7 @@
|
|
|
15449
15453
|
"name": "as",
|
|
15450
15454
|
"type": "C",
|
|
15451
15455
|
"required": false,
|
|
15452
|
-
"description": "Component or element to render. Defaults to `a` when `href` is set,\
|
|
15456
|
+
"description": "Component or element to render. Defaults to `a` when `href` is set,\notherwise `div`. Pass a router link (e.g. React Router or Next.js `Link`)\nand its props (such as `to`) are accepted; it must forward `className`\nand ARIA props to its `<a>`."
|
|
15453
15457
|
},
|
|
15454
15458
|
{
|
|
15455
15459
|
"name": "children",
|
|
@@ -15462,7 +15466,7 @@
|
|
|
15462
15466
|
{
|
|
15463
15467
|
"name": "Navbar.Nav",
|
|
15464
15468
|
"exportedAs": "NavbarNav",
|
|
15465
|
-
"description": "The primary links: a `<nav>` landmark around a `<ul>`. Above the\
|
|
15469
|
+
"description": "The primary links: a `<nav>` landmark around a `<ul>`. Above the\n`collapseBelow` breakpoint they sit in the bar; below it they are hidden\n(`display: none`) and the same links render vertically in a drawer that the\nmenu button opens. Only one copy is ever exposed to assistive technology.\n\nOther props go on the inline `<nav>` only. The drawer copy gets the same\n`aria-label` / `aria-labelledby`.",
|
|
15466
15470
|
"nativeElement": "nav",
|
|
15467
15471
|
"props": [
|
|
15468
15472
|
{
|
|
@@ -15476,14 +15480,14 @@
|
|
|
15476
15480
|
"type": "NavbarNavAlign",
|
|
15477
15481
|
"required": false,
|
|
15478
15482
|
"default": "\"start\"",
|
|
15479
|
-
"description": "Where the links sit in the bar, between the brand and the actions:\
|
|
15483
|
+
"description": "Where the links sit in the bar, between the brand and the actions:\n`start` (next to the brand; left in left-to-right layouts), `center`,\nor `end` (next to the actions; right in left-to-right layouts). Logical,\nso it flips in right-to-left layouts. The mobile drawer always lists\nthem vertically."
|
|
15480
15484
|
},
|
|
15481
15485
|
{
|
|
15482
15486
|
"name": "gap",
|
|
15483
15487
|
"type": "Responsive<Space>",
|
|
15484
15488
|
"required": false,
|
|
15485
15489
|
"default": "1",
|
|
15486
|
-
"description": "Space between the links in the bar, as a spacing step (`4` is\
|
|
15490
|
+
"description": "Space between the links in the bar, as a spacing step (`4` is\n`--space-4`, 16px). Accepts one value or one per breakpoint, e.g.\n`{ base: 2, xl: 6 }`. The mobile drawer keeps its own vertical spacing."
|
|
15487
15491
|
},
|
|
15488
15492
|
{
|
|
15489
15493
|
"name": "aria-label",
|
|
@@ -15497,7 +15501,7 @@
|
|
|
15497
15501
|
{
|
|
15498
15502
|
"name": "Navbar.Item",
|
|
15499
15503
|
"exportedAs": "NavbarItem",
|
|
15500
|
-
"description": "A list item in `Navbar.Nav`. `Navbar.Link` adds its own `<li>`, so you\
|
|
15504
|
+
"description": "A list item in `Navbar.Nav`. `Navbar.Link` adds its own `<li>`, so you\nonly need this to wrap something else, to put props on the `<li>`, or to\nshow an item only in the bar or only in the drawer (`showIn`). A `ref`\nattaches to the bar's copy.",
|
|
15501
15505
|
"nativeElement": "li",
|
|
15502
15506
|
"props": [
|
|
15503
15507
|
{
|
|
@@ -15511,27 +15515,27 @@
|
|
|
15511
15515
|
"type": "NavbarItemShowIn",
|
|
15512
15516
|
"required": false,
|
|
15513
15517
|
"default": "\"both\"",
|
|
15514
|
-
"description": "Where the item appears. `Navbar.Nav` renders its children twice (in the\
|
|
15518
|
+
"description": "Where the item appears. `Navbar.Nav` renders its children twice (in the\nbar and in the drawer), so a stateful child (a Menu, a toggle) is\nmounted twice and its drawer copy resets each time the drawer opens.\nShow such an item in one place only, or put it in `Navbar.Actions`."
|
|
15515
15519
|
}
|
|
15516
15520
|
]
|
|
15517
15521
|
},
|
|
15518
15522
|
{
|
|
15519
15523
|
"name": "Navbar.Link",
|
|
15520
15524
|
"exportedAs": "NavbarLink",
|
|
15521
|
-
"description": "A primary navigation link. Wraps itself in an `<li>` unless it's already\
|
|
15525
|
+
"description": "A primary navigation link. Wraps itself in an `<li>` unless it's already\ninside `Navbar.Item`. In the mobile drawer, clicking it closes the drawer\n(even if a router prevents the default navigation).\n\nIt renders once in the bar and once in the drawer (only one is ever\nexposed), so don't give it an `id`. A `ref` attaches to the bar's copy.",
|
|
15522
15526
|
"props": [
|
|
15523
15527
|
{
|
|
15524
15528
|
"name": "as",
|
|
15525
15529
|
"type": "C",
|
|
15526
15530
|
"required": false,
|
|
15527
|
-
"description": "Component or element to render. Defaults to `a`. Pass a router link\
|
|
15531
|
+
"description": "Component or element to render. Defaults to `a`. Pass a router link\n(e.g. React Router or Next.js `Link`) and its props (such as `to`) are\naccepted and typed. It must forward `className`, `onClick`, and ARIA\nprops to its `<a>`."
|
|
15528
15532
|
},
|
|
15529
15533
|
{
|
|
15530
15534
|
"name": "active",
|
|
15531
15535
|
"type": "boolean",
|
|
15532
15536
|
"required": false,
|
|
15533
15537
|
"default": "false",
|
|
15534
|
-
"description": "Marks the link as the current page: sets `aria-current=\"page\"` and shows\
|
|
15538
|
+
"description": "Marks the link as the current page: sets `aria-current=\"page\"` and shows\na filled pill with an indicator bar, so the state never relies on color\nalone."
|
|
15535
15539
|
},
|
|
15536
15540
|
{
|
|
15537
15541
|
"name": "icon",
|
|
@@ -15539,6 +15543,24 @@
|
|
|
15539
15543
|
"required": false,
|
|
15540
15544
|
"description": "Decorative icon before the label. Hidden from assistive technology."
|
|
15541
15545
|
},
|
|
15546
|
+
{
|
|
15547
|
+
"name": "badge",
|
|
15548
|
+
"type": "NavbarBadgeValue",
|
|
15549
|
+
"required": false,
|
|
15550
|
+
"description": "A count (rendered with `Badge` `count`, capped at 99+, hidden at 0) or a\nshort text such as \"New\", after the label. It's part of the link's name\n(\"Messages 3\"), in the bar and the mobile menu."
|
|
15551
|
+
},
|
|
15552
|
+
{
|
|
15553
|
+
"name": "badgeLabel",
|
|
15554
|
+
"type": "string",
|
|
15555
|
+
"required": false,
|
|
15556
|
+
"description": "Screen-reader text for the badge, e.g. \"3 unread messages\". Replaces the visible badge text in the accessible name."
|
|
15557
|
+
},
|
|
15558
|
+
{
|
|
15559
|
+
"name": "badgeTone",
|
|
15560
|
+
"type": "Tone",
|
|
15561
|
+
"required": false,
|
|
15562
|
+
"description": "Badge color. By default `accent`, except in the `solid` bar, where the\nbadge takes the bar's own colors swapped (a `Badge` `variant=\"inverse\"`)\nso it stands out from the bar in both themes. Setting it always gives a\nsolid badge in that tone."
|
|
15563
|
+
},
|
|
15542
15564
|
{
|
|
15543
15565
|
"name": "children",
|
|
15544
15566
|
"type": "ReactNode",
|
|
@@ -15547,6 +15569,83 @@
|
|
|
15547
15569
|
}
|
|
15548
15570
|
]
|
|
15549
15571
|
},
|
|
15572
|
+
{
|
|
15573
|
+
"name": "Navbar.Group",
|
|
15574
|
+
"exportedAs": "NavbarGroup",
|
|
15575
|
+
"description": "A group of links under one button, following the WAI-ARIA disclosure\nnavigation pattern (not a `menu`): the button has `aria-expanded`, and the\nlinks stay ordinary links in the Tab order.\n\n- In the bar: the button opens a dropdown below it. Escape closes it and\n returns focus to the button; so do a press outside, Tab moving focus out\n of the group, and activating a link. Opening one group closes the others.\n- In the mobile menu: an expandable section with the links indented below.",
|
|
15576
|
+
"nativeElement": "li",
|
|
15577
|
+
"props": [
|
|
15578
|
+
{
|
|
15579
|
+
"name": "label",
|
|
15580
|
+
"type": "ReactNode",
|
|
15581
|
+
"required": true,
|
|
15582
|
+
"description": "The group button's visible label, and its accessible name."
|
|
15583
|
+
},
|
|
15584
|
+
{
|
|
15585
|
+
"name": "icon",
|
|
15586
|
+
"type": "ReactNode",
|
|
15587
|
+
"required": false,
|
|
15588
|
+
"description": "Decorative icon before the label."
|
|
15589
|
+
},
|
|
15590
|
+
{
|
|
15591
|
+
"name": "children",
|
|
15592
|
+
"type": "ReactNode",
|
|
15593
|
+
"required": false,
|
|
15594
|
+
"description": "The group's `Navbar.Link`s."
|
|
15595
|
+
},
|
|
15596
|
+
{
|
|
15597
|
+
"name": "active",
|
|
15598
|
+
"type": "boolean",
|
|
15599
|
+
"required": false,
|
|
15600
|
+
"default": "false",
|
|
15601
|
+
"description": "One of the group's links is the current page. The button then shows the\nactive look (it doesn't set `aria-current`; the link does), and the\ngroup starts open in the mobile menu."
|
|
15602
|
+
},
|
|
15603
|
+
{
|
|
15604
|
+
"name": "badge",
|
|
15605
|
+
"type": "NavbarBadgeValue",
|
|
15606
|
+
"required": false,
|
|
15607
|
+
"description": "A count or short text on the group button, like `Navbar.Link`'s `badge`."
|
|
15608
|
+
},
|
|
15609
|
+
{
|
|
15610
|
+
"name": "badgeLabel",
|
|
15611
|
+
"type": "string",
|
|
15612
|
+
"required": false,
|
|
15613
|
+
"description": "Screen-reader text for the badge."
|
|
15614
|
+
},
|
|
15615
|
+
{
|
|
15616
|
+
"name": "badgeTone",
|
|
15617
|
+
"type": "Tone",
|
|
15618
|
+
"required": false,
|
|
15619
|
+
"description": "Badge color. Same default as `Navbar.Link`'s `badgeTone` (inverse on the solid bar)."
|
|
15620
|
+
},
|
|
15621
|
+
{
|
|
15622
|
+
"name": "open",
|
|
15623
|
+
"type": "boolean",
|
|
15624
|
+
"required": false,
|
|
15625
|
+
"description": "Controlled open state of the dropdown in the bar."
|
|
15626
|
+
},
|
|
15627
|
+
{
|
|
15628
|
+
"name": "defaultOpen",
|
|
15629
|
+
"type": "boolean",
|
|
15630
|
+
"required": false,
|
|
15631
|
+
"default": "false",
|
|
15632
|
+
"description": "Initial open state of the dropdown when uncontrolled."
|
|
15633
|
+
},
|
|
15634
|
+
{
|
|
15635
|
+
"name": "onOpenChange",
|
|
15636
|
+
"type": "(open: boolean) => void",
|
|
15637
|
+
"required": false,
|
|
15638
|
+
"description": "Called with the next open state of the dropdown in the bar."
|
|
15639
|
+
},
|
|
15640
|
+
{
|
|
15641
|
+
"name": "disabled",
|
|
15642
|
+
"type": "boolean",
|
|
15643
|
+
"required": false,
|
|
15644
|
+
"default": "false",
|
|
15645
|
+
"description": "Disables the group button."
|
|
15646
|
+
}
|
|
15647
|
+
]
|
|
15648
|
+
},
|
|
15550
15649
|
{
|
|
15551
15650
|
"name": "Navbar.Actions",
|
|
15552
15651
|
"exportedAs": "NavbarActions",
|
|
@@ -15596,9 +15695,29 @@
|
|
|
15596
15695
|
"name": "Active Link",
|
|
15597
15696
|
"description": "`active` sets `aria-current=\"page\"` and draws an accent-tinted pill with an\r\nindicator bar, so the current page is marked by shape as well as color.\r\nLinks can carry a decorative `icon`."
|
|
15598
15697
|
},
|
|
15698
|
+
{
|
|
15699
|
+
"name": "Link Badges",
|
|
15700
|
+
"description": "`badge` on `Navbar.Link` (and `Navbar.Group`) shows a count or short text\r\nafter the label, in the bar and the mobile menu. `badgeLabel` gives screen\r\nreaders the full meaning (\"Messages, 3 unread messages\"). On the solid bar,\r\na badge without a `badgeTone` swaps the bar's colors (`Badge`\r\n`variant=\"inverse\"`), so it stands out in both themes."
|
|
15701
|
+
},
|
|
15702
|
+
{
|
|
15703
|
+
"name": "Link Groups",
|
|
15704
|
+
"description": "`Navbar.Group` puts links under one button (the WAI-ARIA disclosure\r\nnavigation pattern, not a menu). The button opens a dropdown; Escape, a\r\npress outside, Tab moving out, or choosing a link closes it, and opening\r\none group closes the other. `active` marks the group holding the current page."
|
|
15705
|
+
},
|
|
15706
|
+
{
|
|
15707
|
+
"name": "Link group, last on the page",
|
|
15708
|
+
"description": "A group as the last focusable thing on the page: Tab past its last link\r\nleaves the page, and the dropdown still closes. A press on the panel's\r\npadding (nothing focusable) keeps it open."
|
|
15709
|
+
},
|
|
15710
|
+
{
|
|
15711
|
+
"name": "Link Groups Mobile",
|
|
15712
|
+
"description": "In the mobile menu, a group is an expandable section; the one holding the current page starts open."
|
|
15713
|
+
},
|
|
15714
|
+
{
|
|
15715
|
+
"name": "Link Groups Right To Left",
|
|
15716
|
+
"description": "Right-to-left: the dropdown lines up with the button's right edge."
|
|
15717
|
+
},
|
|
15599
15718
|
{
|
|
15600
15719
|
"name": "Mobile",
|
|
15601
|
-
"description": "
|
|
15720
|
+
"description": ""
|
|
15602
15721
|
},
|
|
15603
15722
|
{
|
|
15604
15723
|
"name": "Mobile Solid",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../utils/cx.cjs.js"),t=require("../../utilities/VisuallyHidden/VisuallyHidden.cjs.js"),n=require("./Badge.module.css.cjs.js");let r=require("react"),i=require("react/jsx-runtime");var a=globalThis.process?.env?.NODE_ENV!==`production`,o={solid:n.default.solid,soft:n.default.soft,outline:n.default.outline},s={neutral:n.default.neutral,primary:n.default.primary,accent:n.default.accent,success:n.default.success,warning:n.default.warning,danger:n.default.danger,info:n.default.info},c={sm:n.default.sm,md:n.default.md,lg:n.default.lg},l={none:n.default.radiusNone,xs:n.default.radiusXs,sm:n.default.radiusSm,md:n.default.radiusMd,lg:n.default.radiusLg,xl:n.default.radiusXl,"2xl":n.default.radius2xl,pill:n.default.radiusPill},u={"top-end":n.default.topEnd,"top-start":n.default.topStart,"bottom-end":n.default.bottomEnd,"bottom-start":n.default.bottomStart},d={rectangle:n.default.overlapRectangle,circle:n.default.overlapCircle};function f(e,t=99){return e>t?`${t}+`:String(e)}var p=e=>typeof e==`number`?`${e}px`:e,m=({variant:r=`soft`,tone:a=`neutral`,size:u=`md`,radius:d=`pill`,count:p,max:m=99,showZero:h=!1,label:g,startIcon:_,dot:v=!1,caps:y=!1,className:b,children:x,...S})=>{let C=p!==void 0;if(C&&p===0&&!h)return null;let w=C?f(p,m):x,T=g!==void 0&&g!==``;return(0,i.jsxs)(`span`,{...S,className:e.cx(n.default.root,o[r],s[a],c[u],l[d],C&&n.default.count,y&&n.default.caps,b),children:[(0,i.jsxs)(`span`,{className:n.default.content,"aria-hidden":T?!0:void 0,children:[v&&(0,i.jsx)(`span`,{className:n.default.dot,"aria-hidden":`true`}),_!=null&&(0,i.jsx)(`span`,{className:n.default.icon,"aria-hidden":`true`,children:_}),w!=null&&w!==``&&(0,i.jsx)(`span`,{className:n.default.label,children:w})]}),T&&(0,i.jsx)(t.VisuallyHidden,{children:g})]})},h=({children:l,variant:m=`solid`,tone:h=`accent`,size:g=`md`,count:_,max:v=99,showZero:y=!1,label:b,dot:x=!1,content:S,placement:C=`top-end`,overlap:w=`rectangle`,offset:T,invisible:E=!1,badgeClassName:D,className:O,style:k,...A})=>{let j=!x&&_!==void 0,M=E||j&&_===0&&!y,N=x?null:j?f(_,v):S,P=b!==void 0&&b!==``&&!M,F=!M&&(x||N!=null)&&(b===void 0||b===``);(0,r.useEffect)(()=>{a&&F&&console.warn('[BadgeAnchor] Pass a `label` (e.g. "3 unread messages") so screen readers get the badge\'s meaning; the visual dot or count is hidden from them.')},[F]);let[I,L]=T===void 0?[void 0,void 0]:Array.isArray(T)?T:[T,T],R=T===void 0?k:{"--badge-offset-x":p(I),"--badge-offset-y":p(L),...k};return(0,i.jsxs)(`span`,{...A,className:e.cx(n.default.anchor,O),style:R,children:[l,(0,i.jsxs)(`span`,{className:e.cx(n.default.root,n.default.anchored,o[m],s[h],c[g],n.default.radiusPill,u[C],d[w],x?n.default.anchoredDot:n.default.count,M&&n.default.invisible,D),"data-state":M?`hidden`:`visible`,children:[!x&&(0,i.jsx)(`span`,{className:n.default.content,"aria-hidden":`true`,children:N!=null&&N!==``&&(0,i.jsx)(`span`,{className:n.default.label,children:N})}),P&&(0,i.jsx)(t.VisuallyHidden,{children:b})]})]})};exports.Badge=m,exports.BadgeAnchor=h,exports.formatBadgeCount=f;
|
|
1
|
+
const e=require("../../../utils/cx.cjs.js"),t=require("../../utilities/VisuallyHidden/VisuallyHidden.cjs.js"),n=require("./Badge.module.css.cjs.js");let r=require("react"),i=require("react/jsx-runtime");var a=globalThis.process?.env?.NODE_ENV!==`production`,o={solid:n.default.solid,soft:n.default.soft,outline:n.default.outline,inverse:n.default.inverse},s={neutral:n.default.neutral,primary:n.default.primary,accent:n.default.accent,success:n.default.success,warning:n.default.warning,danger:n.default.danger,info:n.default.info},c={sm:n.default.sm,md:n.default.md,lg:n.default.lg},l={none:n.default.radiusNone,xs:n.default.radiusXs,sm:n.default.radiusSm,md:n.default.radiusMd,lg:n.default.radiusLg,xl:n.default.radiusXl,"2xl":n.default.radius2xl,pill:n.default.radiusPill},u={"top-end":n.default.topEnd,"top-start":n.default.topStart,"bottom-end":n.default.bottomEnd,"bottom-start":n.default.bottomStart},d={rectangle:n.default.overlapRectangle,circle:n.default.overlapCircle};function f(e,t=99){return e>t?`${t}+`:String(e)}var p=e=>typeof e==`number`?`${e}px`:e,m=({variant:r=`soft`,tone:a=`neutral`,size:u=`md`,radius:d=`pill`,count:p,max:m=99,showZero:h=!1,label:g,startIcon:_,dot:v=!1,caps:y=!1,className:b,children:x,...S})=>{let C=p!==void 0;if(C&&p===0&&!h)return null;let w=C?f(p,m):x,T=g!==void 0&&g!==``;return(0,i.jsxs)(`span`,{...S,className:e.cx(n.default.root,o[r],s[a],c[u],l[d],C&&n.default.count,y&&n.default.caps,b),children:[(0,i.jsxs)(`span`,{className:n.default.content,"aria-hidden":T?!0:void 0,children:[v&&(0,i.jsx)(`span`,{className:n.default.dot,"aria-hidden":`true`}),_!=null&&(0,i.jsx)(`span`,{className:n.default.icon,"aria-hidden":`true`,children:_}),w!=null&&w!==``&&(0,i.jsx)(`span`,{className:n.default.label,children:w})]}),T&&(0,i.jsx)(t.VisuallyHidden,{children:g})]})},h=({children:l,variant:m=`solid`,tone:h=`accent`,size:g=`md`,count:_,max:v=99,showZero:y=!1,label:b,dot:x=!1,content:S,placement:C=`top-end`,overlap:w=`rectangle`,offset:T,invisible:E=!1,badgeClassName:D,className:O,style:k,...A})=>{let j=!x&&_!==void 0,M=E||j&&_===0&&!y,N=x?null:j?f(_,v):S,P=b!==void 0&&b!==``&&!M,F=!M&&(x||N!=null)&&(b===void 0||b===``);(0,r.useEffect)(()=>{a&&F&&console.warn('[BadgeAnchor] Pass a `label` (e.g. "3 unread messages") so screen readers get the badge\'s meaning; the visual dot or count is hidden from them.')},[F]);let[I,L]=T===void 0?[void 0,void 0]:Array.isArray(T)?T:[T,T],R=T===void 0?k:{"--badge-offset-x":p(I),"--badge-offset-y":p(L),...k};return(0,i.jsxs)(`span`,{...A,className:e.cx(n.default.anchor,O),style:R,children:[l,(0,i.jsxs)(`span`,{className:e.cx(n.default.root,n.default.anchored,o[m],s[h],c[g],n.default.radiusPill,u[C],d[w],x?n.default.anchoredDot:n.default.count,M&&n.default.invisible,D),"data-state":M?`hidden`:`visible`,children:[!x&&(0,i.jsx)(`span`,{className:n.default.content,"aria-hidden":`true`,children:N!=null&&N!==``&&(0,i.jsx)(`span`,{className:n.default.label,children:N})}),P&&(0,i.jsx)(t.VisuallyHidden,{children:b})]})]})};exports.Badge=m,exports.BadgeAnchor=h,exports.formatBadgeCount=f;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { Radius, Size, Tone } from '../../../types/common';
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Visual style of a badge. Semantic color is set separately with `tone`.
|
|
5
|
+
* `inverse` swaps the solid colors (a `--color-on-{tone}` fill with
|
|
6
|
+
* `--color-{tone}` text), for badges on a solid `tone` surface, such as a
|
|
7
|
+
* solid Navbar or a Banner strip.
|
|
8
|
+
*/
|
|
9
|
+
export type BadgeVariant = "solid" | "soft" | "outline" | "inverse";
|
|
5
10
|
/** Corner of the anchor a `BadgeAnchor` badge sits on. Logical: `end` flips in RTL. */
|
|
6
11
|
export type BadgePlacement = "top-end" | "top-start" | "bottom-end" | "bottom-start";
|
|
7
12
|
/**
|
|
@@ -7,7 +7,8 @@ import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
|
7
7
|
var o = globalThis.process?.env?.NODE_ENV !== "production", s = {
|
|
8
8
|
solid: n.solid,
|
|
9
9
|
soft: n.soft,
|
|
10
|
-
outline: n.outline
|
|
10
|
+
outline: n.outline,
|
|
11
|
+
inverse: n.inverse
|
|
11
12
|
}, c = {
|
|
12
13
|
neutral: n.neutral,
|
|
13
14
|
primary: n.primary,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`
|
|
1
|
+
var e=`_root_54g55_23`,t=`_content_54g55_95`,n=`_label_54g55_107`,r=`_icon_54g55_115`,i=`_dot_54g55_141`,a=`_solid_54g55_163`,o=`_soft_54g55_173`,s=`_outline_54g55_183`,c=`_inverse_54g55_199`,l=`_neutral_54g55_213`,u=`_primary_54g55_229`,d=`_accent_54g55_245`,f=`_success_54g55_261`,p=`_warning_54g55_277`,m=`_danger_54g55_293`,h=`_info_54g55_309`,g=`_sm_54g55_329`,_=`_md_54g55_347`,v=`_lg_54g55_365`,y=`_radiusNone_54g55_387`,b=`_radiusXs_54g55_393`,x=`_radiusSm_54g55_399`,S=`_radiusMd_54g55_405`,C=`_radiusLg_54g55_411`,w=`_radiusXl_54g55_417`,T=`_radius2xl_54g55_423`,E=`_radiusPill_54g55_429`,D=`_count_54g55_443`,O=`_caps_54g55_457`,k=`_anchor_54g55_477`,A=`_anchored_54g55_491`,j=`_anchoredDot_54g55_573`,M=`_overlapRectangle_54g55_647`,N=`_overlapCircle_54g55_653`,P=`_topEnd_54g55_661`,F=`_topStart_54g55_673`,I=`_bottomEnd_54g55_685`,L=`_bottomStart_54g55_697`,R=`_invisible_54g55_733`,z={root:e,content:t,label:n,icon:r,dot:i,solid:a,soft:o,outline:s,inverse:c,neutral:l,primary:u,accent:d,success:f,warning:p,danger:m,info:h,sm:g,md:_,lg:v,radiusNone:y,radiusXs:b,radiusSm:x,radiusMd:S,radiusLg:C,radiusXl:w,radius2xl:T,radiusPill:E,count:D,caps:O,anchor:k,anchored:A,anchoredDot:j,overlapRectangle:M,overlapCircle:N,topEnd:P,topStart:F,bottomEnd:I,bottomStart:L,invisible:R};exports.accent=d,exports.anchor=k,exports.anchored=A,exports.anchoredDot=j,exports.bottomEnd=I,exports.bottomStart=L,exports.caps=O,exports.content=t,exports.count=D,exports.danger=m,exports.default=z,exports.dot=i,exports.icon=r,exports.info=h,exports.inverse=c,exports.invisible=R,exports.label=n,exports.lg=v,exports.md=_,exports.neutral=l,exports.outline=s,exports.overlapCircle=N,exports.overlapRectangle=M,exports.primary=u,exports.radius2xl=T,exports.radiusLg=C,exports.radiusMd=S,exports.radiusNone=y,exports.radiusPill=E,exports.radiusSm=x,exports.radiusXl=w,exports.radiusXs=b,exports.root=e,exports.sm=g,exports.soft=o,exports.solid=a,exports.success=f,exports.topEnd=P,exports.topStart=F,exports.warning=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/components/data-display/Badge/Badge.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_root_54g55_23", t = "_content_54g55_95", n = "_label_54g55_107", r = "_icon_54g55_115", i = "_dot_54g55_141", a = "_solid_54g55_163", o = "_soft_54g55_173", s = "_outline_54g55_183", c = "_inverse_54g55_199", l = "_neutral_54g55_213", u = "_primary_54g55_229", d = "_accent_54g55_245", f = "_success_54g55_261", p = "_warning_54g55_277", m = "_danger_54g55_293", h = "_info_54g55_309", g = "_sm_54g55_329", _ = "_md_54g55_347", v = "_lg_54g55_365", y = "_radiusNone_54g55_387", b = "_radiusXs_54g55_393", x = "_radiusSm_54g55_399", S = "_radiusMd_54g55_405", C = "_radiusLg_54g55_411", w = "_radiusXl_54g55_417", T = "_radius2xl_54g55_423", E = "_radiusPill_54g55_429", D = "_count_54g55_443", O = "_caps_54g55_457", k = "_anchor_54g55_477", A = "_anchored_54g55_491", j = "_anchoredDot_54g55_573", M = "_overlapRectangle_54g55_647", N = "_overlapCircle_54g55_653", P = "_topEnd_54g55_661", F = "_topStart_54g55_673", I = "_bottomEnd_54g55_685", L = "_bottomStart_54g55_697", R = "_invisible_54g55_733", z = {
|
|
3
3
|
root: e,
|
|
4
4
|
content: t,
|
|
5
5
|
label: n,
|
|
@@ -8,36 +8,37 @@ var e = "_root_fn6ui_21", t = "_content_fn6ui_93", n = "_label_fn6ui_105", r = "
|
|
|
8
8
|
solid: a,
|
|
9
9
|
soft: o,
|
|
10
10
|
outline: s,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
11
|
+
inverse: c,
|
|
12
|
+
neutral: l,
|
|
13
|
+
primary: u,
|
|
14
|
+
accent: d,
|
|
15
|
+
success: f,
|
|
16
|
+
warning: p,
|
|
17
|
+
danger: m,
|
|
18
|
+
info: h,
|
|
19
|
+
sm: g,
|
|
20
|
+
md: _,
|
|
21
|
+
lg: v,
|
|
22
|
+
radiusNone: y,
|
|
23
|
+
radiusXs: b,
|
|
24
|
+
radiusSm: x,
|
|
25
|
+
radiusMd: S,
|
|
26
|
+
radiusLg: C,
|
|
27
|
+
radiusXl: w,
|
|
28
|
+
radius2xl: T,
|
|
29
|
+
radiusPill: E,
|
|
30
|
+
count: D,
|
|
31
|
+
caps: O,
|
|
32
|
+
anchor: k,
|
|
33
|
+
anchored: A,
|
|
34
|
+
anchoredDot: j,
|
|
35
|
+
overlapRectangle: M,
|
|
36
|
+
overlapCircle: N,
|
|
37
|
+
topEnd: P,
|
|
38
|
+
topStart: F,
|
|
39
|
+
bottomEnd: I,
|
|
40
|
+
bottomStart: L,
|
|
41
|
+
invisible: R
|
|
41
42
|
};
|
|
42
43
|
//#endregion
|
|
43
|
-
export {
|
|
44
|
+
export { d as accent, k as anchor, A as anchored, j as anchoredDot, I as bottomEnd, L as bottomStart, O as caps, t as content, D as count, m as danger, z as default, i as dot, r as icon, h as info, c as inverse, R as invisible, n as label, v as lg, _ as md, l as neutral, s as outline, N as overlapCircle, M as overlapRectangle, u as primary, T as radius2xl, C as radiusLg, S as radiusMd, y as radiusNone, E as radiusPill, x as radiusSm, w as radiusXl, b as radiusXs, e as root, g as sm, o as soft, a as solid, f as success, P as topEnd, F as topStart, p as warning };
|