neba 1.16.2 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/a2ui/adapter-catalog.json +1 -0
- package/dist/a2ui/catalog.json +632 -145
- package/dist/a2ui/components.js +1 -1
- package/dist/a2ui/index.d.ts +22 -10
- package/dist/a2ui/index.js +1 -1
- package/dist/a2ui/schema.d.ts +8 -6
- package/dist/a2ui/schema.js +1 -1
- package/dist/components/accordion/Accordion.js +1 -1
- package/dist/components/agent-steps/AgentSteps.js +1 -1
- package/dist/components/alert/Alert.js +1 -1
- package/dist/components/anchor/Anchor.d.ts +3 -1
- package/dist/components/anchor/Anchor.js +1 -1
- package/dist/components/animate-counter/AnimateCounter.d.ts +11 -4
- package/dist/components/animate-counter/AnimateCounter.js +1 -1
- package/dist/components/animate-scramble/AnimateScramble.d.ts +6 -3
- package/dist/components/animate-scramble/AnimateScramble.js +1 -1
- package/dist/components/animate-split/AnimateSplit.d.ts +6 -3
- package/dist/components/animate-split/AnimateSplit.js +1 -1
- package/dist/components/animate-typing/AnimateTyping.js +1 -1
- package/dist/components/app-logo/AppLogo.js +1 -1
- package/dist/components/approval/Approval.js +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/bar-chart/BarChart.js +1 -1
- package/dist/components/bottom-navigation/BottomNavigation.js +1 -1
- package/dist/components/box/Box.js +1 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/components/breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/card/Card.js +1 -1
- package/dist/components/chat-bubble/ChatBubble.js +1 -1
- package/dist/components/chip/Chip.d.ts +4 -1
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/code-block/CodeBlock.js +1 -1
- package/dist/components/collapsible/Collapsible.js +1 -1
- package/dist/components/color-picker/ColorPicker.d.ts +3 -1
- package/dist/components/color-picker/ColorPicker.js +1 -1
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/command-palette/CommandPalette.js +1 -1
- package/dist/components/confirm/Confirm.js +1 -1
- package/dist/components/context-window/ContextWindow.d.ts +4 -1
- package/dist/components/context-window/ContextWindow.js +1 -1
- package/dist/components/data-list/DataList.d.ts +3 -2
- package/dist/components/data-list/DataList.js +1 -1
- package/dist/components/data-table/DataTable.d.ts +11 -5
- package/dist/components/data-table/DataTable.js +1 -1
- package/dist/components/date-range-picker/DateRangePicker.d.ts +3 -2
- package/dist/components/date-range-picker/DateRangePicker.js +1 -1
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/fieldset/Fieldset.js +1 -1
- package/dist/components/file-picker/FilePicker.d.ts +4 -0
- package/dist/components/file-picker/FilePicker.js +1 -1
- package/dist/components/footer/Footer.d.ts +4 -2
- package/dist/components/form/Form.d.ts +0 -14
- package/dist/components/form/Form.js +1 -1
- package/dist/components/gallery/Gallery.js +1 -1
- package/dist/components/gallery/GalleryViewer.js +1 -1
- package/dist/components/header/Header.d.ts +4 -3
- package/dist/components/heatmap-chart/HeatmapChart.js +1 -1
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/how-to-steps/HowToSteps.d.ts +2 -1
- package/dist/components/how-to-steps/HowToSteps.js +1 -1
- package/dist/components/image/Image.d.ts +4 -1
- package/dist/components/image/Image.js +1 -1
- package/dist/components/inline-citation/InlineCitation.d.ts +4 -2
- package/dist/components/inline-citation/InlineCitation.js +1 -1
- package/dist/components/menu/Menu.d.ts +6 -2
- package/dist/components/menu/Menu.js +1 -1
- package/dist/components/mockup/Mockup.js +1 -1
- package/dist/components/navigation-menu/NavigationMenu.d.ts +1 -1
- package/dist/components/navigation-menu/NavigationMenu.js +1 -1
- package/dist/components/number-field/NumberField.js +1 -1
- package/dist/components/overlay/Overlay.d.ts +1 -1
- package/dist/components/page-layout/PageLayout.js +1 -1
- package/dist/components/pagination/Pagination.d.ts +3 -2
- package/dist/components/panes/Panes.js +1 -1
- package/dist/components/pie-chart/PieChart.js +1 -1
- package/dist/components/pill/Pill.js +1 -1
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/progress-box/ProgressBox.js +1 -1
- package/dist/components/prompt-input/PromptInput.d.ts +5 -3
- package/dist/components/prompt-input/PromptInput.js +1 -1
- package/dist/components/radio-group/RadioGroup.js +1 -1
- package/dist/components/rating/Rating.js +1 -1
- package/dist/components/reasoning/Reasoning.d.ts +7 -4
- package/dist/components/reasoning/Reasoning.js +1 -1
- package/dist/components/scatter-chart/ScatterChart.d.ts +7 -1
- package/dist/components/scatter-chart/ScatterChart.js +1 -1
- package/dist/components/scroll-area/ScrollArea.d.ts +12 -0
- package/dist/components/scroll-area/ScrollArea.js +1 -1
- package/dist/components/scroll-zone/ScrollZone.js +1 -1
- package/dist/components/segmented-button/SegmentedButton.js +1 -1
- package/dist/components/select/Select.d.ts +2 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/sidebar/Sidebar.js +1 -1
- package/dist/components/sidebar/SidebarTrigger.js +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/sources/Sources.d.ts +1 -1
- package/dist/components/sources/Sources.js +1 -1
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/streaming-text/StreamingText.js +1 -1
- package/dist/components/switch/Switch.d.ts +13 -2
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/table/Table.d.ts +4 -2
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/text-field/TextField.js +1 -1
- package/dist/components/text-link/TextLink.js +1 -1
- package/dist/components/timeline-chart/TimelineChart.d.ts +6 -1
- package/dist/components/timeline-chart/TimelineChart.js +1 -1
- package/dist/components/toggle/Toggle.js +1 -1
- package/dist/components/tool-call/ToolCall.js +1 -1
- package/dist/components/tour/Tour.js +1 -1
- package/dist/components/transfer/Transfer.js +1 -1
- package/dist/components/tree-select/TreeSelect.js +1 -1
- package/dist/components/tree-view/TreeView.js +1 -1
- package/dist/components/typography/Typography.js +1 -1
- package/dist/components/visually-hidden/VisuallyHidden.d.ts +2 -2
- package/dist/components/window-pane/WindowPane.js +1 -1
- package/dist/hooks/useElementSize.d.ts +6 -2
- package/dist/hooks/useElementSize.js +1 -1
- package/dist/hooks/useMediaQuery.d.ts +3 -2
- package/dist/hooks/useOnScreen.d.ts +2 -2
- package/dist/hooks/useShortcut.d.ts +11 -3
- package/dist/hooks/useShortcut.js +1 -1
- package/dist/internal/animate.d.ts +8 -0
- package/dist/internal/animate.js +1 -1
- package/dist/internal/calendar.js +1 -1
- package/dist/internal/chart-brush.d.ts +3 -1
- package/dist/internal/chart-brush.js +1 -1
- package/dist/internal/chart-frame.d.ts +28 -2
- package/dist/internal/chart-frame.js +1 -1
- package/dist/internal/chart-line.js +1 -1
- package/dist/internal/chart.d.ts +21 -0
- package/dist/internal/chart.js +1 -1
- package/dist/internal/drag.d.ts +15 -0
- package/dist/internal/drag.js +1 -1
- package/dist/internal/drop.d.ts +12 -8
- package/dist/internal/drop.js +1 -1
- package/dist/internal/highlight.js +1 -1
- package/dist/internal/i18n.d.ts +40 -4
- package/dist/internal/i18n.js +1 -1
- package/dist/internal/icons.d.ts +3 -0
- package/dist/internal/icons.js +1 -1
- package/dist/internal/link.d.ts +27 -0
- package/dist/internal/link.js +1 -1
- package/dist/internal/new-tab.d.ts +21 -0
- package/dist/internal/new-tab.js +1 -0
- package/dist/internal/notch.d.ts +23 -1
- package/dist/internal/notch.js +1 -1
- package/dist/internal/observe.d.ts +3 -4
- package/dist/internal/picker.d.ts +21 -3
- package/dist/internal/picker.js +1 -1
- package/dist/internal/run.d.ts +7 -5
- package/dist/internal/run.js +1 -1
- package/dist/internal/search.d.ts +3 -3
- package/dist/internal/styles.d.ts +33 -1
- package/dist/internal/styles.js +1 -1
- package/dist/locales/ar.js +1 -1
- package/dist/locales/de.js +1 -1
- package/dist/locales/es.js +1 -1
- package/dist/locales/fr.js +1 -1
- package/dist/locales/hi.js +1 -1
- package/dist/locales/id.js +1 -1
- package/dist/locales/it.js +1 -1
- package/dist/locales/ja.js +1 -1
- package/dist/locales/ko.js +1 -1
- package/dist/locales/nl.js +1 -1
- package/dist/locales/pl.js +1 -1
- package/dist/locales/pt.js +1 -1
- package/dist/locales/ru.js +1 -1
- package/dist/locales/th.js +1 -1
- package/dist/locales/tr.js +1 -1
- package/dist/locales/vi.js +1 -1
- package/dist/locales/zh-hans.js +1 -1
- package/dist/locales/zh-hant.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +31 -4
- package/package.json +9 -3
package/dist/tailwind.css
CHANGED
|
@@ -1222,13 +1222,21 @@
|
|
|
1222
1222
|
content: attr(data-sample);
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
|
+
/* The same label at the size it rests at, where it starts where the text
|
|
1226
|
+
would and stops short of what is drawn at the end. */
|
|
1227
|
+
.neba-notch-sizer.neba-notch-sizer-rest {
|
|
1228
|
+
font-size: var(--n-rest-size);
|
|
1229
|
+
padding-inline: calc(var(--n-notch-r) + var(--n-notch-gap) + var(--n-rest-x))
|
|
1230
|
+
calc(var(--n-notch-r) + var(--n-notch-gap) + var(--n-rest-end, 0px));
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1225
1233
|
.neba-notch {
|
|
1226
1234
|
position: absolute;
|
|
1227
1235
|
inset: var(--n-notch-inset, 0);
|
|
1228
1236
|
display: grid;
|
|
1229
1237
|
grid-template-columns:
|
|
1230
1238
|
var(--n-notch-r)
|
|
1231
|
-
fit-content(calc(100% - 2 * var(--n-notch-r)))
|
|
1239
|
+
fit-content(calc(100% - 2 * var(--n-notch-r) - var(--n-label-less, 0px)))
|
|
1232
1240
|
minmax(var(--n-notch-r), 1fr);
|
|
1233
1241
|
grid-template-rows: 100%;
|
|
1234
1242
|
border-radius: inherit;
|
|
@@ -1406,6 +1414,9 @@
|
|
|
1406
1414
|
--n-label-size: var(--n-rest-size);
|
|
1407
1415
|
--n-label-leading: var(--n-rest-leading);
|
|
1408
1416
|
--n-label-ink: var(--neba-muted-fg);
|
|
1417
|
+
/* The label is moved along by where the text starts, and must stop where
|
|
1418
|
+
the end adornments begin, so its column gives up both. */
|
|
1419
|
+
--n-label-less: calc(var(--n-rest-x) + var(--n-rest-end, 0px));
|
|
1409
1420
|
--n-gap-line: var(--n-notch-line, transparent);
|
|
1410
1421
|
--n-gap-top: var(--n-notch-top, transparent);
|
|
1411
1422
|
}
|
|
@@ -1485,6 +1496,22 @@
|
|
|
1485
1496
|
.neba-switch.neba-switch[data-checked] .neba-switch-thumb {
|
|
1486
1497
|
background-color: HighlightText;
|
|
1487
1498
|
}
|
|
1499
|
+
|
|
1500
|
+
/* The chosen option of a set, which said so only in a fill. A radio's dot
|
|
1501
|
+
is mounted only while its option is chosen. */
|
|
1502
|
+
.neba-radio-dot.neba-radio-dot {
|
|
1503
|
+
forced-color-adjust: none;
|
|
1504
|
+
background-color: Highlight;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
.neba-segment.neba-segment[data-checked]:not([data-disabled]),
|
|
1508
|
+
.neba-toggle.neba-toggle[data-pressed]:not([data-disabled]),
|
|
1509
|
+
.neba-calendar-cell.neba-calendar-cell[aria-selected='true']:not([aria-disabled]),
|
|
1510
|
+
.neba-nav-item.neba-nav-item[aria-current='page'] {
|
|
1511
|
+
forced-color-adjust: none;
|
|
1512
|
+
background-color: Highlight;
|
|
1513
|
+
color: HighlightText;
|
|
1514
|
+
}
|
|
1488
1515
|
}
|
|
1489
1516
|
}
|
|
1490
1517
|
|
|
@@ -2714,10 +2741,10 @@
|
|
|
2714
2741
|
*
|
|
2715
2742
|
* The whole set is built on one idea. An effect is a single `@keyframes` that
|
|
2716
2743
|
* runs from a state written entirely in `--n-anim-*` custom properties to the
|
|
2717
|
-
* element's natural one — so `src/internal/animate.
|
|
2744
|
+
* element's natural one — so `src/internal/animate.tsx` never generates CSS, it
|
|
2718
2745
|
* only fills slots, and running an effect backwards is `animation-direction:
|
|
2719
2746
|
* reverse` rather than a second keyframe. That is what makes `mode="out"` cost
|
|
2720
|
-
* nothing on
|
|
2747
|
+
* nothing on any of them.
|
|
2721
2748
|
*
|
|
2722
2749
|
* `fill-mode` is `both` throughout, which is what lets an animation that has
|
|
2723
2750
|
* not been triggered yet simply sit paused on its own first frame. Without it,
|
|
@@ -2761,7 +2788,7 @@
|
|
|
2761
2788
|
}
|
|
2762
2789
|
|
|
2763
2790
|
/*
|
|
2764
|
-
* The same
|
|
2791
|
+
* The same effects, driven by where the element is rather than by when.
|
|
2765
2792
|
*
|
|
2766
2793
|
* Two declarations and nothing else, which is the whole reason this is a prop
|
|
2767
2794
|
* and not a component: every keyframe already runs from a start state to the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neba",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.1",
|
|
4
4
|
"description": "A comprehensive React UI component library — buttons, fields, menus, dialogs, tables and much more — accessible and themeable, sharing one prop vocabulary and a translucent acrylic design language. ESM only, types included, dark mode built in.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
22
22
|
"build": "npm run clean && npm run format:fix && tsc --project tsconfig.prod.json && node scripts/annotate-pure.mjs && npm run minify && node scripts/build-styles.mjs && node scripts/build-catalog.mjs",
|
|
23
|
-
"lint": "eslint . --report-unused-disable-directives",
|
|
23
|
+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
24
24
|
"lint:fix": "eslint . --report-unused-disable-directives --fix",
|
|
25
25
|
"minify": "node scripts/minify.mjs",
|
|
26
26
|
"size": "node scripts/measure-bundle.mjs",
|
|
@@ -39,7 +39,13 @@
|
|
|
39
39
|
"docs:catalog": "node scripts/build-catalog.mjs --docs"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=18.
|
|
42
|
+
"node": ">=18.20.0"
|
|
43
|
+
},
|
|
44
|
+
"devEngines": {
|
|
45
|
+
"runtime": {
|
|
46
|
+
"name": "node",
|
|
47
|
+
"version": ">=22.12.0"
|
|
48
|
+
}
|
|
43
49
|
},
|
|
44
50
|
"main": "dist/index.js",
|
|
45
51
|
"exports": {
|