@gears-frontx/ui-kit 0.4.0-alpha.6 → 0.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.
Files changed (46) hide show
  1. package/dist/button.js +60 -57
  2. package/dist/button.js.map +1 -1
  3. package/dist/carousel.js.map +1 -1
  4. package/dist/chunks/button.BWdRnIvz.css +1 -0
  5. package/dist/chunks/combobox.CKhQGu5a.css +1 -0
  6. package/dist/chunks/pagination.CKDEuWt6.css +1 -0
  7. package/dist/chunks/spinner.CLQsj9Ky.css +1 -0
  8. package/dist/chunks/table.CMm41tvy.css +1 -0
  9. package/dist/combobox.js +135 -116
  10. package/dist/combobox.js.map +1 -1
  11. package/dist/components/button/button.d.ts +18 -5
  12. package/dist/components/button/button.d.ts.map +1 -1
  13. package/dist/components/carousel/carousel.d.ts +2 -2
  14. package/dist/components/carousel/carousel.d.ts.map +1 -1
  15. package/dist/components/combobox/combobox.d.ts +12 -1
  16. package/dist/components/combobox/combobox.d.ts.map +1 -1
  17. package/dist/components/pagination/pagination.d.ts +33 -2
  18. package/dist/components/pagination/pagination.d.ts.map +1 -1
  19. package/dist/components/pagination/public.d.ts +1 -1
  20. package/dist/components/pagination/public.d.ts.map +1 -1
  21. package/dist/components/sidebar/sidebar.d.ts +1 -1
  22. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  23. package/dist/components/spinner/spinner.d.ts +11 -1
  24. package/dist/components/spinner/spinner.d.ts.map +1 -1
  25. package/dist/components/table/table.d.ts +18 -2
  26. package/dist/components/table/table.d.ts.map +1 -1
  27. package/dist/docs/button.md +24 -4
  28. package/dist/docs/combobox.md +147 -0
  29. package/dist/docs/pagination.md +84 -5
  30. package/dist/docs/spinner.md +5 -1
  31. package/dist/docs/table.md +95 -11
  32. package/dist/index.js +198 -195
  33. package/dist/pagination.js +96 -52
  34. package/dist/pagination.js.map +1 -1
  35. package/dist/sidebar.js.map +1 -1
  36. package/dist/spinner.js +30 -27
  37. package/dist/spinner.js.map +1 -1
  38. package/dist/table.js +106 -97
  39. package/dist/table.js.map +1 -1
  40. package/llms.txt +27 -9
  41. package/package.json +1 -1
  42. package/dist/chunks/button.DgUTlW0_.css +0 -1
  43. package/dist/chunks/combobox.DZZ3tHP_.css +0 -1
  44. package/dist/chunks/pagination.bFb5us_w.css +0 -1
  45. package/dist/chunks/spinner.sH6x_1Uf.css +0 -1
  46. package/dist/chunks/table.DR2nFT0x.css +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.js","sources":["../src/components/combobox/combobox.tsx"],"sourcesContent":["// Load-bearing: useComboboxAnchor calls useRef directly in its own body, so\n// this can't be dropped. Coupled to CLIENT_COMPONENTS in\n// scripts/verify-consumer.sh — keep both in sync if this ever changes.\n'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';\nimport { cx } from 'class-variance-authority';\nimport { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';\nimport { type ComponentPropsWithRef, type ReactNode, useRef } from 'react';\n\nimport styles from './combobox.module.css';\n\nexport const Combobox = ComboboxPrimitive.Root;\n/**\n * Base UI pass-through; props type re-exported (see dialog.tsx). Generic\n * like the root itself: `Value` is the item value's type, `Multiple` widens\n * `value`/`onValueChange` (and the input's typed selection) to arrays when\n * true — same idiom as select.tsx's `SelectProps<Value, Multiple>`.\n */\nexport type ComboboxProps<\n Value,\n Multiple extends boolean | undefined = false,\n> = ComboboxPrimitive.Root.Props<Value, Multiple>;\n\n/*\n * Unlike Select — which always needs a separate SelectValue to render the\n * chosen label next to its button-only trigger — a single-select Combobox's\n * own <input> already displays the current value as editable text, so\n * ComboboxValue is normally unused there. It exists for the cases upstream\n * demonstrates it for: formatting a multi-select's array of values inside\n * ComboboxChips (see the combobox.md example). It renders no element of its\n * own (verified against the Base UI source), hence no className to merge —\n * matching upstream's own wrapper exactly.\n */\nexport type ComboboxValueProps = ComboboxPrimitive.Value.Props;\n\nexport function ComboboxValue(props: ComboboxValueProps) {\n return <ComboboxPrimitive.Value {...props} />;\n}\n\nexport interface ComboboxTriggerProps\n extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Trigger>, 'className'> {\n className?: string;\n children?: ReactNode;\n}\n\n/*\n * Exported standalone (upstream exports it too), but also reused below by\n * ComboboxInput's own `showTrigger` — the two are the same button, upstream\n * just composes it inline via `render={<ComboboxTrigger/>}` where this kit\n * has no InputGroup primitive to render it into (see ComboboxInput).\n */\nexport function ComboboxTrigger({ className, children, ...props }: ComboboxTriggerProps) {\n return (\n <ComboboxPrimitive.Trigger className={cx(styles.inputTrigger, className)} {...props}>\n {children ?? <ChevronDownIcon className={styles.svgIcon} />}\n </ComboboxPrimitive.Trigger>\n );\n}\n\n/*\n * NOT exported (upstream defines it but only exports Combobox/Combobox\n * Input/…/ComboboxTrigger/ComboboxValue/useComboboxAnchor at the bottom of\n * its file — Clear is missing from that list) — it only ever appears\n * composed into ComboboxInput via `showClear`, never as a kit-level part a\n * consumer reaches for on its own.\n */\ninterface ComboboxClearProps\n extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Clear>, 'className'> {\n className?: string;\n}\n\nfunction ComboboxClear({ className, ...props }: ComboboxClearProps) {\n return (\n <ComboboxPrimitive.Clear className={cx(styles.inputClear, className)} {...props}>\n <XIcon className={styles.svgIcon} />\n </ComboboxPrimitive.Clear>\n );\n}\n\nexport interface ComboboxInputProps extends Omit<ComboboxPrimitive.Input.Props, 'className'> {\n className?: string;\n /**\n * Renders the chevron button that opens the popup, trailing the field.\n * @default true\n */\n showTrigger?: boolean;\n /**\n * Renders a clear button trailing the field once a value is chosen. Base\n * UI's Clear part only mounts while there's something to clear (default\n * `keepMounted={false}`), and while it's mounted it visually replaces the\n * trigger in the same inline-end slot (see combobox.module.css's\n * `:has()` rule) rather than the two ever stacking.\n * @default false\n */\n showClear?: boolean;\n /**\n * Accessible name for the chevron button `showTrigger` renders. It is an\n * icon-only control, so this string IS its name — override it to ship a\n * combobox in any language but English, the same way `Dialog`'s\n * `closeLabel` and `SidebarTrigger`'s `label` work.\n * @default 'Toggle options'\n */\n toggleLabel?: string;\n /**\n * Accessible name for the clear button `showClear` renders.\n * @default 'Clear value'\n */\n clearLabel?: string;\n children?: ReactNode;\n}\n\n/*\n * Upstream composes this from a separate InputGroup/InputGroupAddon\n * registry component (its own generic field-plus-adornments primitive,\n * shared with other shadcn components) — this kit has no such primitive, so\n * the trailing trigger/clear are laid out here directly as an absolutely\n * positioned overlay instead, the same idiom input.tsx already uses for its\n * own icon/end slots.\n */\nexport function ComboboxInput({\n className,\n children,\n disabled = false,\n showTrigger = true,\n showClear = false,\n toggleLabel = 'Toggle options',\n clearLabel = 'Clear value',\n ...props\n}: ComboboxInputProps) {\n return (\n <span className={styles.inputWrap}>\n <ComboboxPrimitive.Input\n className={cx(\n styles.input,\n (showTrigger || showClear) && styles.hasTrailingControl,\n className,\n )}\n disabled={disabled}\n {...props}\n />\n {showTrigger && <ComboboxTrigger disabled={disabled} aria-label={toggleLabel} />}\n {showClear && <ComboboxClear disabled={disabled} aria-label={clearLabel} />}\n {children}\n </span>\n );\n}\n\nexport interface ComboboxContentProps\n extends Omit<ComboboxPrimitive.Popup.Props, 'className'>,\n Pick<\n ComboboxPrimitive.Positioner.Props,\n // positionMethod/collision*: see dropdown-menu.tsx — the escape hatch\n // for anchors inside a transform/filter container. `anchor`: lets a\n // multi-select point the popup at ComboboxChips instead of the\n // (nonexistent, in that mode) single-line input — see\n // useComboboxAnchor below.\n | 'anchor'\n | 'align'\n | 'alignOffset'\n | 'side'\n | 'sideOffset'\n | 'positionMethod'\n | 'collisionBoundary'\n | 'collisionPadding'\n > {\n className?: string;\n /**\n * Where to portal the popup. Defaults to <body>. Pass a themed container\n * when the theme is scoped to a subtree (data-theme on a section rather\n * than <html>) so the popup inherits its tokens and font.\n */\n container?: ComboboxPrimitive.Portal.Props['container'];\n}\n\n/*\n * Deliberately thinner than SelectContent: Select always fuses its content\n * with a List (plus scroll arrows) because every Select popup shows the\n * same shape. Combobox's own popup can hold a List, an Empty message, or\n * both side by side (see combobox.md) — upstream places List/Empty as\n * ComboboxContent's own children rather than having Content wrap them, and\n * there is no scroll-arrow pair to port (Base UI's Combobox has no\n * ScrollUp/DownArrow parts — the List just scrolls itself, see .list below).\n */\nexport function ComboboxContent({\n className,\n children,\n container,\n anchor,\n side = 'bottom',\n sideOffset = 6,\n align = 'start',\n alignOffset = 0,\n positionMethod,\n collisionBoundary,\n collisionPadding,\n ...props\n}: ComboboxContentProps) {\n return (\n <ComboboxPrimitive.Portal container={container}>\n <ComboboxPrimitive.Positioner\n anchor={anchor}\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n positionMethod={positionMethod}\n collisionBoundary={collisionBoundary}\n collisionPadding={collisionPadding}\n className={styles.positioner}\n >\n <ComboboxPrimitive.Popup className={cx(styles.popup, className)} {...props}>\n {children}\n </ComboboxPrimitive.Popup>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n );\n}\n\nexport interface ComboboxListProps extends Omit<ComboboxPrimitive.List.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxList({ className, ...props }: ComboboxListProps) {\n return <ComboboxPrimitive.List className={cx(styles.list, className)} {...props} />;\n}\n\nexport interface ComboboxEmptyProps extends Omit<ComboboxPrimitive.Empty.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxEmpty({ className, ...props }: ComboboxEmptyProps) {\n return <ComboboxPrimitive.Empty className={cx(styles.empty, className)} {...props} />;\n}\n\nexport interface ComboboxGroupProps extends Omit<ComboboxPrimitive.Group.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxGroup({ className, ...props }: ComboboxGroupProps) {\n return <ComboboxPrimitive.Group className={cx(styles.group, className)} {...props} />;\n}\n\nexport interface ComboboxLabelProps extends Omit<ComboboxPrimitive.GroupLabel.Props, 'className'> {\n className?: string;\n}\n\n/* Kit name follows Select's own convention (SelectLabel wraps\n * SelectPrimitive.GroupLabel, not the unrelated standalone Label part) —\n * and matches what upstream itself calls this same wrapper. */\nexport function ComboboxLabel({ className, ...props }: ComboboxLabelProps) {\n return <ComboboxPrimitive.GroupLabel className={cx(styles.groupLabel, className)} {...props} />;\n}\n\nexport type ComboboxCollectionProps = ComboboxPrimitive.Collection.Props;\n\n/** Renders no element of its own — a render-prop pass-through for grouped\n * or virtualized lists, same as the Base UI part it wraps. */\nexport function ComboboxCollection(props: ComboboxCollectionProps) {\n return <ComboboxPrimitive.Collection {...props} />;\n}\n\nexport interface ComboboxItemProps extends Omit<ComboboxPrimitive.Item.Props, 'className'> {\n className?: string;\n children?: ReactNode;\n}\n\nexport function ComboboxItem({ className, children, ...props }: ComboboxItemProps) {\n return (\n <ComboboxPrimitive.Item className={cx(styles.item, className)} {...props}>\n {children}\n <ComboboxPrimitive.ItemIndicator render={<span className={styles.itemIndicator} />}>\n <CheckIcon className={styles.svgIcon} />\n </ComboboxPrimitive.ItemIndicator>\n </ComboboxPrimitive.Item>\n );\n}\n\nexport interface ComboboxSeparatorProps\n extends Omit<ComboboxPrimitive.Separator.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxSeparator({ className, ...props }: ComboboxSeparatorProps) {\n return <ComboboxPrimitive.Separator className={cx(styles.separator, className)} {...props} />;\n}\n\nexport interface ComboboxChipsProps\n extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Chips>, 'className'> {\n className?: string;\n}\n\n/*\n * `ComponentPropsWithRef`, not `Omit<Chips.Props, 'className'>` like every\n * other part above: this is the one part a consumer forwards a ref INTO\n * (see useComboboxAnchor below), so its props type has to carry `ref`\n * itself — matching upstream's own identical typing for this one export.\n */\nexport function ComboboxChips({ className, ...props }: ComboboxChipsProps) {\n return <ComboboxPrimitive.Chips className={cx(styles.chips, className)} {...props} />;\n}\n\nexport interface ComboboxChipProps extends Omit<ComboboxPrimitive.Chip.Props, 'className'> {\n className?: string;\n children?: ReactNode;\n /**\n * Renders a remove button trailing the chip's label.\n * @default true\n */\n showRemove?: boolean;\n /**\n * Accessible name for that remove button. Reads better naming the chip\n * it removes (`removeLabel={`Remove ${label}`}`) once a form has several\n * of them.\n * @default 'Remove'\n */\n removeLabel?: string;\n}\n\nexport function ComboboxChip({\n className,\n children,\n showRemove = true,\n removeLabel = 'Remove',\n ...props\n}: ComboboxChipProps) {\n return (\n <ComboboxPrimitive.Chip className={cx(styles.chip, className)} {...props}>\n {children}\n {showRemove && (\n <ComboboxPrimitive.ChipRemove className={styles.chipRemove} aria-label={removeLabel}>\n <XIcon className={cx(styles.svgIcon, styles.chipRemoveIcon)} />\n </ComboboxPrimitive.ChipRemove>\n )}\n </ComboboxPrimitive.Chip>\n );\n}\n\nexport interface ComboboxChipsInputProps extends Omit<ComboboxPrimitive.Input.Props, 'className'> {\n className?: string;\n}\n\n/** The same Combobox.Input part as ComboboxInput above, styled bare instead\n * of field-bordered — it sits inline among the chips, which already carry\n * the field's own border. */\nexport function ComboboxChipsInput({ className, ...props }: ComboboxChipsInputProps) {\n return <ComboboxPrimitive.Input className={cx(styles.chipsInput, className)} {...props} />;\n}\n\n/**\n * A ref to anchor ComboboxContent's popup to ComboboxChips instead of the\n * single-line input a multi-select combobox no longer has room for — pass\n * the same ref to both `<ComboboxChips ref={...}>` and\n * `<ComboboxContent anchor={...}>` (see combobox.md's multi-select\n * example). Exported by upstream as a small convenience over\n * `useRef<HTMLDivElement>(null)`; this is the one call in this module that\n * invokes a hook directly in its own body, which is why the module carries\n * 'use client' — see the top-of-file comment.\n */\nexport function useComboboxAnchor() {\n return useRef<HTMLDivElement | null>(null);\n}\n"],"names":["Combobox","ComboboxPrimitive","ComboboxValue","props","jsx","ComboboxTrigger","className","children","cx","styles","ChevronDownIcon","ComboboxClear","XIcon","ComboboxInput","disabled","showTrigger","showClear","toggleLabel","clearLabel","jsxs","ComboboxContent","container","anchor","side","sideOffset","align","alignOffset","positionMethod","collisionBoundary","collisionPadding","ComboboxList","ComboboxEmpty","ComboboxGroup","ComboboxLabel","ComboboxCollection","ComboboxItem","CheckIcon","ComboboxSeparator","ComboboxChips","ComboboxChip","showRemove","removeLabel","ComboboxChipsInput","useComboboxAnchor","useRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;GAYaA,IAAWC,EAAkB;AAwBnC,SAASC,EAAcC,GAA2B;AACvD,SAAO,gBAAAC,EAACH,EAAkB,OAAlB,EAAyB,GAAGE,EAAA,CAAO;AAC7C;AAcO,SAASE,EAAgB,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGJ,KAA+B;AACvF,2BACGF,EAAkB,SAAlB,EAA0B,WAAWO,EAAGC,EAAO,cAAcH,CAAS,GAAI,GAAGH,GAC3E,UAAAI,KAAY,gBAAAH,EAACM,KAAgB,WAAWD,EAAO,SAAS,GAC3D;AAEJ;AAcA,SAASE,EAAc,EAAE,WAAAL,GAAW,GAAGH,KAA6B;AAClE,2BACGF,EAAkB,OAAlB,EAAwB,WAAWO,EAAGC,EAAO,YAAYH,CAAS,GAAI,GAAGH,GACxE,UAAA,gBAAAC,EAACQ,KAAM,WAAWH,EAAO,SAAS,GACpC;AAEJ;AA0CO,SAASI,EAAc;AAAA,EAC5B,WAAAP;AAAA,EACA,UAAAC;AAAA,EACA,UAAAO,IAAW;AAAA,EACX,aAAAC,IAAc;AAAA,EACd,WAAAC,IAAY;AAAA,EACZ,aAAAC,IAAc;AAAA,EACd,YAAAC,IAAa;AAAA,EACb,GAAGf;AACL,GAAuB;AACrB,SACE,gBAAAgB,EAAC,QAAA,EAAK,WAAWV,EAAO,WACtB,UAAA;AAAA,IAAA,gBAAAL;AAAA,MAACH,EAAkB;AAAA,MAAlB;AAAA,QACC,WAAWO;AAAA,UACTC,EAAO;AAAA,WACNM,KAAeC,MAAcP,EAAO;AAAA,UACrCH;AAAA,QAAA;AAAA,QAEF,UAAAQ;AAAA,QACC,GAAGX;AAAA,MAAA;AAAA,IAAA;AAAA,IAELY,KAAe,gBAAAX,EAACC,GAAA,EAAgB,UAAAS,GAAoB,cAAYG,GA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AAsB;AACpB,SACE,gBAAAgB,EAAClB,EAAkB,MAAlB,EAAuB,WAAWO,EAAGC,EAAO,MAAMH,CAAS,GAAI,GAAGH,GAChE,UAAA;AAAA,IAAAI;AAAA,IACAiC,KACC,gBAAApC,EAACH,EAAkB,YAAlB,EAA6B,WAAWQ,EAAO,YAAY,cAAYgC,GACtE,UAAA,gBAAArC,EAACQ,GAAA,EAAM,WAAWJ,EAAGC,EAAO,SAASA,EAAO,cAAc,GAAG,EAAA,CAC/D;AAAA,EAAA,GAEJ;AAEJ;AASO,SAASiC,GAAmB,EAAE,WAAApC,GAAW,GAAGH,KAAkC;AACnF,SAAO,gBAAAC,EAACH,EAAkB,OAAlB,EAAwB,WAAWO,EAAGC,EAAO,YAAYH,CAAS,GAAI,GAAGH,EAAA,CAAO;AAC1F;AAYO,SAASwC,KAAoB;AAClC,SAAOC,EAA8B,IAAI;AAC3C;"}
1
+ {"version":3,"file":"combobox.js","sources":["../src/components/combobox/combobox.tsx"],"sourcesContent":["// Load-bearing: useComboboxAnchor calls useRef directly in its own body, so\n// this can't be dropped. Coupled to CLIENT_COMPONENTS in\n// scripts/verify-consumer.sh — keep both in sync if this ever changes.\n'use client';\n\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';\nimport { cx } from 'class-variance-authority';\nimport { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';\nimport { type ComponentPropsWithRef, type ReactNode, useRef } from 'react';\n\nimport styles from './combobox.module.css';\n\nexport const Combobox = ComboboxPrimitive.Root;\n/**\n * Base UI pass-through; props type re-exported (see dialog.tsx). Generic\n * like the root itself: `Value` is the item value's type, `Multiple` widens\n * `value`/`onValueChange` (and the input's typed selection) to arrays when\n * true — same idiom as select.tsx's `SelectProps<Value, Multiple>`.\n */\nexport type ComboboxProps<\n Value,\n Multiple extends boolean | undefined = false,\n> = ComboboxPrimitive.Root.Props<Value, Multiple>;\n\n/*\n * Unlike Select — which always needs a separate SelectValue to render the\n * chosen label next to its button-only trigger — a single-select Combobox's\n * own <input> already displays the current value as editable text, so\n * ComboboxValue is normally unused there. It exists for the cases upstream\n * demonstrates it for: formatting a multi-select's array of values inside\n * ComboboxChips (see the combobox.md example). It renders no element of its\n * own (verified against the Base UI source), hence no className to merge —\n * matching upstream's own wrapper exactly.\n */\nexport type ComboboxValueProps = ComboboxPrimitive.Value.Props;\n\nexport function ComboboxValue(props: ComboboxValueProps) {\n return <ComboboxPrimitive.Value {...props} />;\n}\n\nexport interface ComboboxTriggerProps\n extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Trigger>, 'className'> {\n className?: string;\n children?: ReactNode;\n /**\n * `default` is the compact chevron button ComboboxInput composes into the\n * trailing corner of its field. `select` is a field of its own that looks\n * like SelectTrigger: the children (the chosen value, or a placeholder)\n * and then a chevron the trigger adds itself. Pair `select` with the\n * search input INSIDE ComboboxContent (`<ComboboxInput showTrigger={false} />`)\n * and give the trigger an `aria-label`: its role is `combobox`, which takes\n * no name from its content.\n * @default 'default'\n */\n variant?: 'default' | 'select';\n}\n\n/*\n * Exported standalone (upstream exports it too), but also reused below by\n * ComboboxInput's own `showTrigger` — the two are the same button, upstream\n * just composes it inline via `render={<ComboboxTrigger/>}` where this kit\n * has no InputGroup primitive to render it into (see ComboboxInput).\n *\n * `variant=\"select\"` is the same primitive dressed as a Select trigger, for a\n * combobox whose search field lives in the popup. Its children sit in a span\n * so a long value ellipsises instead of pushing the chevron out; that span\n * is also what holds ComboboxChips for a multiple select, which is why the\n * trigger is then rendered as a div (`render={<div />}` with\n * `nativeButton={false}`): a button may not contain the chips' div.\n */\nexport function ComboboxTrigger({\n className,\n children,\n variant = 'default',\n ...props\n}: ComboboxTriggerProps) {\n if (variant === 'select') {\n return (\n <ComboboxPrimitive.Trigger className={cx(styles.selectTrigger, className)} {...props}>\n <span className={styles.selectValue}>{children}</span>\n <ChevronDownIcon className={cx(styles.svgIcon, styles.selectTriggerIcon)} />\n </ComboboxPrimitive.Trigger>\n );\n }\n return (\n <ComboboxPrimitive.Trigger className={cx(styles.inputTrigger, className)} {...props}>\n {children ?? <ChevronDownIcon className={styles.svgIcon} />}\n </ComboboxPrimitive.Trigger>\n );\n}\n\n/*\n * NOT exported (upstream defines it but only exports Combobox/Combobox\n * Input/…/ComboboxTrigger/ComboboxValue/useComboboxAnchor at the bottom of\n * its file — Clear is missing from that list) — it only ever appears\n * composed into ComboboxInput via `showClear`, never as a kit-level part a\n * consumer reaches for on its own.\n */\ninterface ComboboxClearProps\n extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Clear>, 'className'> {\n className?: string;\n}\n\nfunction ComboboxClear({ className, ...props }: ComboboxClearProps) {\n return (\n <ComboboxPrimitive.Clear className={cx(styles.inputClear, className)} {...props}>\n <XIcon className={styles.svgIcon} />\n </ComboboxPrimitive.Clear>\n );\n}\n\nexport interface ComboboxInputProps extends Omit<ComboboxPrimitive.Input.Props, 'className'> {\n className?: string;\n /**\n * Renders the chevron button that opens the popup, trailing the field.\n * @default true\n */\n showTrigger?: boolean;\n /**\n * Renders a clear button trailing the field once a value is chosen. Base\n * UI's Clear part only mounts while there's something to clear (default\n * `keepMounted={false}`), and while it's mounted it visually replaces the\n * trigger in the same inline-end slot (see combobox.module.css's\n * `:has()` rule) rather than the two ever stacking.\n * @default false\n */\n showClear?: boolean;\n /**\n * Accessible name for the chevron button `showTrigger` renders. It is an\n * icon-only control, so this string IS its name — override it to ship a\n * combobox in any language but English, the same way `Dialog`'s\n * `closeLabel` and `SidebarTrigger`'s `label` work.\n * @default 'Toggle options'\n */\n toggleLabel?: string;\n /**\n * Accessible name for the clear button `showClear` renders.\n * @default 'Clear value'\n */\n clearLabel?: string;\n children?: ReactNode;\n}\n\n/*\n * Upstream composes this from a separate InputGroup/InputGroupAddon\n * registry component (its own generic field-plus-adornments primitive,\n * shared with other shadcn components) — this kit has no such primitive, so\n * the trailing trigger/clear are laid out here directly as an absolutely\n * positioned overlay instead, the same idiom input.tsx already uses for its\n * own icon/end slots.\n */\nexport function ComboboxInput({\n className,\n children,\n disabled = false,\n showTrigger = true,\n showClear = false,\n toggleLabel = 'Toggle options',\n clearLabel = 'Clear value',\n ...props\n}: ComboboxInputProps) {\n return (\n <span className={styles.inputWrap}>\n <ComboboxPrimitive.Input\n className={cx(\n styles.input,\n (showTrigger || showClear) && styles.hasTrailingControl,\n className,\n )}\n disabled={disabled}\n {...props}\n />\n {showTrigger && <ComboboxTrigger disabled={disabled} aria-label={toggleLabel} />}\n {showClear && <ComboboxClear disabled={disabled} aria-label={clearLabel} />}\n {children}\n </span>\n );\n}\n\nexport interface ComboboxContentProps\n extends Omit<ComboboxPrimitive.Popup.Props, 'className'>,\n Pick<\n ComboboxPrimitive.Positioner.Props,\n // positionMethod/collision*: see dropdown-menu.tsx — the escape hatch\n // for anchors inside a transform/filter container. `anchor`: lets a\n // multi-select point the popup at ComboboxChips instead of the\n // (nonexistent, in that mode) single-line input — see\n // useComboboxAnchor below.\n | 'anchor'\n | 'align'\n | 'alignOffset'\n | 'side'\n | 'sideOffset'\n | 'positionMethod'\n | 'collisionBoundary'\n | 'collisionPadding'\n > {\n className?: string;\n /**\n * Where to portal the popup. Defaults to <body>. Pass a themed container\n * when the theme is scoped to a subtree (data-theme on a section rather\n * than <html>) so the popup inherits its tokens and font.\n */\n container?: ComboboxPrimitive.Portal.Props['container'];\n}\n\n/*\n * Deliberately thinner than SelectContent: Select always fuses its content\n * with a List (plus scroll arrows) because every Select popup shows the\n * same shape. Combobox's own popup can hold a List, an Empty message, or\n * both side by side (see combobox.md) — upstream places List/Empty as\n * ComboboxContent's own children rather than having Content wrap them, and\n * there is no scroll-arrow pair to port (Base UI's Combobox has no\n * ScrollUp/DownArrow parts — the List just scrolls itself, see .list below).\n */\nexport function ComboboxContent({\n className,\n children,\n container,\n anchor,\n side = 'bottom',\n sideOffset = 6,\n align = 'start',\n alignOffset = 0,\n positionMethod,\n collisionBoundary,\n collisionPadding,\n ...props\n}: ComboboxContentProps) {\n return (\n <ComboboxPrimitive.Portal container={container}>\n <ComboboxPrimitive.Positioner\n anchor={anchor}\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n positionMethod={positionMethod}\n collisionBoundary={collisionBoundary}\n collisionPadding={collisionPadding}\n className={styles.positioner}\n >\n <ComboboxPrimitive.Popup className={cx(styles.popup, className)} {...props}>\n {children}\n </ComboboxPrimitive.Popup>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n );\n}\n\nexport interface ComboboxListProps extends Omit<ComboboxPrimitive.List.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxList({ className, ...props }: ComboboxListProps) {\n return <ComboboxPrimitive.List className={cx(styles.list, className)} {...props} />;\n}\n\nexport interface ComboboxEmptyProps extends Omit<ComboboxPrimitive.Empty.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxEmpty({ className, ...props }: ComboboxEmptyProps) {\n return <ComboboxPrimitive.Empty className={cx(styles.empty, className)} {...props} />;\n}\n\nexport interface ComboboxGroupProps extends Omit<ComboboxPrimitive.Group.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxGroup({ className, ...props }: ComboboxGroupProps) {\n return <ComboboxPrimitive.Group className={cx(styles.group, className)} {...props} />;\n}\n\nexport interface ComboboxLabelProps extends Omit<ComboboxPrimitive.GroupLabel.Props, 'className'> {\n className?: string;\n}\n\n/* Kit name follows Select's own convention (SelectLabel wraps\n * SelectPrimitive.GroupLabel, not the unrelated standalone Label part) —\n * and matches what upstream itself calls this same wrapper. */\nexport function ComboboxLabel({ className, ...props }: ComboboxLabelProps) {\n return <ComboboxPrimitive.GroupLabel className={cx(styles.groupLabel, className)} {...props} />;\n}\n\nexport type ComboboxCollectionProps = ComboboxPrimitive.Collection.Props;\n\n/** Renders no element of its own — a render-prop pass-through for grouped\n * or virtualized lists, same as the Base UI part it wraps. */\nexport function ComboboxCollection(props: ComboboxCollectionProps) {\n return <ComboboxPrimitive.Collection {...props} />;\n}\n\nexport interface ComboboxItemProps extends Omit<ComboboxPrimitive.Item.Props, 'className'> {\n className?: string;\n children?: ReactNode;\n}\n\nexport function ComboboxItem({ className, children, ...props }: ComboboxItemProps) {\n return (\n <ComboboxPrimitive.Item className={cx(styles.item, className)} {...props}>\n {children}\n <ComboboxPrimitive.ItemIndicator render={<span className={styles.itemIndicator} />}>\n <CheckIcon className={styles.svgIcon} />\n </ComboboxPrimitive.ItemIndicator>\n </ComboboxPrimitive.Item>\n );\n}\n\nexport interface ComboboxSeparatorProps\n extends Omit<ComboboxPrimitive.Separator.Props, 'className'> {\n className?: string;\n}\n\nexport function ComboboxSeparator({ className, ...props }: ComboboxSeparatorProps) {\n return <ComboboxPrimitive.Separator className={cx(styles.separator, className)} {...props} />;\n}\n\nexport interface ComboboxChipsProps\n extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Chips>, 'className'> {\n className?: string;\n}\n\n/*\n * `ComponentPropsWithRef`, not `Omit<Chips.Props, 'className'>` like every\n * other part above: this is the one part a consumer forwards a ref INTO\n * (see useComboboxAnchor below), so its props type has to carry `ref`\n * itself — matching upstream's own identical typing for this one export.\n */\nexport function ComboboxChips({ className, ...props }: ComboboxChipsProps) {\n return <ComboboxPrimitive.Chips className={cx(styles.chips, className)} {...props} />;\n}\n\nexport interface ComboboxChipProps extends Omit<ComboboxPrimitive.Chip.Props, 'className'> {\n className?: string;\n children?: ReactNode;\n /**\n * Renders a remove button trailing the chip's label.\n * @default true\n */\n showRemove?: boolean;\n /**\n * Accessible name for that remove button. Reads better naming the chip\n * it removes (`removeLabel={`Remove ${label}`}`) once a form has several\n * of them.\n * @default 'Remove'\n */\n removeLabel?: string;\n}\n\nexport function ComboboxChip({\n className,\n children,\n showRemove = true,\n removeLabel = 'Remove',\n ...props\n}: ComboboxChipProps) {\n return (\n <ComboboxPrimitive.Chip className={cx(styles.chip, className)} {...props}>\n {children}\n {showRemove && (\n <ComboboxPrimitive.ChipRemove\n className={styles.chipRemove}\n aria-label={removeLabel}\n // A chip inside a select-style trigger sits in the trigger's React\n // tree, and the trigger opens the popup on mousedown: without this\n // the press that removes a chip also opens the list. pointerdown is\n // left alone, so outside-press dismissal elsewhere still sees it.\n onMouseDown={(event) => event.stopPropagation()}\n >\n <XIcon className={cx(styles.svgIcon, styles.chipRemoveIcon)} />\n </ComboboxPrimitive.ChipRemove>\n )}\n </ComboboxPrimitive.Chip>\n );\n}\n\nexport interface ComboboxChipsInputProps extends Omit<ComboboxPrimitive.Input.Props, 'className'> {\n className?: string;\n}\n\n/** The same Combobox.Input part as ComboboxInput above, styled bare instead\n * of field-bordered — it sits inline among the chips, which already carry\n * the field's own border. */\nexport function ComboboxChipsInput({ className, ...props }: ComboboxChipsInputProps) {\n return <ComboboxPrimitive.Input className={cx(styles.chipsInput, className)} {...props} />;\n}\n\n/**\n * A ref to anchor ComboboxContent's popup to ComboboxChips instead of the\n * single-line input a multi-select combobox no longer has room for — pass\n * the same ref to both `<ComboboxChips ref={...}>` and\n * `<ComboboxContent anchor={...}>` (see combobox.md's multi-select\n * example). Exported by upstream as a small convenience over\n * `useRef<HTMLDivElement>(null)`; this is the one call in this module that\n * invokes a hook directly in its own body, which is why the module carries\n * 'use client' — see the top-of-file comment.\n */\nexport function useComboboxAnchor() {\n return useRef<HTMLDivElement | null>(null);\n}\n"],"names":["Combobox","ComboboxPrimitive","ComboboxValue","props","jsx","ComboboxTrigger","className","children","variant","jsxs","cx","styles","ChevronDownIcon","ComboboxClear","XIcon","ComboboxInput","disabled","showTrigger","showClear","toggleLabel","clearLabel","ComboboxContent","container","anchor","side","sideOffset","align","alignOffset","positionMethod","collisionBoundary","collisionPadding","ComboboxList","ComboboxEmpty","ComboboxGroup","ComboboxLabel","ComboboxCollection","ComboboxItem","CheckIcon","ComboboxSeparator","ComboboxChips","ComboboxChip","showRemove","removeLabel","event","ComboboxChipsInput","useComboboxAnchor","useRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYaA,IAAWC,EAAkB;AAwBnC,SAASC,EAAc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AI,GAAGH,EAAA,CAAO;AACrF;AAmBO,SAASqC,GAAa;AAAA,EAC3B,WAAAlC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAkC,IAAa;AAAA,EACb,aAAAC,IAAc;AAAA,EACd,GAAGvC;AACL,GAAsB;AACpB,SACE,gBAAAM,EAACR,EAAkB,MAAlB,EAAuB,WAAWS,EAAGC,EAAO,MAAML,CAAS,GAAI,GAAGH,GAChE,UAAA;AAAA,IAAAI;AAAA,IACAkC,KACC,gBAAArC;AAAA,MAACH,EAAkB;AAAA,MAAlB;AAAA,QACC,WAAWU,EAAO;AAAA,QAClB,cAAY+B;AAAA,QAKZ,aAAa,CAACC,MAAUA,EAAM,gBAAA;AAAA,QAE9B,UAAA,gBAAAvC,EAACU,KAAM,WAAWJ,EAAGC,EAAO,SAASA,EAAO,cAAc,EAAA,CAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAC/D,GAEJ;AAEJ;AASO,SAASiC,GAAmB,EAAE,WAAAtC,GAAW,GAAGH,KAAkC;AACnF,SAAO,gBAAAC,EAACH,EAAkB,OAAlB,EAAwB,WAAWS,EAAGC,EAAO,YAAYL,CAAS,GAAI,GAAGH,EAAA,CAAO;AAC1F;AAYO,SAAS0C,KAAoB;AAClC,SAAOC,EAA8B,IAAI;AAC3C;"}
@@ -10,12 +10,25 @@ export interface ButtonProps extends Omit<ButtonPrimitive.Props, 'className'>, V
10
10
  /**
11
11
  * Leading icon slot — the one right way to put an icon in a Button (never
12
12
  * via children; the slot is what gets sized, spaced, hidden during
13
- * `loading`, and marked decorative). With no children the button turns
14
- * square icon-only — pass `aria-label` then, the icon carries no
15
- * accessible name. Same prop shape as react-kit's AcvButton; a trailing
16
- * slot, if ever needed, takes AcvButton's `end` name.
13
+ * `loading`, and marked decorative). With no children the button has no
14
+ * accessible name of its own — pass `aria-label` — unless `end` holds
15
+ * announced content, since the icon is decorative. With no `end` either it
16
+ * also turns square icon-only.
17
17
  */
18
18
  icon?: ReactNode;
19
+ /**
20
+ * Trailing slot, rendered after the children — a chevron that opens a
21
+ * menu, a sort-direction arrow, a count. Sized, spaced and hidden during
22
+ * `loading` like `icon`, but NOT marked decorative: its content is part
23
+ * of the button's accessible name, so a count is announced with the label.
24
+ * A glyph hides itself from assistive tech when it carries
25
+ * `aria-hidden="true"`, which lucide icons do by default; hand-written
26
+ * svgs need it passed. A button is itself interactive, so a nested control
27
+ * has no place here (it would be invalid HTML); for a clear button next to
28
+ * a field use Input's `end`. Passing `end` stops the button turning
29
+ * icon-only, since there is then more than one glyph to square up.
30
+ */
31
+ end?: ReactNode;
19
32
  /**
20
33
  * Shows a centered spinner and reports `aria-busy`. Content is hidden
21
34
  * with opacity, not visibility: it keeps painting the button's size (no
@@ -45,5 +58,5 @@ export interface ButtonProps extends Omit<ButtonPrimitive.Props, 'className'>, V
45
58
  */
46
59
  focusableWhenDisabled?: boolean;
47
60
  }
48
- export declare function Button({ className, variant, size, icon, loading, disabled, focusableWhenDisabled, children, ...props }: ButtonProps): import("react").JSX.Element;
61
+ export declare function Button({ className, variant, size, icon, end, loading, disabled, focusableWhenDisabled, children, ...props }: ButtonProps): import("react").JSX.Element;
49
62
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQjD,eAAO,MAAM,cAAc;;;8EAuBzB,CAAC;AAEH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,+BA2Db"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQjD,eAAO,MAAM,cAAc;;;8EAuBzB,CAAC;AAEH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,OAAO,EACP,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,+BAkEb"}
@@ -35,9 +35,9 @@ export interface CarouselItemProps extends Omit<ComponentProps<'div'>, 'classNam
35
35
  className?: string;
36
36
  }
37
37
  export declare function CarouselItem({ className, ...props }: CarouselItemProps): import("react").JSX.Element;
38
- export type CarouselPreviousProps = Omit<ButtonProps, 'icon'>;
38
+ export type CarouselPreviousProps = Omit<ButtonProps, 'icon' | 'end'>;
39
39
  export declare function CarouselPrevious({ className, variant, size, 'aria-label': ariaLabel, disabled, onClick, ...props }: CarouselPreviousProps): import("react").JSX.Element;
40
- export type CarouselNextProps = Omit<ButtonProps, 'icon'>;
40
+ export type CarouselNextProps = Omit<ButtonProps, 'icon' | 'end'>;
41
41
  export declare function CarouselNext({ className, variant, size, 'aria-label': ariaLabel, disabled, onClick, ...props }: CarouselNextProps): import("react").JSX.Element;
42
42
  export {};
43
43
  //# sourceMappingURL=carousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/carousel.tsx"],"names":[],"mappings":"AAQA,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAW/D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAClD,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAEtD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,4BAA4B;IAC5B,W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,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,iBAAiB,+BAoBnB"}
@@ -13,8 +13,19 @@ export declare function ComboboxValue(props: ComboboxValueProps): import("react"
13
13
  export interface ComboboxTriggerProps extends Omit<ComponentPropsWithRef<typeof ComboboxPrimitive.Trigger>, 'className'> {
14
14
  className?: string;
15
15
  children?: ReactNode;
16
+ /**
17
+ * `default` is the compact chevron button ComboboxInput composes into the
18
+ * trailing corner of its field. `select` is a field of its own that looks
19
+ * like SelectTrigger: the children (the chosen value, or a placeholder)
20
+ * and then a chevron the trigger adds itself. Pair `select` with the
21
+ * search input INSIDE ComboboxContent (`<ComboboxInput showTrigger={false} />`)
22
+ * and give the trigger an `aria-label`: its role is `combobox`, which takes
23
+ * no name from its content.
24
+ * @default 'default'
25
+ */
26
+ variant?: 'default' | 'select';
16
27
  }
17
- export declare function ComboboxTrigger({ className, children, ...props }: ComboboxTriggerProps): import("react").JSX.Element;
28
+ export declare function ComboboxTrigger({ className, children, variant, ...props }: ComboboxTriggerProps): import("react").JSX.Element;
18
29
  export interface ComboboxInputProps extends Omit<ComboboxPrimitive.Input.Props, 'className'> {
19
30
  className?: string;
20
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/components/combobox/combobox.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGxE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAI3E,eAAO,MAAM,QAAQ,+BAAyB,CAAC;AAC/C;;;;;GAKG;AACH,MAAM,MAAM,aAAa,CACvB,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IAC1C,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAYlD,MAAM,MAAM,kBAAkB,GAAG,iBAAi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CAAC,KAAK,EAAE,WAAW,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAQD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,QAAQ,EACR,UAAiB,EACjB,WAAsB,EACtB,GAAG,KAAK,EACT,EAAE,iBAAiB,+BAmBnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IAC/F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;6BAE6B;AAC7B,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAElF;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,qDAEhC"}
@@ -21,15 +21,46 @@ export interface PaginationLinkProps extends Omit<ComponentProps<'a'>, 'classNam
21
21
  export declare function PaginationLink({ className, isActive, square, ...props }: PaginationLinkProps): import("react").JSX.Element;
22
22
  export interface PaginationPreviousProps extends Omit<PaginationLinkProps, 'square'> {
23
23
  /** Label text, hidden below the `sm` breakpoint (640px) — matching
24
- * upstream's `hidden sm:block`. @default 'Previous' */
24
+ * upstream's `hidden sm:block`. Also the accessible name when given, since
25
+ * the label is hidden at that width. @default 'Previous' */
25
26
  text?: string;
26
27
  }
27
28
  export declare function PaginationPrevious({ className, text, ...props }: PaginationPreviousProps): import("react").JSX.Element;
28
29
  export interface PaginationNextProps extends Omit<PaginationLinkProps, 'square'> {
29
- /** @default 'Next' */
30
+ /** Also the accessible name when given. @default 'Next' */
30
31
  text?: string;
31
32
  }
32
33
  export declare function PaginationNext({ className, text, ...props }: PaginationNextProps): import("react").JSX.Element;
34
+ export interface PaginationButtonProps extends Omit<ComponentProps<'button'>, 'className'> {
35
+ className?: string;
36
+ /** Marks the page in view: sets `aria-current="page"` and the active
37
+ * paint, same as PaginationLink's. */
38
+ isActive?: boolean;
39
+ /** Same square footprint as PaginationLink's. @default true */
40
+ square?: boolean;
41
+ /**
42
+ * Keep the button in the tab order while `disabled`, reporting
43
+ * `aria-disabled` instead of the native attribute. Without it a button that
44
+ * holds keyboard focus when it becomes disabled (Previous, paged down to the
45
+ * first page) is blurred by the browser and focus falls to the page. Same
46
+ * name and meaning as Button's, which this renders through the same Base UI
47
+ * primitive.
48
+ * @default false
49
+ */
50
+ focusableWhenDisabled?: boolean;
51
+ }
52
+ export declare function PaginationButton({ className, isActive, square, type, ...props }: PaginationButtonProps): import("react").JSX.Element;
53
+ export interface PaginationPreviousButtonProps extends Omit<PaginationButtonProps, 'square' | 'isActive'> {
54
+ /** Label text, hidden below the `sm` breakpoint (640px). Also the
55
+ * accessible name when given. @default 'Previous' */
56
+ text?: string;
57
+ }
58
+ export declare function PaginationPreviousButton({ text, ...props }: PaginationPreviousButtonProps): import("react").JSX.Element;
59
+ export interface PaginationNextButtonProps extends Omit<PaginationButtonProps, 'square' | 'isActive'> {
60
+ /** Also the accessible name when given. @default 'Next' */
61
+ text?: string;
62
+ }
63
+ export declare function PaginationNextButton({ text, ...props }: PaginationNextButtonProps): import("react").JSX.Element;
33
64
  export type PaginationEllipsisProps = ComponentProps<'span'>;
34
65
  export declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): import("react").JSX.Element;
35
66
  //# sourceMappingURL=pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BASlE;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAEhF;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEvD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAExD;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BASnG;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAClF;2DACuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,kBAAkB,CAAC,EACjC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E,QAAQ,GAAG,UAAU,CAAC;IACnG,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,+BAM1F;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAOlF"}
@@ -1,2 +1,2 @@
1
- export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationContentProps, type PaginationEllipsisProps, type PaginationItemProps, type PaginationLinkProps, type PaginationNextProps, type PaginationPreviousProps, type PaginationProps, } from './pagination.js';
1
+ export { Pagination, PaginationButton, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextButton, PaginationPrevious, PaginationPreviousButton, type PaginationButtonProps, type PaginationContentProps, type PaginationEllipsisProps, type PaginationItemProps, type PaginationLinkProps, type PaginationNextButtonProps, type PaginationNextProps, type PaginationPreviousButtonProps, type PaginationPreviousProps, type PaginationProps, } from './pagination.js';
2
2
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC"}
@@ -72,7 +72,7 @@ export interface SidebarProps extends Omit<ComponentProps<'div'>, 'className'> {
72
72
  collapsible?: 'offcanvas' | 'icon' | 'none';
73
73
  }
74
74
  export declare function Sidebar({ side, variant, collapsible, className, children, ...props }: SidebarProps): import("react").JSX.Element;
75
- export interface SidebarTriggerProps extends Omit<ButtonProps, 'icon' | 'children'> {
75
+ export interface SidebarTriggerProps extends Omit<ButtonProps, 'icon' | 'end' | 'children'> {
76
76
  /** Accessible name for the icon-only button. @default 'Toggle Sidebar' */
77
77
  label?: string;
78
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAQL,KAAK,cAAc,EAEnB,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3E,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,u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CAAC,OAAO,4BAA4B,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,IAAI,EACJ,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,8FAW3B"}
@@ -15,6 +15,16 @@ export interface SpinnerProps extends ComponentProps<'svg'> {
15
15
  * @default false
16
16
  */
17
17
  compact?: boolean;
18
+ /**
19
+ * The glyph step. `lg` is the large one: 32 on a bare spinner, and in the
20
+ * composed block a 64 indicator around a 32 glyph (the same 2:1 the
21
+ * 36/18 and 28/14 steps draw). Wins over `compact` when both are passed,
22
+ * so a caller computing either from state never gets a half-and-half.
23
+ * Named `size` and kept to a literal union rather than lucide's
24
+ * number-or-string `size`, which this prop intercepts and never forwards.
25
+ * @default 'default'
26
+ */
27
+ size?: 'default' | 'lg';
18
28
  }
19
- export declare function Spinner({ className, label, description, compact, ...props }: SpinnerProps): import("react").JSX.Element;
29
+ export declare function Spinner({ className, label, description, compact, size, ...props }: SpinnerProps): import("react").JSX.Element;
20
30
  //# sourceMappingURL=spinner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA2BvD,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,KAAK,CAAC;IACzD;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;qDACiD;IACjD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAmDzF"}
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA2BvD,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,KAAK,CAAC;IACzD;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;qDACiD;IACjD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAsD/F"}
@@ -1,5 +1,5 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
- import { ComponentProps, CSSProperties } from 'react';
2
+ import { ComponentProps, CSSProperties, Ref } from 'react';
3
3
  declare const tableVariants: (props?: ({
4
4
  variant?: "default" | "collection" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -24,8 +24,24 @@ export interface TableProps extends ComponentProps<'table'>, VariantProps<typeof
24
24
  containerClassName?: string;
25
25
  /** Inline style for the same scroll wrapper, e.g. `{ maxHeight: 320 }`. */
26
26
  containerStyle?: CSSProperties;
27
+ /**
28
+ * Ref to the scroll wrapper `div`, for a caller that measures it or drives
29
+ * its scroll position (`ref` itself lands on the `<table>`, as for every
30
+ * other prop). Both a ref object and a callback ref work.
31
+ */
32
+ containerRef?: Ref<HTMLDivElement>;
33
+ /**
34
+ * Pins the header cells to the top of the scroll wrapper on an opaque
35
+ * fill, so the rows scroll under them. Needs a bounded wrapper height
36
+ * (`containerClassName` / `containerStyle`) to have anything to scroll
37
+ * within. Independent of `variant`: it carries no layout, row height or
38
+ * minimum width, only the pinning, and switches the table to separated
39
+ * borders so the rule under the header stays with it.
40
+ * @default false
41
+ */
42
+ stickyHeader?: boolean;
27
43
  }
28
- export declare function Table({ className, label, density, variant, containerClassName, containerStyle, ...props }: TableProps): import("react").JSX.Element;
44
+ export declare function Table({ className, label, density, variant, containerClassName, containerStyle, containerRef, stickyHeader, ...props }: TableProps): import("react").JSX.Element;
29
45
  export type TableHeaderProps = ComponentProps<'thead'>;
30
46
  export declare function TableHeader({ className, ...props }: TableHeaderProps): import("react").JSX.Element;
31
47
  export type TableBodyProps = ComponentProps<'tbody'>;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAOnB,MAAM,OAAO,CAAC;AAwVf,QAAA,MAAM,aAAa;;8EAejB,CAAC;AAEH,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAC7F;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC;AAED,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,GAAG,KAAK,EACT,EAAE,UAAU,+BAkBZ;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAEvD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,MAAM,MAAM,cAAc,GAAG,cAA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AAc,CAAC,IAAI,CAAC;IAC1D;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,SAAS,EACT,cAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAOhB;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAElD,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAEhE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAE1D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE"}
@@ -27,6 +27,7 @@ polymorphism, correct disabled/focus behavior, `type="button"` by default
27
27
  | `variant` | `default` \| `destructive` \| `outline` \| `secondary` \| `ghost` \| `link` \| `navigation` \| `avatar` \| `utility` - `destructive` is a tint of `--destructive` under a `--destructive` label; `navigation` is a card-filled row with a hairline whose current location is marked by a `data-current` attribute; `avatar` has no box of its own and wears a `--primary` ring while hovered or while it owns an open popup; `utility` is a borderless action with an 18px glyph | `default` |
28
28
  | `size` | `default` \| `sm` \| `lg` (the F-mockups' md/sm/lg scale; `default` is md) | `default` |
29
29
  | `icon` | `ReactNode` — leading icon slot, marked decorative (`aria-hidden`); the ONLY right place for a button icon | — |
30
+ | `end` | `ReactNode` — trailing slot after the label (a chevron, a sort arrow), same sizing, spacing and `loading` handling as `icon`, but not marked decorative: its content is part of the accessible name, so a count is announced, and a glyph hides itself with `aria-hidden` (lucide icons carry it by default) | — |
30
31
  | `loading` | `boolean` — centered spinner, disables the button, sets `aria-busy`; content keeps its space and the button keeps its accessible name | `false` |
31
32
  | `render` | `ReactElement` — replaces the root element, button semantics are applied to it | — |
32
33
  | `nativeButton` | `boolean` — set to `false` whenever `render` is not a native `<button>` | `true` |
@@ -73,8 +74,18 @@ sitting in an Input's `end` slot inside that container, for instance. Use
73
74
  container-level scoping deliberately, or scope to the button itself to
74
75
  avoid the surprise.
75
76
 
76
- Icon-only is derived, not a size: `icon` with no children renders a square
77
- button of the current `size`. There is no `size="icon"`.
77
+ Icon-only is derived, not a size: `icon` with no children and no `end`
78
+ renders a square button of the current `size`. There is no `size="icon"`.
79
+
80
+ `end` is the same slot on the other side of the label, for what follows it:
81
+ a chevron on a button that opens a menu, an arrow that shows a sort
82
+ direction, a count. Unlike `icon` it is not marked decorative: its content
83
+ joins the accessible name, so a count (`<Button end={3}>Filters</Button>`)
84
+ is read out with the label. A glyph is hidden from assistive tech by its
85
+ own `aria-hidden="true"`, which lucide icons carry by default; pass it
86
+ yourself on a hand-written svg. It holds no control of its own (a button
87
+ inside a button is invalid HTML); a clear button next to a text field is
88
+ Input's `end`, not this one.
78
89
 
79
90
  `loading` keeps the button focusable instead of setting the native
80
91
  `disabled` attribute (so `aria-busy` has somewhere to be announced to,
@@ -102,6 +113,9 @@ import { Button } from '@gears-frontx/ui-kit';
102
113
  // Icon next to the label goes in the icon slot, never in children
103
114
  <Button icon={<PlusIcon />} onClick={create}>New project</Button>
104
115
 
116
+ // A trailing glyph after the label goes in the end slot
117
+ <Button variant="outline" end={<ChevronDownIcon />}>Sort by</Button>
118
+
105
119
  // Icon-only (icon slot + no children): always label it
106
120
  <Button icon={<CrossIcon />} aria-label="Close" />
107
121
 
@@ -130,8 +144,14 @@ import { Button } from '@gears-frontx/ui-kit';
130
144
  - Do not put an icon in `children` next to text — it lands in the `icon`
131
145
  slot, which is what sizes it, spaces it, hides it during `loading`, and
132
146
  keeps it out of the accessible name.
133
- - Do not render an icon-only button (icon slot, no children) without
134
- `aria-label` — the icon is decorative and carries no name.
147
+ - Do not put a trailing chevron in `children` — it lands in the `end` slot,
148
+ which sizes and spaces it and hides it during `loading`. A hand-written svg
149
+ in `end` needs its own `aria-hidden="true"`: the slot does not mark it
150
+ decorative, because a count in `end` is meant to be announced.
151
+ - Do not render a button with an icon slot and no children without
152
+ `aria-label` — the icon is decorative and carries no name, and `end` only
153
+ names the button if it holds text that is announced (a glyph is
154
+ `aria-hidden`). It is squared icon-only only when `end` is absent too.
135
155
  - Do not emulate `loading` by swapping children for a spinner — the button
136
156
  loses its accessible name and jumps in width; pass `loading`.
137
157
  - Do not emulate disabled with CSS/`onClick` guards — pass `disabled`