neba 1.9.0 → 1.11.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/README.md +35 -5
- package/dist/components/accordion/Accordion.js +1 -1
- package/dist/components/alert/Alert.js +1 -1
- package/dist/components/anchor/Anchor.js +1 -1
- package/dist/components/animate-lighting/AnimateLighting.js +1 -1
- package/dist/components/app-logo/AppLogo.js +1 -1
- package/dist/components/aspect-ratio/AspectRatio.js +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar-group/AvatarGroup.js +1 -1
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/bar-chart/BarChart.d.ts +1 -1
- package/dist/components/bar-chart/BarChart.js +1 -1
- package/dist/components/blockquote/Blockquote.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.js +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button-group/ButtonGroup.js +1 -1
- package/dist/components/calendar/Calendar.d.ts +72 -0
- package/dist/components/calendar/Calendar.js +1 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/card/Card.js +1 -1
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/chat-bubble/ChatBubble.js +1 -1
- package/dist/components/checkbox/Checkbox.d.ts +13 -1
- package/dist/components/checkbox/Checkbox.js +1 -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.js +1 -1
- package/dist/components/combobox/Combobox.d.ts +29 -2
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/command-palette/CommandPalette.d.ts +19 -2
- package/dist/components/command-palette/CommandPalette.js +1 -1
- package/dist/components/confirm/Confirm.d.ts +83 -0
- package/dist/components/confirm/Confirm.js +1 -0
- package/dist/components/confirm/index.d.ts +2 -0
- package/dist/components/confirm/index.js +1 -0
- package/dist/components/container/Container.js +1 -1
- package/dist/components/data-list/DataList.js +1 -1
- package/dist/components/data-table/DataTable.d.ts +104 -1
- package/dist/components/data-table/DataTable.js +1 -1
- package/dist/components/date-picker/DatePicker.d.ts +40 -8
- package/dist/components/date-picker/DatePicker.js +1 -1
- package/dist/components/date-range-picker/DateRangePicker.js +1 -1
- package/dist/components/date-time-picker/DateTimePicker.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +19 -2
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/file-picker/FilePicker.js +1 -1
- package/dist/components/floating-action-button/FloatingActionButton.js +1 -1
- package/dist/components/floating-bottom-navigation/FloatingBottomNavigation.js +1 -1
- package/dist/components/footer/Footer.js +1 -1
- package/dist/components/gauge-chart/GaugeChart.d.ts +1 -1
- package/dist/components/gauge-chart/GaugeChart.js +1 -1
- package/dist/components/grid-container/GridContainer.js +1 -1
- package/dist/components/header/Header.js +1 -1
- package/dist/components/heatmap-chart/HeatmapChart.d.ts +1 -1
- package/dist/components/heatmap-chart/HeatmapChart.js +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +1 -1
- package/dist/components/how-to-steps/HowToSteps.js +1 -1
- package/dist/components/image/Image.d.ts +70 -0
- package/dist/components/image/Image.js +1 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/list/List.js +1 -1
- package/dist/components/menubar/Menubar.js +1 -1
- package/dist/components/meter/Meter.js +1 -1
- package/dist/components/mockup/Mockup.js +1 -1
- package/dist/components/number-field/NumberField.d.ts +27 -2
- package/dist/components/number-field/NumberField.js +1 -1
- package/dist/components/otp-field/OtpField.js +1 -1
- package/dist/components/overlay/Overlay.d.ts +1 -1
- package/dist/components/overlay/Overlay.js +1 -1
- package/dist/components/page-layout/PageLayout.js +1 -1
- package/dist/components/pagination/Pagination.js +1 -1
- package/dist/components/panes/Panes.js +1 -1
- package/dist/components/pie-chart/PieChart.d.ts +1 -1
- package/dist/components/pie-chart/PieChart.js +1 -1
- package/dist/components/pill/Pill.js +1 -1
- package/dist/components/popconfirm/Popconfirm.d.ts +71 -0
- package/dist/components/popconfirm/Popconfirm.js +1 -0
- package/dist/components/popconfirm/index.d.ts +2 -0
- package/dist/components/popconfirm/index.js +1 -0
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/portal/Portal.d.ts +48 -0
- package/dist/components/portal/Portal.js +1 -0
- package/dist/components/portal/index.d.ts +2 -0
- package/dist/components/portal/index.js +1 -0
- package/dist/components/progress-box/ProgressBox.js +1 -1
- package/dist/components/progress-circular/ProgressCircular.js +1 -1
- package/dist/components/progress-linear/ProgressLinear.js +1 -1
- package/dist/components/provider/NebaProvider.d.ts +99 -0
- package/dist/components/provider/NebaProvider.js +1 -0
- package/dist/components/provider/index.d.ts +3 -0
- package/dist/components/provider/index.js +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +22 -1
- package/dist/components/radio-group/RadioGroup.js +1 -1
- package/dist/components/rating/Rating.js +1 -1
- package/dist/components/scatter-chart/ScatterChart.d.ts +1 -1
- package/dist/components/scatter-chart/ScatterChart.js +1 -1
- package/dist/components/scroll-area/ScrollArea.js +1 -1
- package/dist/components/scroll-zone/ScrollZone.js +1 -1
- package/dist/components/select/Select.d.ts +16 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/shortcut/Shortcut.d.ts +2 -1
- package/dist/components/shortcut/Shortcut.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/slider/Slider.js +1 -1
- package/dist/components/sparkline/Sparkline.js +1 -1
- package/dist/components/spoiler/Spoiler.js +1 -1
- package/dist/components/statistic/Statistic.js +1 -1
- package/dist/components/switch/Switch.d.ts +13 -1
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/Table.d.ts +21 -2
- package/dist/components/table/Table.js +1 -1
- package/dist/components/text-field/TextField.d.ts +27 -1
- package/dist/components/text-field/TextField.js +1 -1
- package/dist/components/text-link/TextLink.js +1 -1
- package/dist/components/time-picker/TimePicker.js +1 -1
- package/dist/components/timeline-chart/TimelineChart.d.ts +1 -1
- package/dist/components/timeline-chart/TimelineChart.js +1 -1
- package/dist/components/toast/Toast.d.ts +17 -2
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toggle/Toggle.js +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +1 -1
- package/dist/components/toolbar/Toolbar.js +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +1 -1
- package/dist/components/tour/Tour.d.ts +17 -2
- package/dist/components/tour/Tour.js +1 -1
- package/dist/components/transfer/Transfer.js +1 -1
- package/dist/components/tree-select/TreeSelect.d.ts +88 -0
- package/dist/components/tree-select/TreeSelect.js +1 -0
- package/dist/components/tree-select/index.d.ts +2 -0
- package/dist/components/tree-select/index.js +1 -0
- package/dist/components/tree-view/TreeView.js +1 -1
- package/dist/components/visually-hidden/VisuallyHidden.d.ts +37 -0
- package/dist/components/visually-hidden/VisuallyHidden.js +1 -0
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/index.js +1 -0
- package/dist/components/window-pane/WindowPane.js +1 -1
- package/dist/hooks/index.d.ts +10 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useDisclosure.d.ts +21 -0
- package/dist/hooks/useDisclosure.js +1 -0
- package/dist/hooks/useElementSize.d.ts +23 -0
- package/dist/hooks/useElementSize.js +1 -0
- package/dist/hooks/useMediaQuery.d.ts +27 -0
- package/dist/hooks/useMediaQuery.js +1 -0
- package/dist/hooks/useOnScreen.d.ts +24 -0
- package/dist/hooks/useOnScreen.js +1 -0
- package/dist/hooks/useShortcut.d.ts +34 -0
- package/dist/hooks/useShortcut.js +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/internal/calendar.d.ts +31 -5
- package/dist/internal/calendar.js +1 -1
- package/dist/internal/csv.d.ts +40 -0
- package/dist/internal/csv.js +1 -0
- package/dist/internal/date.d.ts +39 -1
- package/dist/internal/date.js +1 -1
- package/dist/internal/defaults.d.ts +46 -0
- package/dist/internal/defaults.js +1 -0
- package/dist/internal/i18n.d.ts +23 -0
- package/dist/internal/i18n.js +1 -1
- package/dist/internal/keys.d.ts +92 -0
- package/dist/internal/keys.js +1 -0
- package/dist/internal/media.d.ts +27 -0
- package/dist/internal/media.js +1 -1
- package/dist/internal/page-layout.d.ts +7 -0
- package/dist/internal/page-layout.js +1 -1
- package/dist/internal/picker.d.ts +7 -1
- package/dist/internal/picker.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/types.d.ts +73 -0
- package/package.json +6 -1
package/dist/internal/date.d.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* like a question is actually a command. Each function here copies first, so a
|
|
19
19
|
* `value` handed in by a caller is never the object that comes back out.
|
|
20
20
|
*/
|
|
21
|
-
import type { NebaWeekday } from '../types.js';
|
|
21
|
+
import type { NebaDateGranularity, NebaWeekday } from '../types.js';
|
|
22
22
|
/** Which unit the calendar is currently letting you pick. */
|
|
23
23
|
export type CalendarView = 'day' | 'month' | 'year';
|
|
24
24
|
/** How many years one page of the year grid holds. Four columns of three. */
|
|
@@ -39,6 +39,21 @@ export declare function isValidDate(value: unknown): value is Date;
|
|
|
39
39
|
export declare function startOfDay(date: Date): Date;
|
|
40
40
|
/** The first day of the month this date is in, at midnight. */
|
|
41
41
|
export declare function startOfMonth(date: Date): Date;
|
|
42
|
+
/** The first day of the year this date is in, at midnight. */
|
|
43
|
+
export declare function startOfYear(date: Date): Date;
|
|
44
|
+
/**
|
|
45
|
+
* The first instant of the unit this date falls in — the day, the month, the
|
|
46
|
+
* year — which is exactly what a picker of that granularity reports.
|
|
47
|
+
*
|
|
48
|
+
* One function rather than a branch at each call site because there are four:
|
|
49
|
+
* the cell that was clicked, the footer's shortcut, the bound checks below, and
|
|
50
|
+
* the caller's own `shouldDisableDate`. All four have to agree on what "the
|
|
51
|
+
* value stands for a whole month" means, or a month is blocked on the strength
|
|
52
|
+
* of a day the picker would never hand back.
|
|
53
|
+
*/
|
|
54
|
+
export declare function startOfUnit(date: Date, granularity: NebaDateGranularity): Date;
|
|
55
|
+
/** The last day of that same unit. */
|
|
56
|
+
export declare function endOfUnit(date: Date, granularity: NebaDateGranularity): Date;
|
|
42
57
|
/** How many days a month has, leap years included. */
|
|
43
58
|
export declare function daysInMonth(year: number, month: number): number;
|
|
44
59
|
/** Today, at midnight. The one place the pickers read the clock for a *date*. */
|
|
@@ -70,6 +85,19 @@ export declare function clampDate(date: Date, min?: Date | null, max?: Date | nu
|
|
|
70
85
|
* hour has been chosen.
|
|
71
86
|
*/
|
|
72
87
|
export declare function isDayOutside(date: Date, min?: Date | null, max?: Date | null): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Is the *whole unit* this date falls in outside the allowed span?
|
|
90
|
+
*
|
|
91
|
+
* The generalisation of `isDayOutside`, and the reason it is a separate
|
|
92
|
+
* function rather than a wider one: a bound has to be checked against the span
|
|
93
|
+
* a cell stands for, not against one instant inside it. The month grid has
|
|
94
|
+
* always said so — a `minDate` of 15 March leaves March pickable, it just
|
|
95
|
+
* starts late — and a picker whose granularity is `month` reports March for
|
|
96
|
+
* that cell, so the same comparison has to decide both.
|
|
97
|
+
*
|
|
98
|
+
* At `day` granularity this is `isDayOutside` exactly.
|
|
99
|
+
*/
|
|
100
|
+
export declare function isUnitOutside(date: Date, granularity: NebaDateGranularity, min?: Date | null, max?: Date | null): boolean;
|
|
73
101
|
/** Minutes since local midnight — what `minTime`/`maxTime` are compared on. */
|
|
74
102
|
export declare function minutesOfDay(date: Date): number;
|
|
75
103
|
/** Seconds since local midnight, for the pickers that show a seconds column. */
|
|
@@ -137,6 +165,16 @@ export declare function withPlaceholder(samples: string[], placeholder: unknown)
|
|
|
137
165
|
* server that already parses those needs no new code.
|
|
138
166
|
*/
|
|
139
167
|
export declare function toISODate(date: Date): string;
|
|
168
|
+
/**
|
|
169
|
+
* The same date at a coarser granularity: `2026-03` and `2026`.
|
|
170
|
+
*
|
|
171
|
+
* `YYYY-MM` is what a native `<input type="month">` submits, which is the
|
|
172
|
+
* standard this file already follows. A picker asked for a month has to say
|
|
173
|
+
* `2026-03` rather than `2026-03-01`: the second invents a day, and a server
|
|
174
|
+
* parsing it as one would be parsing a day nobody chose.
|
|
175
|
+
*/
|
|
176
|
+
export declare function toISOMonth(date: Date): string;
|
|
177
|
+
export declare function toISOYear(date: Date): string;
|
|
140
178
|
export declare function toISOTime(date: Date, withSeconds?: boolean): string;
|
|
141
179
|
export declare function toISODateTime(date: Date, withSeconds?: boolean): string;
|
|
142
180
|
/**
|
package/dist/internal/date.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dateFormatter as t}from"./format.js";export const YEAR_PAGE_SIZE=12;export function makeDate(t,e,
|
|
1
|
+
import{dateFormatter as t}from"./format.js";export const YEAR_PAGE_SIZE=12;export function makeDate(t,e,r){const n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0,0),n}export function isValidDate(t){return t instanceof Date&&!Number.isNaN(t.getTime())}export function startOfDay(t){const e=new Date(t.getTime());return e.setHours(0,0,0,0),e}export function startOfMonth(t){return makeDate(t.getFullYear(),t.getMonth(),1)}export function startOfYear(t){return makeDate(t.getFullYear(),0,1)}export function startOfUnit(t,e){return"year"===e?startOfYear(t):"month"===e?startOfMonth(t):startOfDay(t)}export function endOfUnit(t,e){const r=t.getFullYear();return"year"===e?makeDate(r,11,31):"month"===e?makeDate(r,t.getMonth(),daysInMonth(r,t.getMonth())):startOfDay(t)}export function daysInMonth(t,e){return makeDate(t,e+1,0).getDate()}export function today(){return startOfDay(new Date)}export function addDays(t,e){const r=new Date(t.getTime());return r.setDate(r.getDate()+e),r}export function addMonths(t,e){const r=t.getFullYear(),n=t.getMonth()+e,o=new Date(t.getTime()),a=makeDate(r,n,1);return o.setFullYear(a.getFullYear(),a.getMonth(),Math.min(t.getDate(),daysInMonth(a.getFullYear(),a.getMonth()))),o}export function addYears(t,e){return addMonths(t,12*e)}export function compareDay(t,e){return startOfDay(t).getTime()-startOfDay(e).getTime()}export function isSameDay(t,e){return isValidDate(t)&&isValidDate(e)&&0===compareDay(t,e)}export function isSameMonth(t,e){return isValidDate(t)&&isValidDate(e)&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}export function isDayInRange(t,e,r){return!(!isValidDate(e)||!isValidDate(r))&&(compareDay(t,e)>0&&compareDay(t,r)<0)}export function clampDate(t,e,r){return isValidDate(e)&&t.getTime()<e.getTime()?new Date(e.getTime()):isValidDate(r)&&t.getTime()>r.getTime()?new Date(r.getTime()):t}export function isDayOutside(t,e,r){return!!(isValidDate(e)&&compareDay(t,e)<0)||isValidDate(r)&&compareDay(t,r)>0}export function isUnitOutside(t,e,r,n){return!!(isValidDate(r)&&compareDay(endOfUnit(t,e),r)<0)||isValidDate(n)&&compareDay(startOfUnit(t,e),n)>0}export function minutesOfDay(t){return 60*t.getHours()+t.getMinutes()}export function secondsOfDay(t){return 3600*t.getHours()+60*t.getMinutes()+t.getSeconds()}export function timeUnitSpan(t,e){const r=secondsOfDay(e);if("hour"===t){const t=3600*Math.floor(r/3600);return[t,t+3599]}if("minute"===t){const t=60*Math.floor(r/60);return[t,t+59]}if("second"===t)return[r,r];const n=e.getHours()<12?0:43200;return[n,n+43200-1]}export function withTime(t,e){const r=new Date(t.getTime());return r.setHours(e.hours??r.getHours(),e.minutes??r.getMinutes(),e.seconds??r.getSeconds(),0),r}export function mergeDateAndTime(t,e){return withTime(startOfDay(t),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()})}export function calendarWeeks(t,e){const r=startOfMonth(t),n=(r.getDay()-e+7)%7,o=addDays(r,-n);return Array.from({length:6},(t,e)=>Array.from({length:7},(t,r)=>addDays(o,7*e+r)))}export function yearPageStart(t){return t-(t%12+12)%12}export function formatDate(e,r,n){return isValidDate(e)?t(r,n).format(e):""}const e=Array.from({length:24},(t,e)=>new Date(2027,e%12,21+e%7,e,58,58));export function displaySamples(r,n){const o=t(r,n);return[...new Set(e.map(t=>o.format(t)))]}export function withPlaceholder(t,e){return"string"==typeof e&&""!==e?[...t,e]:t}export function toISODate(t){const e=t=>String(t).padStart(2,"0");return`${String(t.getFullYear()).padStart(4,"0")}-${e(t.getMonth()+1)}-${e(t.getDate())}`}export function toISOMonth(t){return`${String(t.getFullYear()).padStart(4,"0")}-${String(t.getMonth()+1).padStart(2,"0")}`}export function toISOYear(t){return String(t.getFullYear()).padStart(4,"0")}export function toISOTime(t,e=!1){const r=t=>String(t).padStart(2,"0"),n=`${r(t.getHours())}:${r(t.getMinutes())}`;return e?`${n}:${r(t.getSeconds())}`:n}export function toISODateTime(t,e=!1){return`${toISODate(t)}T${toISOTime(t,e)}`}const r=makeDate(2021,7,1);export function weekdayLabels(e,n,o="short"){const a=t(e,{weekday:o});return Array.from({length:7},(t,e)=>a.format(addDays(r,(n+e)%7)))}export function monthLabels(e,r="short"){const n=t(e,{month:r});return Array.from({length:12},(t,e)=>n.format(makeDate(2021,e,1)))}export function isMonthBeforeYear(e){const n=t(e,{year:"numeric",month:"long"}).formatToParts(r);return n.findIndex(t=>"month"===t.type)<n.findIndex(t=>"year"===t.type)}export function isHour12(e){const r=t(e,{hour:"numeric"}).resolvedOptions();return r.hourCycle?"h11"===r.hourCycle||"h12"===r.hourCycle:!0===r.hour12}export function meridiemLabels(e){const n=t(e,{hour:"numeric",hour12:!0}),o=t=>{const e=n.formatToParts(withTime(r,{hours:t})).find(t=>"dayPeriod"===t.type);return e?.value??(t<12?"AM":"PM")};return[o(9),o(21)]}export function localeWeekStart(t){try{const e=t??(new Intl.DateTimeFormat).resolvedOptions().locale,r=new Intl.Locale(e),n="function"==typeof r.getWeekInfo?r.getWeekInfo():r.weekInfo;if("number"==typeof n?.firstDay)return n.firstDay%7}catch{}return 0}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { NebaDensity, NebaSize, NebaVariant } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The prop values an application can set once instead of at every call site.
|
|
5
|
+
*
|
|
6
|
+
* Four, and the list is closed on purpose. These are the axes whose right value
|
|
7
|
+
* is a property of the *product* rather than of the control — a dense
|
|
8
|
+
* application is dense everywhere, and a Korean one is Korean everywhere.
|
|
9
|
+
*
|
|
10
|
+
* `color` is deliberately not among them. A component's colour default is often
|
|
11
|
+
* semantic — an Alert is `info`, a Popconfirm is `danger`, severity carries
|
|
12
|
+
* meaning — and one global override would silently repaint those into
|
|
13
|
+
* something that means something else. `elevation` is out for the design
|
|
14
|
+
* language's reason: a shadow is opt-in, per surface, and an application-wide
|
|
15
|
+
* one is the moulded-plastic look the whole thing is against.
|
|
16
|
+
*/
|
|
17
|
+
export interface NebaDefaults {
|
|
18
|
+
size?: NebaSize;
|
|
19
|
+
density?: NebaDensity;
|
|
20
|
+
variant?: NebaVariant;
|
|
21
|
+
/** BCP 47 tag for every component that says a word on its own behalf. */
|
|
22
|
+
locale?: string;
|
|
23
|
+
}
|
|
24
|
+
/** Which of the four a given component actually accepts. */
|
|
25
|
+
export type DefaultableKey = keyof NebaDefaults;
|
|
26
|
+
/**
|
|
27
|
+
* `null` when there is no provider, which is the common case and the one worth
|
|
28
|
+
* making free: `useStyleDefaults` hands the props straight back without
|
|
29
|
+
* allocating, so a page with no provider pays a `useContext` and nothing else.
|
|
30
|
+
*/
|
|
31
|
+
export declare const DefaultsContext: React.Context<NebaDefaults | null>;
|
|
32
|
+
/**
|
|
33
|
+
* Fills in the axes the caller left out, from the provider above.
|
|
34
|
+
*
|
|
35
|
+
* Called by every component that takes one of them, with the props it was
|
|
36
|
+
* given, *before* its own destructuring runs — so the order of precedence is
|
|
37
|
+
* the one a reader expects: the call site, then the provider, then the
|
|
38
|
+
* component's own literal default.
|
|
39
|
+
*
|
|
40
|
+
* The keys are passed in rather than worked out, and that is load-bearing. A
|
|
41
|
+
* key a component does not destructure stays in the props it spreads onto its
|
|
42
|
+
* root, so filling `density` into a component that has none would put
|
|
43
|
+
* `density="compact"` on a `<div>` — and `size` on an `<input>` is a real
|
|
44
|
+
* attribute that would quietly resize the field.
|
|
45
|
+
*/
|
|
46
|
+
export declare function useStyleDefaults<P extends object>(props: P, keys: DefaultableKey[]): P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import*as t from"react";export const DefaultsContext=/*@__PURE__*/t.createContext(null);export function useStyleDefaults(e,o){const n=t.useContext(DefaultsContext);if(!n)return e;const s=e;let r=null;for(const t of o){const e=n[t];void 0!==e&&void 0===s[t]&&(r=r??{...s},r[t]=e)}return r??s}
|
package/dist/internal/i18n.d.ts
CHANGED
|
@@ -78,6 +78,25 @@ export interface ActionMessages {
|
|
|
78
78
|
}
|
|
79
79
|
/** The `action` namespace, as Alert, Chip, Combobox, Dialog, Drawer, Popover and Toast read it. */
|
|
80
80
|
export declare const actionMessages: MessageTable<ActionMessages>;
|
|
81
|
+
/** ConfirmProvider. */
|
|
82
|
+
export interface ConfirmMessages {
|
|
83
|
+
/** The button that answers yes. */
|
|
84
|
+
confirm: string;
|
|
85
|
+
/**
|
|
86
|
+
* And the one that answers no — which is also what Escape and a click on the
|
|
87
|
+
* backdrop mean, so it is the label on the way out rather than a third option.
|
|
88
|
+
*/
|
|
89
|
+
cancel: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The `confirm` namespace.
|
|
93
|
+
*
|
|
94
|
+
* Its own rather than two more keys on `action`, which holds the words on four
|
|
95
|
+
* different × buttons. A confirm's two buttons are a question being answered,
|
|
96
|
+
* not a thing being dismissed, and a namespace a Chip pulls in for the word
|
|
97
|
+
* "Remove" should not also carry them.
|
|
98
|
+
*/
|
|
99
|
+
export declare const confirmMessages: MessageTable<ConfirmMessages>;
|
|
81
100
|
/** TextLink. */
|
|
82
101
|
export interface LinkMessages {
|
|
83
102
|
/**
|
|
@@ -160,6 +179,8 @@ export interface TableMessages {
|
|
|
160
179
|
* same nothing to report and no chrome of its own to say it with.
|
|
161
180
|
*/
|
|
162
181
|
empty: string;
|
|
182
|
+
/** The button that writes what is on screen out as a file. */
|
|
183
|
+
exportCsv: string;
|
|
163
184
|
}
|
|
164
185
|
/** The `table` namespace, as Table and DataTable read it. */
|
|
165
186
|
export declare const tableMessages: MessageTable<TableMessages>;
|
|
@@ -546,6 +567,8 @@ export interface NebaLocale {
|
|
|
546
567
|
code?: Partial<CodeMessages>;
|
|
547
568
|
/** Steps. */
|
|
548
569
|
steps?: Partial<StepsMessages>;
|
|
570
|
+
/** Confirm. */
|
|
571
|
+
confirm?: Partial<ConfirmMessages>;
|
|
549
572
|
}
|
|
550
573
|
/**
|
|
551
574
|
* Teaches the library a language.
|
package/dist/internal/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";export function fill(e,s){return e.replace(/\{(\w+)\}/g,(e,
|
|
1
|
+
import*as e from"react";export function fill(e,s){return e.replace(/\{(\w+)\}/g,(e,o)=>s[o]??e)}export const actionMessages={"":{close:"Close",dismiss:"Dismiss",clear:"Clear",remove:"Remove"}};export const confirmMessages={"":{confirm:"Confirm",cancel:"Cancel"}};export const linkMessages={"":{newTab:"(opens in a new tab)"}};export const spoilerMessages={"":{reveal:"Reveal",hide:"Hide",notice:"This may contain spoilers"}};export const chatMessages={"":{sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",failed:"Not sent",typing:"Typing…"}};export const emptyMessages={"":{title:"Nothing here"}};export const tableMessages={"":{search:"Search",selectAll:"Select all rows",selectRow:"Select row",rowsPerPage:"Rows per page",range:"{start}–{end} of {total}",selected:"{count} selected",empty:"No data",exportCsv:"Export CSV"}};export const colorMessages={"":{area:"Saturation and brightness",hue:"Hue",alpha:"Opacity",value:"Colour value",swatches:"Preset colours",clear:"Clear",empty:"Choose a colour"}};export const ratingMessages={"":{label:"Rating",value:"{value} out of {max}",empty:"No rating"}};export const numberMessages={"":{increase:"Increase",decrease:"Decrease"}};export const paginationMessages={"":{label:"Pagination",page:"Page {page}",status:"Page {page} of {total}",previous:"Previous page",next:"Next page",first:"First page",last:"Last page"}};export const carouselMessages={"":{label:"Carousel",slide:"Slide {index} of {total}",previous:"Previous slide",next:"Next slide"}};export const chartMessages={"":{label:"Chart"}};export const scrollMessages={"":{label:"Scrollable content",previous:"Scroll back",next:"Scroll forward"}};export const breadcrumbMessages={"":{label:"Breadcrumb",expand:"Show hidden steps"}};export const commandMessages={"":{label:"Command palette",search:"Type a command or search…",empty:"No commands found"}};export const transferMessages={"":{source:"Available",target:"Selected",toTarget:"Move to selected",toSource:"Move to available",search:"Search",selectAll:"Select all",empty:"Nothing here"}};export const anchorMessages={"":{label:"On this page"}};export const comboboxMessages={"":{empty:"No matches",remove:"Remove {label}"}};export const overlayMessages={"":{label:"Overlay"}};export const windowMessages={"":{minimize:"Minimize",maximize:"Maximize",restore:"Restore",resize:"Resize window"}};export const layoutMessages={"":{skipToContent:"Skip to content",sidebar:"Sidebar",openSidebar:"Open sidebar",closeSidebar:"Close sidebar",resizeSidebar:"Resize sidebar"}};export const codeMessages={"":{code:"Code",copy:"Copy",copied:"Copied",copyFailed:"Could not copy",raw:"Raw",prompt:"Prompt"}};export const stepsMessages={"":{previous:"Previous",next:"Next",done:"Done",skip:"Skip",restart:"Start over",completed:"All steps complete",steps:"Steps",position:"{index} of {total}",step:"Step {index}: {title}"}};const s={zh:"zh-hans","zh-cn":"zh-hans","zh-my":"zh-hans","zh-sg":"zh-hans","zh-hk":"zh-hant","zh-mo":"zh-hant","zh-tw":"zh-hant"};const o=new WeakMap;export function resolveMessages(e,t){const a=e[""],r=t?.trim()??"";if(!r)return a;let n=o.get(e);n||(n=new Map,o.set(e,n));const c=n.get(r);if(c)return c;const l=function(e){const s=e.toLowerCase().split(/[-_]/).filter(Boolean),o=s[0];if(!o)return[];const t=s.slice(1),a=t.find(e=>/^[a-z]{4}$/.test(e)),r=t.find(e=>/^([a-z]{2}|\d{3})$/.test(e));return[a?`${o}-${a}`:"",r?`${o}-${r}`:"",o].filter(Boolean)}(r).map(o=>{const t=s[o];return e[o]??(t?e[t]:void 0)}).find(Boolean),i=l?{...a,...l}:a;return n.set(r,i),i}export function useMessages(s,o){return e.useMemo(()=>resolveMessages(s,o),[s,o])}export function fillMessage(e,s){return e.replace(/\{(\w+)\}/g,(e,o)=>s[o]??e)}const t={action:actionMessages,confirm:confirmMessages,link:linkMessages,spoiler:spoilerMessages,chat:chatMessages,empty:emptyMessages,table:tableMessages,color:colorMessages,rating:ratingMessages,number:numberMessages,pagination:paginationMessages,carousel:carouselMessages,chart:chartMessages,scroll:scrollMessages,breadcrumb:breadcrumbMessages,anchor:anchorMessages,transfer:transferMessages,command:commandMessages,combobox:comboboxMessages,overlay:overlayMessages,window:windowMessages,layout:layoutMessages,code:codeMessages,steps:stepsMessages};export function registerMessages(e,s){const a=e.trim().toLowerCase();for(const[e,r]of Object.entries(s)){const s=t[e];s&&r&&(s[a]=r,o.delete(s))}}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A key combination, read rather than drawn.
|
|
3
|
+
*
|
|
4
|
+
* This is in `internal/` for `button-group.ts`'s reason with a sharper edge on
|
|
5
|
+
* it. `Shortcut` *draws* `Mod+K` and `CommandPalette` *binds* it, and the two
|
|
6
|
+
* were written separately — so the drawing side understood `Cmd`, `Command`,
|
|
7
|
+
* `Meta` and `Esc` and the binding side did not. `<Shortcut keys="Cmd+K" />`
|
|
8
|
+
* put a correct key cap on the screen over a shortcut that could never fire,
|
|
9
|
+
* which is the worst shape this bug can take: the label is the only evidence a
|
|
10
|
+
* reader has that the key exists at all.
|
|
11
|
+
*
|
|
12
|
+
* So the split is by job rather than by component. Everything that decides
|
|
13
|
+
* *which key a token means* is here and both sides read it. What a key *looks
|
|
14
|
+
* like* — `⌘`, `⇧`, the arrow glyphs — stays in `Shortcut`, because a TextField
|
|
15
|
+
* that binds `Mod+Enter` has no business carrying a table of Mac glyphs.
|
|
16
|
+
*
|
|
17
|
+
* Nothing here allocates at import time beyond two small object literals, and
|
|
18
|
+
* the platform is worked out once for the page.
|
|
19
|
+
*/
|
|
20
|
+
import type * as React from 'react';
|
|
21
|
+
import type { NebaShortcuts } from '../types.js';
|
|
22
|
+
/** The three platforms a combination can be named for, once `auto` is resolved. */
|
|
23
|
+
export type ResolvedOS = 'mac' | 'windows' | 'linux';
|
|
24
|
+
/**
|
|
25
|
+
* Splits the string form. Empty segments are what `'Ctrl++'` leaves behind, and
|
|
26
|
+
* dropping them is why the array form exists for that case.
|
|
27
|
+
*/
|
|
28
|
+
export declare function tokenize(keys: string | string[]): string[];
|
|
29
|
+
/**
|
|
30
|
+
* One token reduced to the name this file knows it by.
|
|
31
|
+
*
|
|
32
|
+
* It also folds a real `KeyboardEvent.key`, which is what lets the two sides of
|
|
33
|
+
* a comparison meet in the middle: a caller writes `Esc` and the browser
|
|
34
|
+
* reports `Escape`, and both arrive here as `escape`. The space bar is the one
|
|
35
|
+
* key whose `key` is punctuation, so it is named before the punctuation is
|
|
36
|
+
* stripped.
|
|
37
|
+
*/
|
|
38
|
+
export declare function canonicalKey(token: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* What the browser says it is running on.
|
|
41
|
+
*
|
|
42
|
+
* `userAgentData.platform` is the modern spelling and `navigator.platform` the
|
|
43
|
+
* deprecated one every browser still answers; the user agent string is the last
|
|
44
|
+
* resort, and *last resort* is the load-bearing word. The three are asked in
|
|
45
|
+
* order and the first that says anything at all is the answer — never all three
|
|
46
|
+
* matched at once, which is what this used to do.
|
|
47
|
+
*
|
|
48
|
+
* A union of the three can only ever be wrong in one direction: towards `mac`.
|
|
49
|
+
* A WebKit build on Linux or Windows reports its own platform and a *Safari on
|
|
50
|
+
* macOS* user agent string, so a haystack holding both reads as a Mac, and
|
|
51
|
+
* `Mod` then binds Command on a keyboard that has no Command key — with
|
|
52
|
+
* `Shortcut` drawing a ⌘ over it. That is this file's own opening paragraph
|
|
53
|
+
* happening again, one layer down.
|
|
54
|
+
*
|
|
55
|
+
* The rule is a pure function so it can be asserted on directly: the browser
|
|
56
|
+
* this suite runs in only ever reports one of these combinations, and the one
|
|
57
|
+
* that broke is not it.
|
|
58
|
+
*/
|
|
59
|
+
export declare function resolveOS(userAgentDataPlatform: string | undefined, platform: string | undefined, userAgent: string | undefined): ResolvedOS;
|
|
60
|
+
export declare function readOS(): ResolvedOS;
|
|
61
|
+
/**
|
|
62
|
+
* Enough of a keyboard event to decide a combination — so one function serves
|
|
63
|
+
* both a DOM `KeyboardEvent` and React's synthetic one.
|
|
64
|
+
*/
|
|
65
|
+
export interface KeyPress {
|
|
66
|
+
key: string;
|
|
67
|
+
code: string;
|
|
68
|
+
ctrlKey: boolean;
|
|
69
|
+
metaKey: boolean;
|
|
70
|
+
altKey: boolean;
|
|
71
|
+
shiftKey: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Does this keystroke satisfy `Mod+Shift+P`?
|
|
75
|
+
*
|
|
76
|
+
* The modifiers are matched **exactly**, not as a subset: a shortcut names the
|
|
77
|
+
* modifiers it wants, so `Enter` does not fire when `Mod+Enter` was pressed.
|
|
78
|
+
* That is what makes a `shortcuts` map unambiguous — at most one entry can
|
|
79
|
+
* match a keystroke, unless a caller spelled the same combination twice.
|
|
80
|
+
*/
|
|
81
|
+
export declare function matchesShortcut(event: KeyPress, shortcut: string): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The `shortcuts` map and the caller's own `onKeyDown`, as the one handler a
|
|
84
|
+
* control can carry.
|
|
85
|
+
*
|
|
86
|
+
* The map is checked first and every matching entry runs, so a caller who
|
|
87
|
+
* spelled one combination two ways gets both rather than an arbitrary one; then
|
|
88
|
+
* `onKeyDown` runs, and can read `event.defaultPrevented` to see what the map
|
|
89
|
+
* decided. `undefined` when there is nothing to bind, so a field with neither
|
|
90
|
+
* prop attaches no listener at all.
|
|
91
|
+
*/
|
|
92
|
+
export declare function keyHandler<E extends Element>(shortcuts: NebaShortcuts<E> | undefined, onKeyDown?: React.KeyboardEventHandler<E>): React.KeyboardEventHandler<E> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={cmdorctrl:"mod",commandorcontrol:"mod",cmd:"meta",command:"meta",super:"meta",win:"meta",windows:"meta",control:"ctrl",option:"alt",opt:"alt",return:"enter",esc:"escape",del:"delete",caps:"capslock",spacebar:"space",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};export function tokenize(t){return Array.isArray(t)?t.map(t=>t.trim()).filter(Boolean):t.split("+").map(t=>t.trim()).filter(Boolean)}export function canonicalKey(e){if(" "===e)return"space";const r=e.toLowerCase().replace(/[\s_-]/g,"");return t[r]??r}export function resolveOS(t,e,r){const n=t||e||r||"";return/mac|iphone|ipad|ipod/i.test(n)?"mac":/win/i.test(n)?"windows":"linux"}let e=null;export function readOS(){return e??=function(){if("undefined"==typeof navigator)return"windows";const t=navigator.userAgentData;return resolveOS(t?.platform,navigator.platform,navigator.userAgent)}(),e}export function matchesShortcut(t,e){const r=tokenize(e).map(canonicalKey);if(0===r.length)return!1;const n={ctrl:!1,meta:!1,alt:!1,shift:!1},o="mac"===readOS();for(const t of r.slice(0,-1))if("mod"===t)n[o?"meta":"ctrl"]=!0;else{if("meta"!==t&&"ctrl"!==t&&"alt"!==t&&"shift"!==t)return!1;n[t]=!0}return t.ctrlKey===n.ctrl&&t.metaKey===n.meta&&t.altKey===n.alt&&t.shiftKey===n.shift&&function(t,e){if(canonicalKey(t.key)===e)return!0;if(1===e.length){if(e>="a"&&e<="z")return t.code===`Key${e.toUpperCase()}`;if(e>="0"&&e<="9")return t.code===`Digit${e}`}return!1}(t,r[r.length-1])}export function keyHandler(t,e){return t?r=>{for(const[e,n]of Object.entries(t))matchesShortcut(r,e)&&n(r);e?.(r)}:e}
|
package/dist/internal/media.d.ts
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
|
+
import type { NebaBreakpoint } from '../types.js';
|
|
1
2
|
/** Subscribes to one query. A no-op where there is no window to ask. */
|
|
2
3
|
export declare function subscribeToQuery(query: string, onChange: () => void): () => void;
|
|
3
4
|
/** The current answer. Reads a live object rather than building one. */
|
|
4
5
|
export declare function queryMatches(query: string): boolean;
|
|
5
6
|
/** A server has no window, so nothing matches. */
|
|
6
7
|
export declare function noMatchOnServer(): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The five widths, written once and read in both directions.
|
|
10
|
+
*
|
|
11
|
+
* They are Tailwind's own defaults, which is what makes a Neba layout and a
|
|
12
|
+
* `md:` utility change at the same moment — and they are here rather than in
|
|
13
|
+
* `page-layout.ts`, where they used to be, because a layout asks "is the window
|
|
14
|
+
* *narrower* than this" and a caller asks "is it *at least* this". Two
|
|
15
|
+
* questions, one table: a second copy would be a second chance for the two to
|
|
16
|
+
* disagree about what `md` is.
|
|
17
|
+
*/
|
|
18
|
+
export declare const breakpointWidths: Record<NebaBreakpoint, string>;
|
|
19
|
+
/** Narrower than this breakpoint. `xs` has nothing below it, so it is `null`. */
|
|
20
|
+
export declare function widthBelow(breakpoint: NebaBreakpoint): string | null;
|
|
21
|
+
/** At this breakpoint or wider — the direction a Tailwind `md:` variant means. */
|
|
22
|
+
export declare function widthAtLeast(breakpoint: NebaBreakpoint): string;
|
|
23
|
+
/**
|
|
24
|
+
* One media query, as a boolean React can re-render on.
|
|
25
|
+
*
|
|
26
|
+
* `useSyncExternalStore` rather than state plus an effect, for the reason the
|
|
27
|
+
* whole module exists: a media query *is* an external store with a server
|
|
28
|
+
* answer, and reading it in an effect renders every subscriber once with the
|
|
29
|
+
* wrong answer and then again with the right one. `null` is a query that is
|
|
30
|
+
* always false and subscribes to nothing, which is what a breakpoint with
|
|
31
|
+
* nothing below it needs.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useMediaQuery(query: string | null): boolean;
|
|
7
34
|
/** The query behind every "the reader asked for less motion" decision. */
|
|
8
35
|
export declare const reducedMotionQuery = "(prefers-reduced-motion: reduce)";
|
|
9
36
|
/**
|
package/dist/internal/media.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as e from"react";const
|
|
1
|
+
"use client";import*as e from"react";const r=new Map;function t(e){if(r.has(e))return r.get(e)??null;const t="undefined"!=typeof window&&window.matchMedia?window.matchMedia(e):null;return r.set(e,t),t}export function subscribeToQuery(e,r){const n=t(e);return n?(n.addEventListener("change",r),()=>n.removeEventListener("change",r)):()=>{}}export function queryMatches(e){return t(e)?.matches??!1}export function noMatchOnServer(){return!1}export const breakpointWidths={xs:"0rem",sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem"};export function widthBelow(e){return"xs"===e?null:`(width < ${breakpointWidths[e]})`}export function widthAtLeast(e){return`(width >= ${breakpointWidths[e]})`}export function useMediaQuery(r){const t=e.useCallback(e=>r?subscribeToQuery(r,e):()=>{},[r]),n=e.useCallback(()=>!!r&&queryMatches(r),[r]);return e.useSyncExternalStore(t,n,noMatchOnServer)}export const reducedMotionQuery="(prefers-reduced-motion: reduce)";const n=e=>subscribeToQuery(reducedMotionQuery,e),o=()=>queryMatches(reducedMotionQuery);export function usePrefersReducedMotion(){return e.useSyncExternalStore(n,o,noMatchOnServer)}
|
|
@@ -96,6 +96,13 @@ export declare const PageLayoutContext: React.Context<PageLayoutContextValue>;
|
|
|
96
96
|
* "nobody said", which a standalone sidebar reads as `start`.
|
|
97
97
|
*/
|
|
98
98
|
export declare const SidebarSideContext: React.Context<SidebarSide | null>;
|
|
99
|
+
/**
|
|
100
|
+
* The media query each breakpoint's floor makes, written the way `styles.css`
|
|
101
|
+
* writes the grid's.
|
|
102
|
+
*
|
|
103
|
+
* `xs` has no query because its floor is zero: there is no width below it, so
|
|
104
|
+
* a sidebar that collapses there never collapses.
|
|
105
|
+
*/
|
|
99
106
|
/**
|
|
100
107
|
* The same five widths as Tailwind variants, for the parts of this that are
|
|
101
108
|
* decided in CSS rather than in JavaScript.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import*as e from"react";import{
|
|
1
|
+
"use client";import*as e from"react";import{useMediaQuery as t,widthBelow as n}from"./media.js";export const PageLayoutContext=/*@__PURE__*/e.createContext({present:!1,register:()=>{},collapseBelow:"none",open:{start:!1,end:!1},setOpen:()=>{},scroll:"page"});export const SidebarSideContext=/*@__PURE__*/e.createContext(null);export const collapsedOnlyClasses={none:"hidden",xs:"hidden",sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"};export const expandedOnlyClasses={none:"",xs:"",sm:"max-sm:hidden",md:"max-md:hidden",lg:"max-lg:hidden",xl:"max-xl:hidden"};export function useCollapsed(e){return t("none"===e?null:n(e))}export function drawerSide(e){const t="undefined"!=typeof document&&"rtl"===getComputedStyle(document.documentElement).direction;return"start"===e?t?"right":"left":t?"left":"right"}
|
|
@@ -82,6 +82,12 @@ interface InternalShellProps extends PickerShellProps {
|
|
|
82
82
|
}>;
|
|
83
83
|
/** How far off the trigger the popup sits. */
|
|
84
84
|
sideOffset?: number;
|
|
85
|
+
/**
|
|
86
|
+
* A class name for the popup itself, which no `className` can reach: it is
|
|
87
|
+
* portalled to the end of `<body>`, outside the element the root class lands
|
|
88
|
+
* on. Only TreeSelect offers it to a caller so far.
|
|
89
|
+
*/
|
|
90
|
+
popupClassName?: string;
|
|
85
91
|
children: React.ReactNode;
|
|
86
92
|
triggerRef?: React.Ref<HTMLButtonElement>;
|
|
87
93
|
}
|
|
@@ -93,7 +99,7 @@ interface InternalShellProps extends PickerShellProps {
|
|
|
93
99
|
* and the way `invalid` re-points the whole colour family at `danger` so the
|
|
94
100
|
* edge, the ring and the message turn over together.
|
|
95
101
|
*/
|
|
96
|
-
export declare function PickerShell({ variant, size, color, density, elevation, label, description, error, invalid, startIcon, fullWidth, disabled, readOnly, required, id, className, style, display, samples, empty, clearable, onClear, open, onOpenChange, labels, hiddenValues, sideOffset, children, triggerRef, ...props }: InternalShellProps): React.JSX.Element;
|
|
102
|
+
export declare function PickerShell({ variant, size, color, density, elevation, label, description, error, invalid, startIcon, fullWidth, disabled, readOnly, required, id, className, style, display, samples, empty, clearable, onClear, open, onOpenChange, labels, hiddenValues, sideOffset, popupClassName, children, triggerRef, ...props }: InternalShellProps): React.JSX.Element;
|
|
97
103
|
/**
|
|
98
104
|
* The row of shortcuts under a picker's panel.
|
|
99
105
|
*
|
package/dist/internal/picker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import*as n from"react";import{Field as i}from"@base-ui/react/field";import{Popover as t}from"@base-ui/react/popover";import{CloseIcon as l}from"./icons.js";import{WidthSizer as r}from"./sizer.js";import{chipRemoveClasses as s,controlHeightClasses as o,controlTextLeadingClasses as d,cx as c,disabledClasses as p,fieldReadOnlyClasses as u,fieldRestClasses as m,focusWithinRingClasses as f,gapClasses as b,iconClasses as h,metaTextClasses as x,paddingXClasses as g,radiusClasses as v,stackGapClasses as y,surfaceClasses as N,surfaceSlots as w,transitionClasses as P}from"./styles.js";export function popupSlots(e,a){return{...w(e,a),"--n-fill":`var(--neba-${e}-fill)`,"--n-fill-hover":`var(--neba-${e}-fill-hover)`,"--n-fill-active":`var(--neba-${e}-fill-active)`,"--n-on-solid":`var(--neba-${e}-on-solid)`}}const j=["group relative flex w-full items-center select-none","[-webkit-tap-highlight-color:transparent] [touch-action:manipulation]",P,"focus-within:[transition-duration:0ms]",f,h].join(" ");export const pickerPopupClasses=[N,"border bg-(--n-panel-press)","[border-color:var(--n-line)]","[box-shadow:var(--neba-shadow-3),var(--neba-plate-glass)]","[outline:none]","[transition:opacity_var(--neba-duration)_var(--neba-ease)]","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0"].join(" ");export const popupPaddingClasses={xs:"p-1.5",sm:"p-2",md:"p-2.5",lg:"p-3",xl:"p-3.5"};export function PickerShell({variant:f="outline",size:h="md",color:N="primary",density:P="default",elevation:C=0,label:k,description:$,error:O,invalid:z,startIcon:F,fullWidth:R=!1,disabled:S=!1,readOnly:q=!1,required:D=!1,id:I,className:_,style:E,display:L,samples:T,empty:V,clearable:W=!1,onClear:A,open:B,onOpenChange:G,labels:H,hiddenValues:J,sideOffset:K=6,popupClassName:M,children:Q,triggerRef:U,...X}){const Y=n.useId(),Z=I??`${Y}-trigger`,ee=`${Y}-label`,ae=`${Y}-description`,ne=`${Y}-error`,ie=null!=O&&!1!==O&&""!==O,te=z??ie,le=te?"danger":N,re=S||q,se=c($?ae:null,ie?ne:null)||void 0;return a(i.Root,{disabled:S,invalid:te,className:c("flex-col align-top",y[h],R?"flex w-full":"inline-flex",_),style:{...w(le,C),...E},...X,children:[k?e(i.Label,{id:ee,htmlFor:Z,className:c(x[h],"font-medium",S?"text-(--neba-disabled-fg)":"text-(--neba-fg)"),children:k}):null,a(t.Root,{open:B,onOpenChange:e=>G(e),children:[a("span",{className:c(j,o[h],d[h],v[h],b[h],g[P][h],S?p[f]:q?u[f]:m[f]),children:[a(t.Trigger,{id:Z,ref:U,disabled:S,"aria-labelledby":k?ee:void 0,"aria-describedby":se,"aria-required":D||void 0,"aria-invalid":te||void 0,className:c("flex min-w-0 flex-1 items-center bg-transparent text-start [font:inherit] text-inherit",b[h],"[outline:none]",re?"cursor-default":"cursor-pointer"),children:[F?e("span",{className:"flex h-[1lh] shrink-0 items-center text-(--neba-muted-fg) transition-[color] duration-(--neba-duration) group-focus-within:text-(--n-accent)",children:F}):null,a("span",{className:"flex min-w-0 flex-1 flex-col",children:[e("span",{className:c("w-full truncate",V?"text-(--neba-muted-fg)":"text-(--neba-fg)"),children:L}),e(r,{samples:T??[]})]})]}),!W||V||re?null:e("button",{type:"button","aria-label":H.clear,className:c(s,"text-(--neba-muted-fg)"),onClick:e=>{e.stopPropagation(),A()},children:e(l,{})})]}),e(t.Portal,{children:e(t.Positioner,{className:"neba-portal z-50 [outline:none]",sideOffset:K,align:"start",children:e(t.Popup,{initialFocus:!1,className:c(pickerPopupClasses,v[h],popupPaddingClasses[h],d[h],M),style:popupSlots(le,3),children:Q})})})]}),$?e(i.Description,{id:ae,className:c(x[h],"text-(--neba-muted-fg)"),children:$}):null,ie?e(i.Error,{id:ne,match:!0,className:c(x[h],"text-(--n-accent)"),children:O}):null,J?.map((a,n)=>e("input",{type:"hidden",name:a.name,value:a.value},n))]})}export function PickerFooter({size:a,children:n}){return e("div",{className:c("flex items-center justify-end border-t pt-1.5","[border-color:var(--n-line)]",b[a]),children:n})}export function PickerDivider(){return e("div",{"aria-hidden":"true",className:"w-px self-stretch bg-(--n-line)"})}
|
package/dist/locales/ar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ar={action:{close:"إغلاق",dismiss:"تجاهل",clear:"مسح",remove:"إزالة"},link:{newTab:"(يفتح في علامة تبويب جديدة)"},spoiler:{reveal:"إظهار",hide:"إخفاء",notice:"قد يحتوي على حرق للأحداث"},chat:{sending:"جارٍ الإرسال",sent:"تم الإرسال",delivered:"تم التسليم",read:"تمت القراءة",failed:"لم يتم الإرسال",typing:"يكتب الآن…"},empty:{title:"لا يوجد شيء هنا"},table:{search:"بحث",selectAll:"تحديد كل الصفوف",selectRow:"تحديد الصف",rowsPerPage:"صفوف لكل صفحة",range:"{start}–{end} من {total}",selected:"تم تحديد {count}",empty:"لا توجد بيانات"},color:{area:"التشبع والسطوع",hue:"درجة اللون",alpha:"العتامة",value:"قيمة اللون",swatches:"ألوان جاهزة",clear:"مسح",empty:"اختر لونًا"},rating:{label:"التقييم",value:"{value} من {max}",empty:"بدون تقييم"},number:{increase:"زيادة",decrease:"إنقاص"},pagination:{label:"ترقيم الصفحات",page:"الصفحة {page}",status:"الصفحة {page} من {total}",previous:"الصفحة السابقة",next:"الصفحة التالية",first:"الصفحة الأولى",last:"الصفحة الأخيرة"},carousel:{label:"شريط عرض",slide:"الشريحة {index} من {total}",previous:"الشريحة السابقة",next:"الشريحة التالية"},chart:{label:"رسم بياني"},scroll:{label:"محتوى قابل للتمرير",previous:"التمرير للخلف",next:"التمرير للأمام"},breadcrumb:{label:"مسار التنقل",expand:"إظهار الخطوات المخفية"},anchor:{label:"في هذه الصفحة"},transfer:{source:"المتاح",target:"المحدد",toTarget:"النقل إلى المحدد",toSource:"الإرجاع إلى المتاح",search:"بحث",selectAll:"تحديد الكل",empty:"لا شيء هنا"},command:{label:"لوحة الأوامر",search:"اكتب أمراً أو ابحث…",empty:"لا توجد أوامر مطابقة"},combobox:{empty:"لا توجد نتائج مطابقة",remove:"إزالة {label}"},overlay:{label:"تراكب"},window:{minimize:"تصغير",maximize:"تكبير",restore:"استعادة",resize:"تغيير حجم النافذة"},layout:{skipToContent:"تخطي إلى المحتوى",sidebar:"الشريط الجانبي",openSidebar:"فتح الشريط الجانبي",closeSidebar:"إغلاق الشريط الجانبي",resizeSidebar:"تغيير حجم الشريط الجانبي"},code:{code:"شفرة",copy:"نسخ",copied:"تم النسخ",copyFailed:"تعذّر النسخ",raw:"خام",prompt:"موجّه الأوامر"},steps:{previous:"السابق",next:"التالي",done:"تم",skip:"تخطي",restart:"البدء من جديد",completed:"اكتملت جميع الخطوات",steps:"الخطوات",position:"{index} من {total}",step:"الخطوة {index}: {title}"}};
|
|
1
|
+
export const ar={action:{close:"إغلاق",dismiss:"تجاهل",clear:"مسح",remove:"إزالة"},confirm:{confirm:"تأكيد",cancel:"إلغاء"},link:{newTab:"(يفتح في علامة تبويب جديدة)"},spoiler:{reveal:"إظهار",hide:"إخفاء",notice:"قد يحتوي على حرق للأحداث"},chat:{sending:"جارٍ الإرسال",sent:"تم الإرسال",delivered:"تم التسليم",read:"تمت القراءة",failed:"لم يتم الإرسال",typing:"يكتب الآن…"},empty:{title:"لا يوجد شيء هنا"},table:{search:"بحث",selectAll:"تحديد كل الصفوف",selectRow:"تحديد الصف",rowsPerPage:"صفوف لكل صفحة",range:"{start}–{end} من {total}",selected:"تم تحديد {count}",empty:"لا توجد بيانات",exportCsv:"تصدير CSV"},color:{area:"التشبع والسطوع",hue:"درجة اللون",alpha:"العتامة",value:"قيمة اللون",swatches:"ألوان جاهزة",clear:"مسح",empty:"اختر لونًا"},rating:{label:"التقييم",value:"{value} من {max}",empty:"بدون تقييم"},number:{increase:"زيادة",decrease:"إنقاص"},pagination:{label:"ترقيم الصفحات",page:"الصفحة {page}",status:"الصفحة {page} من {total}",previous:"الصفحة السابقة",next:"الصفحة التالية",first:"الصفحة الأولى",last:"الصفحة الأخيرة"},carousel:{label:"شريط عرض",slide:"الشريحة {index} من {total}",previous:"الشريحة السابقة",next:"الشريحة التالية"},chart:{label:"رسم بياني"},scroll:{label:"محتوى قابل للتمرير",previous:"التمرير للخلف",next:"التمرير للأمام"},breadcrumb:{label:"مسار التنقل",expand:"إظهار الخطوات المخفية"},anchor:{label:"في هذه الصفحة"},transfer:{source:"المتاح",target:"المحدد",toTarget:"النقل إلى المحدد",toSource:"الإرجاع إلى المتاح",search:"بحث",selectAll:"تحديد الكل",empty:"لا شيء هنا"},command:{label:"لوحة الأوامر",search:"اكتب أمراً أو ابحث…",empty:"لا توجد أوامر مطابقة"},combobox:{empty:"لا توجد نتائج مطابقة",remove:"إزالة {label}"},overlay:{label:"تراكب"},window:{minimize:"تصغير",maximize:"تكبير",restore:"استعادة",resize:"تغيير حجم النافذة"},layout:{skipToContent:"تخطي إلى المحتوى",sidebar:"الشريط الجانبي",openSidebar:"فتح الشريط الجانبي",closeSidebar:"إغلاق الشريط الجانبي",resizeSidebar:"تغيير حجم الشريط الجانبي"},code:{code:"شفرة",copy:"نسخ",copied:"تم النسخ",copyFailed:"تعذّر النسخ",raw:"خام",prompt:"موجّه الأوامر"},steps:{previous:"السابق",next:"التالي",done:"تم",skip:"تخطي",restart:"البدء من جديد",completed:"اكتملت جميع الخطوات",steps:"الخطوات",position:"{index} من {total}",step:"الخطوة {index}: {title}"}};
|
package/dist/locales/de.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const de={action:{close:"Schließen",dismiss:"Ausblenden",clear:"Löschen",remove:"Entfernen"},link:{newTab:"(wird in einem neuen Tab geöffnet)"},spoiler:{reveal:"Anzeigen",hide:"Ausblenden",notice:"Kann Spoiler enthalten"},chat:{sending:"Wird gesendet",sent:"Gesendet",delivered:"Zugestellt",read:"Gelesen",failed:"Nicht gesendet",typing:"Schreibt…"},empty:{title:"Nichts vorhanden"},table:{search:"Suchen",selectAll:"Alle Zeilen auswählen",selectRow:"Zeile auswählen",rowsPerPage:"Zeilen pro Seite",range:"{start}–{end} von {total}",selected:"{count} ausgewählt",empty:"Keine Daten"},color:{area:"Sättigung und Helligkeit",hue:"Farbton",alpha:"Deckkraft",value:"Farbwert",swatches:"Vorgegebene Farben",clear:"Löschen",empty:"Farbe auswählen"},rating:{label:"Bewertung",value:"{value} von {max}",empty:"Keine Bewertung"},number:{increase:"Erhöhen",decrease:"Verringern"},pagination:{label:"Seitennavigation",page:"Seite {page}",status:"Seite {page} von {total}",previous:"Vorherige Seite",next:"Nächste Seite",first:"Erste Seite",last:"Letzte Seite"},carousel:{label:"Karussell",slide:"Folie {index} von {total}",previous:"Vorherige Folie",next:"Nächste Folie"},chart:{label:"Diagramm"},scroll:{label:"Scrollbarer Inhalt",previous:"Zurückscrollen",next:"Weiterscrollen"},breadcrumb:{label:"Breadcrumb-Navigation",expand:"Ausgeblendete Schritte anzeigen"},anchor:{label:"Auf dieser Seite"},transfer:{source:"Verfügbar",target:"Ausgewählt",toTarget:"Zu Ausgewählt verschieben",toSource:"Zurück zu Verfügbar",search:"Suchen",selectAll:"Alle auswählen",empty:"Nichts vorhanden"},command:{label:"Befehlspalette",search:"Befehl eingeben oder suchen…",empty:"Keine Befehle gefunden"},combobox:{empty:"Keine Treffer",remove:"{label} entfernen"},overlay:{label:"Overlay"},window:{minimize:"Minimieren",maximize:"Maximieren",restore:"Wiederherstellen",resize:"Fenstergröße ändern"},layout:{skipToContent:"Zum Inhalt springen",sidebar:"Seitenleiste",openSidebar:"Seitenleiste öffnen",closeSidebar:"Seitenleiste schließen",resizeSidebar:"Seitenleiste anpassen"},code:{code:"Code",copy:"Kopieren",copied:"Kopiert",copyFailed:"Kopieren nicht möglich",raw:"Unformatiert",prompt:"Eingabeaufforderung"},steps:{previous:"Zurück",next:"Weiter",done:"Fertig",skip:"Überspringen",restart:"Von vorn beginnen",completed:"Alle Schritte abgeschlossen",steps:"Schritte",position:"{index} von {total}",step:"Schritt {index}: {title}"}};
|
|
1
|
+
export const de={action:{close:"Schließen",dismiss:"Ausblenden",clear:"Löschen",remove:"Entfernen"},confirm:{confirm:"Bestätigen",cancel:"Abbrechen"},link:{newTab:"(wird in einem neuen Tab geöffnet)"},spoiler:{reveal:"Anzeigen",hide:"Ausblenden",notice:"Kann Spoiler enthalten"},chat:{sending:"Wird gesendet",sent:"Gesendet",delivered:"Zugestellt",read:"Gelesen",failed:"Nicht gesendet",typing:"Schreibt…"},empty:{title:"Nichts vorhanden"},table:{search:"Suchen",selectAll:"Alle Zeilen auswählen",selectRow:"Zeile auswählen",rowsPerPage:"Zeilen pro Seite",range:"{start}–{end} von {total}",selected:"{count} ausgewählt",empty:"Keine Daten",exportCsv:"CSV exportieren"},color:{area:"Sättigung und Helligkeit",hue:"Farbton",alpha:"Deckkraft",value:"Farbwert",swatches:"Vorgegebene Farben",clear:"Löschen",empty:"Farbe auswählen"},rating:{label:"Bewertung",value:"{value} von {max}",empty:"Keine Bewertung"},number:{increase:"Erhöhen",decrease:"Verringern"},pagination:{label:"Seitennavigation",page:"Seite {page}",status:"Seite {page} von {total}",previous:"Vorherige Seite",next:"Nächste Seite",first:"Erste Seite",last:"Letzte Seite"},carousel:{label:"Karussell",slide:"Folie {index} von {total}",previous:"Vorherige Folie",next:"Nächste Folie"},chart:{label:"Diagramm"},scroll:{label:"Scrollbarer Inhalt",previous:"Zurückscrollen",next:"Weiterscrollen"},breadcrumb:{label:"Breadcrumb-Navigation",expand:"Ausgeblendete Schritte anzeigen"},anchor:{label:"Auf dieser Seite"},transfer:{source:"Verfügbar",target:"Ausgewählt",toTarget:"Zu Ausgewählt verschieben",toSource:"Zurück zu Verfügbar",search:"Suchen",selectAll:"Alle auswählen",empty:"Nichts vorhanden"},command:{label:"Befehlspalette",search:"Befehl eingeben oder suchen…",empty:"Keine Befehle gefunden"},combobox:{empty:"Keine Treffer",remove:"{label} entfernen"},overlay:{label:"Overlay"},window:{minimize:"Minimieren",maximize:"Maximieren",restore:"Wiederherstellen",resize:"Fenstergröße ändern"},layout:{skipToContent:"Zum Inhalt springen",sidebar:"Seitenleiste",openSidebar:"Seitenleiste öffnen",closeSidebar:"Seitenleiste schließen",resizeSidebar:"Seitenleiste anpassen"},code:{code:"Code",copy:"Kopieren",copied:"Kopiert",copyFailed:"Kopieren nicht möglich",raw:"Unformatiert",prompt:"Eingabeaufforderung"},steps:{previous:"Zurück",next:"Weiter",done:"Fertig",skip:"Überspringen",restart:"Von vorn beginnen",completed:"Alle Schritte abgeschlossen",steps:"Schritte",position:"{index} von {total}",step:"Schritt {index}: {title}"}};
|
package/dist/locales/es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const es={action:{close:"Cerrar",dismiss:"Descartar",clear:"Borrar",remove:"Quitar"},link:{newTab:"(se abre en una pestaña nueva)"},spoiler:{reveal:"Mostrar",hide:"Ocultar",notice:"Puede contener spoilers"},chat:{sending:"Enviando",sent:"Enviado",delivered:"Entregado",read:"Leído",failed:"No enviado",typing:"Escribiendo…"},empty:{title:"No hay nada aquí"},table:{search:"Buscar",selectAll:"Seleccionar todas las filas",selectRow:"Seleccionar fila",rowsPerPage:"Filas por página",range:"{start}–{end} de {total}",selected:"{count} seleccionadas",empty:"Sin datos"},color:{area:"Saturación y brillo",hue:"Tono",alpha:"Opacidad",value:"Valor del color",swatches:"Colores predefinidos",clear:"Borrar",empty:"Elegir un color"},rating:{label:"Valoración",value:"{value} de {max}",empty:"Sin valoración"},number:{increase:"Aumentar",decrease:"Disminuir"},pagination:{label:"Paginación",page:"Página {page}",status:"Página {page} de {total}",previous:"Página anterior",next:"Página siguiente",first:"Primera página",last:"Última página"},carousel:{label:"Carrusel",slide:"Diapositiva {index} de {total}",previous:"Diapositiva anterior",next:"Diapositiva siguiente"},chart:{label:"Gráfico"},scroll:{label:"Contenido desplazable",previous:"Desplazar hacia atrás",next:"Desplazar hacia adelante"},breadcrumb:{label:"Ruta de navegación",expand:"Mostrar los pasos ocultos"},anchor:{label:"En esta página"},transfer:{source:"Disponibles",target:"Seleccionados",toTarget:"Mover a seleccionados",toSource:"Devolver a disponibles",search:"Buscar",selectAll:"Seleccionar todo",empty:"No hay nada"},command:{label:"Paleta de comandos",search:"Escribe un comando o busca…",empty:"No se encontraron comandos"},combobox:{empty:"Sin coincidencias",remove:"Quitar {label}"},overlay:{label:"Superposición"},window:{minimize:"Minimizar",maximize:"Maximizar",restore:"Restaurar",resize:"Cambiar el tamaño de la ventana"},layout:{skipToContent:"Saltar al contenido",sidebar:"Barra lateral",openSidebar:"Abrir barra lateral",closeSidebar:"Cerrar barra lateral",resizeSidebar:"Redimensionar barra lateral"},code:{code:"Código",copy:"Copiar",copied:"Copiado",copyFailed:"No se pudo copiar",raw:"Sin formato",prompt:"Símbolo del sistema"},steps:{previous:"Anterior",next:"Siguiente",done:"Hecho",skip:"Omitir",restart:"Empezar de nuevo",completed:"Todos los pasos completados",steps:"Pasos",position:"{index} de {total}",step:"Paso {index}: {title}"}};
|
|
1
|
+
export const es={action:{close:"Cerrar",dismiss:"Descartar",clear:"Borrar",remove:"Quitar"},confirm:{confirm:"Confirmar",cancel:"Cancelar"},link:{newTab:"(se abre en una pestaña nueva)"},spoiler:{reveal:"Mostrar",hide:"Ocultar",notice:"Puede contener spoilers"},chat:{sending:"Enviando",sent:"Enviado",delivered:"Entregado",read:"Leído",failed:"No enviado",typing:"Escribiendo…"},empty:{title:"No hay nada aquí"},table:{search:"Buscar",selectAll:"Seleccionar todas las filas",selectRow:"Seleccionar fila",rowsPerPage:"Filas por página",range:"{start}–{end} de {total}",selected:"{count} seleccionadas",empty:"Sin datos",exportCsv:"Exportar CSV"},color:{area:"Saturación y brillo",hue:"Tono",alpha:"Opacidad",value:"Valor del color",swatches:"Colores predefinidos",clear:"Borrar",empty:"Elegir un color"},rating:{label:"Valoración",value:"{value} de {max}",empty:"Sin valoración"},number:{increase:"Aumentar",decrease:"Disminuir"},pagination:{label:"Paginación",page:"Página {page}",status:"Página {page} de {total}",previous:"Página anterior",next:"Página siguiente",first:"Primera página",last:"Última página"},carousel:{label:"Carrusel",slide:"Diapositiva {index} de {total}",previous:"Diapositiva anterior",next:"Diapositiva siguiente"},chart:{label:"Gráfico"},scroll:{label:"Contenido desplazable",previous:"Desplazar hacia atrás",next:"Desplazar hacia adelante"},breadcrumb:{label:"Ruta de navegación",expand:"Mostrar los pasos ocultos"},anchor:{label:"En esta página"},transfer:{source:"Disponibles",target:"Seleccionados",toTarget:"Mover a seleccionados",toSource:"Devolver a disponibles",search:"Buscar",selectAll:"Seleccionar todo",empty:"No hay nada"},command:{label:"Paleta de comandos",search:"Escribe un comando o busca…",empty:"No se encontraron comandos"},combobox:{empty:"Sin coincidencias",remove:"Quitar {label}"},overlay:{label:"Superposición"},window:{minimize:"Minimizar",maximize:"Maximizar",restore:"Restaurar",resize:"Cambiar el tamaño de la ventana"},layout:{skipToContent:"Saltar al contenido",sidebar:"Barra lateral",openSidebar:"Abrir barra lateral",closeSidebar:"Cerrar barra lateral",resizeSidebar:"Redimensionar barra lateral"},code:{code:"Código",copy:"Copiar",copied:"Copiado",copyFailed:"No se pudo copiar",raw:"Sin formato",prompt:"Símbolo del sistema"},steps:{previous:"Anterior",next:"Siguiente",done:"Hecho",skip:"Omitir",restart:"Empezar de nuevo",completed:"Todos los pasos completados",steps:"Pasos",position:"{index} de {total}",step:"Paso {index}: {title}"}};
|
package/dist/locales/fr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const fr={action:{close:"Fermer",dismiss:"Ignorer",clear:"Effacer",remove:"Supprimer"},link:{newTab:"(s’ouvre dans un nouvel onglet)"},spoiler:{reveal:"Afficher",hide:"Masquer",notice:"Peut contenir des spoilers"},chat:{sending:"Envoi en cours",sent:"Envoyé",delivered:"Distribué",read:"Lu",failed:"Non envoyé",typing:"En train d’écrire…"},empty:{title:"Rien ici"},table:{search:"Rechercher",selectAll:"Sélectionner toutes les lignes",selectRow:"Sélectionner la ligne",rowsPerPage:"Lignes par page",range:"{start}–{end} sur {total}",selected:"{count} sélectionnées",empty:"Aucune donnée"},color:{area:"Saturation et luminosité",hue:"Teinte",alpha:"Opacité",value:"Valeur de la couleur",swatches:"Couleurs prédéfinies",clear:"Effacer",empty:"Choisir une couleur"},rating:{label:"Note",value:"{value} sur {max}",empty:"Aucune note"},number:{increase:"Augmenter",decrease:"Diminuer"},pagination:{label:"Pagination",page:"Page {page}",status:"Page {page} sur {total}",previous:"Page précédente",next:"Page suivante",first:"Première page",last:"Dernière page"},carousel:{label:"Carrousel",slide:"Diapositive {index} sur {total}",previous:"Diapositive précédente",next:"Diapositive suivante"},chart:{label:"Graphique"},scroll:{label:"Contenu défilant",previous:"Faire défiler vers l’arrière",next:"Faire défiler vers l’avant"},breadcrumb:{label:"Fil d’Ariane",expand:"Afficher les étapes masquées"},anchor:{label:"Sur cette page"},transfer:{source:"Disponibles",target:"Sélectionnés",toTarget:"Déplacer vers les sélectionnés",toSource:"Renvoyer vers les disponibles",search:"Rechercher",selectAll:"Tout sélectionner",empty:"Rien ici"},command:{label:"Palette de commandes",search:"Tapez une commande ou recherchez…",empty:"Aucune commande trouvée"},combobox:{empty:"Aucun résultat",remove:"Supprimer {label}"},overlay:{label:"Superposition"},window:{minimize:"Réduire",maximize:"Agrandir",restore:"Restaurer",resize:"Redimensionner la fenêtre"},layout:{skipToContent:"Aller au contenu",sidebar:"Barre latérale",openSidebar:"Ouvrir la barre latérale",closeSidebar:"Fermer la barre latérale",resizeSidebar:"Redimensionner la barre latérale"},code:{code:"Code",copy:"Copier",copied:"Copié",copyFailed:"Copie impossible",raw:"Brut",prompt:"Invite"},steps:{previous:"Précédent",next:"Suivant",done:"Terminer",skip:"Passer",restart:"Recommencer",completed:"Toutes les étapes sont terminées",steps:"Étapes",position:"{index} sur {total}",step:"Étape {index} : {title}"}};
|
|
1
|
+
export const fr={action:{close:"Fermer",dismiss:"Ignorer",clear:"Effacer",remove:"Supprimer"},confirm:{confirm:"Confirmer",cancel:"Annuler"},link:{newTab:"(s’ouvre dans un nouvel onglet)"},spoiler:{reveal:"Afficher",hide:"Masquer",notice:"Peut contenir des spoilers"},chat:{sending:"Envoi en cours",sent:"Envoyé",delivered:"Distribué",read:"Lu",failed:"Non envoyé",typing:"En train d’écrire…"},empty:{title:"Rien ici"},table:{search:"Rechercher",selectAll:"Sélectionner toutes les lignes",selectRow:"Sélectionner la ligne",rowsPerPage:"Lignes par page",range:"{start}–{end} sur {total}",selected:"{count} sélectionnées",empty:"Aucune donnée",exportCsv:"Exporter en CSV"},color:{area:"Saturation et luminosité",hue:"Teinte",alpha:"Opacité",value:"Valeur de la couleur",swatches:"Couleurs prédéfinies",clear:"Effacer",empty:"Choisir une couleur"},rating:{label:"Note",value:"{value} sur {max}",empty:"Aucune note"},number:{increase:"Augmenter",decrease:"Diminuer"},pagination:{label:"Pagination",page:"Page {page}",status:"Page {page} sur {total}",previous:"Page précédente",next:"Page suivante",first:"Première page",last:"Dernière page"},carousel:{label:"Carrousel",slide:"Diapositive {index} sur {total}",previous:"Diapositive précédente",next:"Diapositive suivante"},chart:{label:"Graphique"},scroll:{label:"Contenu défilant",previous:"Faire défiler vers l’arrière",next:"Faire défiler vers l’avant"},breadcrumb:{label:"Fil d’Ariane",expand:"Afficher les étapes masquées"},anchor:{label:"Sur cette page"},transfer:{source:"Disponibles",target:"Sélectionnés",toTarget:"Déplacer vers les sélectionnés",toSource:"Renvoyer vers les disponibles",search:"Rechercher",selectAll:"Tout sélectionner",empty:"Rien ici"},command:{label:"Palette de commandes",search:"Tapez une commande ou recherchez…",empty:"Aucune commande trouvée"},combobox:{empty:"Aucun résultat",remove:"Supprimer {label}"},overlay:{label:"Superposition"},window:{minimize:"Réduire",maximize:"Agrandir",restore:"Restaurer",resize:"Redimensionner la fenêtre"},layout:{skipToContent:"Aller au contenu",sidebar:"Barre latérale",openSidebar:"Ouvrir la barre latérale",closeSidebar:"Fermer la barre latérale",resizeSidebar:"Redimensionner la barre latérale"},code:{code:"Code",copy:"Copier",copied:"Copié",copyFailed:"Copie impossible",raw:"Brut",prompt:"Invite"},steps:{previous:"Précédent",next:"Suivant",done:"Terminer",skip:"Passer",restart:"Recommencer",completed:"Toutes les étapes sont terminées",steps:"Étapes",position:"{index} sur {total}",step:"Étape {index} : {title}"}};
|
package/dist/locales/hi.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const hi={action:{close:"बंद करें",dismiss:"खारिज करें",clear:"साफ़ करें",remove:"हटाएँ"},link:{newTab:"(नए टैब में खुलता है)"},spoiler:{reveal:"दिखाएँ",hide:"छिपाएँ",notice:"इसमें स्पॉइलर हो सकते हैं"},chat:{sending:"भेजा जा रहा है",sent:"भेजा गया",delivered:"डिलीवर हुआ",read:"पढ़ा गया",failed:"नहीं भेजा गया",typing:"टाइप कर रहे हैं…"},empty:{title:"यहाँ कुछ नहीं है"},table:{search:"खोजें",selectAll:"सभी पंक्तियाँ चुनें",selectRow:"पंक्ति चुनें",rowsPerPage:"प्रति पृष्ठ पंक्तियाँ",range:"{total} में से {start}–{end}",selected:"{count} चुनी गईं",empty:"कोई डेटा नहीं"},color:{area:"संतृप्ति और चमक",hue:"रंग",alpha:"अपारदर्शिता",value:"रंग मान",swatches:"पूर्व निर्धारित रंग",clear:"साफ़ करें",empty:"एक रंग चुनें"},rating:{label:"रेटिंग",value:"{max} में से {value}",empty:"कोई रेटिंग नहीं"},number:{increase:"बढ़ाएँ",decrease:"घटाएँ"},pagination:{label:"पृष्ठ क्रमांकन",page:"पृष्ठ {page}",status:"{total} में से पृष्ठ {page}",previous:"पिछला पृष्ठ",next:"अगला पृष्ठ",first:"पहला पृष्ठ",last:"अंतिम पृष्ठ"},carousel:{label:"कैरोसेल",slide:"{total} में से स्लाइड {index}",previous:"पिछली स्लाइड",next:"अगली स्लाइड"},chart:{label:"चार्ट"},scroll:{label:"स्क्रॉल करने योग्य सामग्री",previous:"पीछे स्क्रॉल करें",next:"आगे स्क्रॉल करें"},breadcrumb:{label:"ब्रेडक्रंब",expand:"छिपे हुए चरण दिखाएँ"},anchor:{label:"इस पृष्ठ पर"},transfer:{source:"उपलब्ध",target:"चयनित",toTarget:"चयनित में ले जाएँ",toSource:"उपलब्ध में वापस भेजें",search:"खोजें",selectAll:"सभी चुनें",empty:"यहाँ कुछ नहीं है"},command:{label:"कमांड पैलेट",search:"कमांड लिखें या खोजें…",empty:"कोई कमांड नहीं मिली"},combobox:{empty:"कोई मिलान नहीं",remove:"{label} हटाएँ"},overlay:{label:"ओवरले"},window:{minimize:"छोटा करें",maximize:"बड़ा करें",restore:"पुनर्स्थापित करें",resize:"विंडो का आकार बदलें"},layout:{skipToContent:"सामग्री पर जाएँ",sidebar:"साइडबार",openSidebar:"साइडबार खोलें",closeSidebar:"साइडबार बंद करें",resizeSidebar:"साइडबार का आकार बदलें"},code:{code:"कोड",copy:"कॉपी करें",copied:"कॉपी हो गया",copyFailed:"कॉपी नहीं हो सका",raw:"मूल",prompt:"प्रॉम्प्ट"},steps:{previous:"पिछला",next:"अगला",done:"पूर्ण",skip:"छोड़ें",restart:"फिर से शुरू करें",completed:"सभी चरण पूरे हुए",steps:"चरण",position:"{total} में से {index}",step:"चरण {index}: {title}"}};
|
|
1
|
+
export const hi={action:{close:"बंद करें",dismiss:"खारिज करें",clear:"साफ़ करें",remove:"हटाएँ"},confirm:{confirm:"पुष्टि करें",cancel:"रद्द करें"},link:{newTab:"(नए टैब में खुलता है)"},spoiler:{reveal:"दिखाएँ",hide:"छिपाएँ",notice:"इसमें स्पॉइलर हो सकते हैं"},chat:{sending:"भेजा जा रहा है",sent:"भेजा गया",delivered:"डिलीवर हुआ",read:"पढ़ा गया",failed:"नहीं भेजा गया",typing:"टाइप कर रहे हैं…"},empty:{title:"यहाँ कुछ नहीं है"},table:{search:"खोजें",selectAll:"सभी पंक्तियाँ चुनें",selectRow:"पंक्ति चुनें",rowsPerPage:"प्रति पृष्ठ पंक्तियाँ",range:"{total} में से {start}–{end}",selected:"{count} चुनी गईं",empty:"कोई डेटा नहीं",exportCsv:"CSV निर्यात करें"},color:{area:"संतृप्ति और चमक",hue:"रंग",alpha:"अपारदर्शिता",value:"रंग मान",swatches:"पूर्व निर्धारित रंग",clear:"साफ़ करें",empty:"एक रंग चुनें"},rating:{label:"रेटिंग",value:"{max} में से {value}",empty:"कोई रेटिंग नहीं"},number:{increase:"बढ़ाएँ",decrease:"घटाएँ"},pagination:{label:"पृष्ठ क्रमांकन",page:"पृष्ठ {page}",status:"{total} में से पृष्ठ {page}",previous:"पिछला पृष्ठ",next:"अगला पृष्ठ",first:"पहला पृष्ठ",last:"अंतिम पृष्ठ"},carousel:{label:"कैरोसेल",slide:"{total} में से स्लाइड {index}",previous:"पिछली स्लाइड",next:"अगली स्लाइड"},chart:{label:"चार्ट"},scroll:{label:"स्क्रॉल करने योग्य सामग्री",previous:"पीछे स्क्रॉल करें",next:"आगे स्क्रॉल करें"},breadcrumb:{label:"ब्रेडक्रंब",expand:"छिपे हुए चरण दिखाएँ"},anchor:{label:"इस पृष्ठ पर"},transfer:{source:"उपलब्ध",target:"चयनित",toTarget:"चयनित में ले जाएँ",toSource:"उपलब्ध में वापस भेजें",search:"खोजें",selectAll:"सभी चुनें",empty:"यहाँ कुछ नहीं है"},command:{label:"कमांड पैलेट",search:"कमांड लिखें या खोजें…",empty:"कोई कमांड नहीं मिली"},combobox:{empty:"कोई मिलान नहीं",remove:"{label} हटाएँ"},overlay:{label:"ओवरले"},window:{minimize:"छोटा करें",maximize:"बड़ा करें",restore:"पुनर्स्थापित करें",resize:"विंडो का आकार बदलें"},layout:{skipToContent:"सामग्री पर जाएँ",sidebar:"साइडबार",openSidebar:"साइडबार खोलें",closeSidebar:"साइडबार बंद करें",resizeSidebar:"साइडबार का आकार बदलें"},code:{code:"कोड",copy:"कॉपी करें",copied:"कॉपी हो गया",copyFailed:"कॉपी नहीं हो सका",raw:"मूल",prompt:"प्रॉम्प्ट"},steps:{previous:"पिछला",next:"अगला",done:"पूर्ण",skip:"छोड़ें",restart:"फिर से शुरू करें",completed:"सभी चरण पूरे हुए",steps:"चरण",position:"{total} में से {index}",step:"चरण {index}: {title}"}};
|
package/dist/locales/id.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const id={action:{close:"Tutup",dismiss:"Abaikan",clear:"Bersihkan",remove:"Hapus"},link:{newTab:"(terbuka di tab baru)"},spoiler:{reveal:"Tampilkan",hide:"Sembunyikan",notice:"Mungkin mengandung spoiler"},chat:{sending:"Mengirim",sent:"Terkirim",delivered:"Diterima",read:"Dibaca",failed:"Gagal terkirim",typing:"Sedang mengetik…"},empty:{title:"Tidak ada apa-apa di sini"},table:{search:"Cari",selectAll:"Pilih semua baris",selectRow:"Pilih baris",rowsPerPage:"Baris per halaman",range:"{start}–{end} dari {total}",selected:"{count} dipilih",empty:"Tidak ada data"},color:{area:"Saturasi dan kecerahan",hue:"Rona",alpha:"Opasitas",value:"Nilai warna",swatches:"Warna preset",clear:"Hapus",empty:"Pilih warna"},rating:{label:"Peringkat",value:"{value} dari {max}",empty:"Belum ada peringkat"},number:{increase:"Tambah",decrease:"Kurangi"},pagination:{label:"Penomoran halaman",page:"Halaman {page}",status:"Halaman {page} dari {total}",previous:"Halaman sebelumnya",next:"Halaman berikutnya",first:"Halaman pertama",last:"Halaman terakhir"},carousel:{label:"Korsel",slide:"Slide {index} dari {total}",previous:"Slide sebelumnya",next:"Slide berikutnya"},chart:{label:"Bagan"},scroll:{label:"Konten yang dapat digulir",previous:"Gulir ke belakang",next:"Gulir ke depan"},breadcrumb:{label:"Remah roti",expand:"Tampilkan langkah tersembunyi"},anchor:{label:"Di halaman ini"},transfer:{source:"Tersedia",target:"Terpilih",toTarget:"Pindahkan ke terpilih",toSource:"Kembalikan ke tersedia",search:"Cari",selectAll:"Pilih semua",empty:"Tidak ada apa pun"},command:{label:"Palet perintah",search:"Ketik perintah atau cari…",empty:"Perintah tidak ditemukan"},combobox:{empty:"Tidak ada yang cocok",remove:"Hapus {label}"},overlay:{label:"Hamparan"},window:{minimize:"Perkecil",maximize:"Perbesar",restore:"Pulihkan",resize:"Ubah ukuran jendela"},layout:{skipToContent:"Lompat ke konten",sidebar:"Bilah sisi",openSidebar:"Buka bilah sisi",closeSidebar:"Tutup bilah sisi",resizeSidebar:"Ubah ukuran bilah sisi"},code:{code:"Kode",copy:"Salin",copied:"Tersalin",copyFailed:"Tidak dapat menyalin",raw:"Mentah",prompt:"Prompt"},steps:{previous:"Sebelumnya",next:"Berikutnya",done:"Selesai",skip:"Lewati",restart:"Mulai lagi",completed:"Semua langkah selesai",steps:"Langkah",position:"{index} dari {total}",step:"Langkah {index}: {title}"}};
|
|
1
|
+
export const id={action:{close:"Tutup",dismiss:"Abaikan",clear:"Bersihkan",remove:"Hapus"},confirm:{confirm:"Konfirmasi",cancel:"Batal"},link:{newTab:"(terbuka di tab baru)"},spoiler:{reveal:"Tampilkan",hide:"Sembunyikan",notice:"Mungkin mengandung spoiler"},chat:{sending:"Mengirim",sent:"Terkirim",delivered:"Diterima",read:"Dibaca",failed:"Gagal terkirim",typing:"Sedang mengetik…"},empty:{title:"Tidak ada apa-apa di sini"},table:{search:"Cari",selectAll:"Pilih semua baris",selectRow:"Pilih baris",rowsPerPage:"Baris per halaman",range:"{start}–{end} dari {total}",selected:"{count} dipilih",empty:"Tidak ada data",exportCsv:"Ekspor CSV"},color:{area:"Saturasi dan kecerahan",hue:"Rona",alpha:"Opasitas",value:"Nilai warna",swatches:"Warna preset",clear:"Hapus",empty:"Pilih warna"},rating:{label:"Peringkat",value:"{value} dari {max}",empty:"Belum ada peringkat"},number:{increase:"Tambah",decrease:"Kurangi"},pagination:{label:"Penomoran halaman",page:"Halaman {page}",status:"Halaman {page} dari {total}",previous:"Halaman sebelumnya",next:"Halaman berikutnya",first:"Halaman pertama",last:"Halaman terakhir"},carousel:{label:"Korsel",slide:"Slide {index} dari {total}",previous:"Slide sebelumnya",next:"Slide berikutnya"},chart:{label:"Bagan"},scroll:{label:"Konten yang dapat digulir",previous:"Gulir ke belakang",next:"Gulir ke depan"},breadcrumb:{label:"Remah roti",expand:"Tampilkan langkah tersembunyi"},anchor:{label:"Di halaman ini"},transfer:{source:"Tersedia",target:"Terpilih",toTarget:"Pindahkan ke terpilih",toSource:"Kembalikan ke tersedia",search:"Cari",selectAll:"Pilih semua",empty:"Tidak ada apa pun"},command:{label:"Palet perintah",search:"Ketik perintah atau cari…",empty:"Perintah tidak ditemukan"},combobox:{empty:"Tidak ada yang cocok",remove:"Hapus {label}"},overlay:{label:"Hamparan"},window:{minimize:"Perkecil",maximize:"Perbesar",restore:"Pulihkan",resize:"Ubah ukuran jendela"},layout:{skipToContent:"Lompat ke konten",sidebar:"Bilah sisi",openSidebar:"Buka bilah sisi",closeSidebar:"Tutup bilah sisi",resizeSidebar:"Ubah ukuran bilah sisi"},code:{code:"Kode",copy:"Salin",copied:"Tersalin",copyFailed:"Tidak dapat menyalin",raw:"Mentah",prompt:"Prompt"},steps:{previous:"Sebelumnya",next:"Berikutnya",done:"Selesai",skip:"Lewati",restart:"Mulai lagi",completed:"Semua langkah selesai",steps:"Langkah",position:"{index} dari {total}",step:"Langkah {index}: {title}"}};
|
package/dist/locales/it.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const it={action:{close:"Chiudi",dismiss:"Ignora",clear:"Cancella",remove:"Rimuovi"},link:{newTab:"(si apre in una nuova scheda)"},spoiler:{reveal:"Mostra",hide:"Nascondi",notice:"Può contenere spoiler"},chat:{sending:"Invio in corso",sent:"Inviato",delivered:"Consegnato",read:"Letto",failed:"Non inviato",typing:"Sta scrivendo…"},empty:{title:"Non c’è nulla"},table:{search:"Cerca",selectAll:"Seleziona tutte le righe",selectRow:"Seleziona riga",rowsPerPage:"Righe per pagina",range:"{start}–{end} di {total}",selected:"{count} selezionate",empty:"Nessun dato"},color:{area:"Saturazione e luminosità",hue:"Tonalità",alpha:"Opacità",value:"Valore del colore",swatches:"Colori predefiniti",clear:"Cancella",empty:"Scegli un colore"},rating:{label:"Valutazione",value:"{value} su {max}",empty:"Nessuna valutazione"},number:{increase:"Aumenta",decrease:"Diminuisci"},pagination:{label:"Impaginazione",page:"Pagina {page}",status:"Pagina {page} di {total}",previous:"Pagina precedente",next:"Pagina successiva",first:"Prima pagina",last:"Ultima pagina"},carousel:{label:"Carosello",slide:"Diapositiva {index} di {total}",previous:"Diapositiva precedente",next:"Diapositiva successiva"},chart:{label:"Grafico"},scroll:{label:"Contenuto scorrevole",previous:"Scorri indietro",next:"Scorri avanti"},breadcrumb:{label:"Percorso di navigazione",expand:"Mostra i passaggi nascosti"},anchor:{label:"In questa pagina"},transfer:{source:"Disponibili",target:"Selezionati",toTarget:"Sposta tra i selezionati",toSource:"Riporta tra i disponibili",search:"Cerca",selectAll:"Seleziona tutto",empty:"Nessun elemento"},command:{label:"Tavolozza comandi",search:"Digita un comando o cerca…",empty:"Nessun comando trovato"},combobox:{empty:"Nessun risultato",remove:"Rimuovi {label}"},overlay:{label:"Sovrapposizione"},window:{minimize:"Riduci a icona",maximize:"Ingrandisci",restore:"Ripristina",resize:"Ridimensiona la finestra"},layout:{skipToContent:"Vai al contenuto",sidebar:"Barra laterale",openSidebar:"Apri barra laterale",closeSidebar:"Chiudi barra laterale",resizeSidebar:"Ridimensiona barra laterale"},code:{code:"Codice",copy:"Copia",copied:"Copiato",copyFailed:"Impossibile copiare",raw:"Grezzo",prompt:"Prompt"},steps:{previous:"Indietro",next:"Avanti",done:"Fatto",skip:"Salta",restart:"Ricomincia",completed:"Tutti i passaggi completati",steps:"Passaggi",position:"{index} di {total}",step:"Passaggio {index}: {title}"}};
|
|
1
|
+
export const it={action:{close:"Chiudi",dismiss:"Ignora",clear:"Cancella",remove:"Rimuovi"},confirm:{confirm:"Conferma",cancel:"Annulla"},link:{newTab:"(si apre in una nuova scheda)"},spoiler:{reveal:"Mostra",hide:"Nascondi",notice:"Può contenere spoiler"},chat:{sending:"Invio in corso",sent:"Inviato",delivered:"Consegnato",read:"Letto",failed:"Non inviato",typing:"Sta scrivendo…"},empty:{title:"Non c’è nulla"},table:{search:"Cerca",selectAll:"Seleziona tutte le righe",selectRow:"Seleziona riga",rowsPerPage:"Righe per pagina",range:"{start}–{end} di {total}",selected:"{count} selezionate",empty:"Nessun dato",exportCsv:"Esporta CSV"},color:{area:"Saturazione e luminosità",hue:"Tonalità",alpha:"Opacità",value:"Valore del colore",swatches:"Colori predefiniti",clear:"Cancella",empty:"Scegli un colore"},rating:{label:"Valutazione",value:"{value} su {max}",empty:"Nessuna valutazione"},number:{increase:"Aumenta",decrease:"Diminuisci"},pagination:{label:"Impaginazione",page:"Pagina {page}",status:"Pagina {page} di {total}",previous:"Pagina precedente",next:"Pagina successiva",first:"Prima pagina",last:"Ultima pagina"},carousel:{label:"Carosello",slide:"Diapositiva {index} di {total}",previous:"Diapositiva precedente",next:"Diapositiva successiva"},chart:{label:"Grafico"},scroll:{label:"Contenuto scorrevole",previous:"Scorri indietro",next:"Scorri avanti"},breadcrumb:{label:"Percorso di navigazione",expand:"Mostra i passaggi nascosti"},anchor:{label:"In questa pagina"},transfer:{source:"Disponibili",target:"Selezionati",toTarget:"Sposta tra i selezionati",toSource:"Riporta tra i disponibili",search:"Cerca",selectAll:"Seleziona tutto",empty:"Nessun elemento"},command:{label:"Tavolozza comandi",search:"Digita un comando o cerca…",empty:"Nessun comando trovato"},combobox:{empty:"Nessun risultato",remove:"Rimuovi {label}"},overlay:{label:"Sovrapposizione"},window:{minimize:"Riduci a icona",maximize:"Ingrandisci",restore:"Ripristina",resize:"Ridimensiona la finestra"},layout:{skipToContent:"Vai al contenuto",sidebar:"Barra laterale",openSidebar:"Apri barra laterale",closeSidebar:"Chiudi barra laterale",resizeSidebar:"Ridimensiona barra laterale"},code:{code:"Codice",copy:"Copia",copied:"Copiato",copyFailed:"Impossibile copiare",raw:"Grezzo",prompt:"Prompt"},steps:{previous:"Indietro",next:"Avanti",done:"Fatto",skip:"Salta",restart:"Ricomincia",completed:"Tutti i passaggi completati",steps:"Passaggi",position:"{index} di {total}",step:"Passaggio {index}: {title}"}};
|
package/dist/locales/ja.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ja={action:{close:"閉じる",dismiss:"閉じる",clear:"クリア",remove:"削除"},link:{newTab:"(新しいタブで開きます)"},spoiler:{reveal:"表示する",hide:"隠す",notice:"ネタバレを含む可能性があります"},chat:{sending:"送信中",sent:"送信済み",delivered:"配信済み",read:"既読",failed:"送信できませんでした",typing:"入力中…"},empty:{title:"表示するものがありません"},table:{search:"検索",selectAll:"すべての行を選択",selectRow:"行を選択",rowsPerPage:"1 ページの行数",range:"{total} 件中 {start}–{end} 件",selected:"{count} 件を選択中",empty:"データがありません"},color:{area:"彩度と明度",hue:"色相",alpha:"不透明度",value:"カラー値",swatches:"プリセットの色",clear:"クリア",empty:"色を選択"},rating:{label:"評価",value:"{max} 段階中 {value}",empty:"評価なし"},number:{increase:"増やす",decrease:"減らす"},pagination:{label:"ページ送り",page:"{page} ページ",status:"{total} ページ中 {page} ページ",previous:"前のページ",next:"次のページ",first:"最初のページ",last:"最後のページ"},carousel:{label:"カルーセル",slide:"{total} 枚中 {index} 枚目",previous:"前のスライド",next:"次のスライド"},chart:{label:"グラフ"},scroll:{label:"スクロールできる領域",previous:"前へスクロール",next:"次へスクロール"},breadcrumb:{label:"パンくずリスト",expand:"省略された階層を表示"},anchor:{label:"このページの内容"},transfer:{source:"未選択",target:"選択済み",toTarget:"選択済みに移動",toSource:"未選択に戻す",search:"検索",selectAll:"すべて選択",empty:"項目がありません"},command:{label:"コマンドパレット",search:"コマンドを入力または検索…",empty:"コマンドが見つかりません"},combobox:{empty:"一致する項目がありません",remove:"{label} を削除"},overlay:{label:"オーバーレイ"},window:{minimize:"最小化",maximize:"最大化",restore:"元のサイズに戻す",resize:"ウィンドウのサイズを変更"},layout:{skipToContent:"本文へスキップ",sidebar:"サイドバー",openSidebar:"サイドバーを開く",closeSidebar:"サイドバーを閉じる",resizeSidebar:"サイドバーの幅を変更"},code:{code:"コード",copy:"コピー",copied:"コピーしました",copyFailed:"コピーできません",raw:"元のまま",prompt:"プロンプト"},steps:{previous:"前へ",next:"次へ",done:"完了",skip:"スキップ",restart:"最初から",completed:"すべての手順が完了しました",steps:"手順",position:"{total} 件中 {index} 件目",step:"手順 {index}: {title}"}};
|
|
1
|
+
export const ja={action:{close:"閉じる",dismiss:"閉じる",clear:"クリア",remove:"削除"},confirm:{confirm:"確認",cancel:"キャンセル"},link:{newTab:"(新しいタブで開きます)"},spoiler:{reveal:"表示する",hide:"隠す",notice:"ネタバレを含む可能性があります"},chat:{sending:"送信中",sent:"送信済み",delivered:"配信済み",read:"既読",failed:"送信できませんでした",typing:"入力中…"},empty:{title:"表示するものがありません"},table:{search:"検索",selectAll:"すべての行を選択",selectRow:"行を選択",rowsPerPage:"1 ページの行数",range:"{total} 件中 {start}–{end} 件",selected:"{count} 件を選択中",empty:"データがありません",exportCsv:"CSVをエクスポート"},color:{area:"彩度と明度",hue:"色相",alpha:"不透明度",value:"カラー値",swatches:"プリセットの色",clear:"クリア",empty:"色を選択"},rating:{label:"評価",value:"{max} 段階中 {value}",empty:"評価なし"},number:{increase:"増やす",decrease:"減らす"},pagination:{label:"ページ送り",page:"{page} ページ",status:"{total} ページ中 {page} ページ",previous:"前のページ",next:"次のページ",first:"最初のページ",last:"最後のページ"},carousel:{label:"カルーセル",slide:"{total} 枚中 {index} 枚目",previous:"前のスライド",next:"次のスライド"},chart:{label:"グラフ"},scroll:{label:"スクロールできる領域",previous:"前へスクロール",next:"次へスクロール"},breadcrumb:{label:"パンくずリスト",expand:"省略された階層を表示"},anchor:{label:"このページの内容"},transfer:{source:"未選択",target:"選択済み",toTarget:"選択済みに移動",toSource:"未選択に戻す",search:"検索",selectAll:"すべて選択",empty:"項目がありません"},command:{label:"コマンドパレット",search:"コマンドを入力または検索…",empty:"コマンドが見つかりません"},combobox:{empty:"一致する項目がありません",remove:"{label} を削除"},overlay:{label:"オーバーレイ"},window:{minimize:"最小化",maximize:"最大化",restore:"元のサイズに戻す",resize:"ウィンドウのサイズを変更"},layout:{skipToContent:"本文へスキップ",sidebar:"サイドバー",openSidebar:"サイドバーを開く",closeSidebar:"サイドバーを閉じる",resizeSidebar:"サイドバーの幅を変更"},code:{code:"コード",copy:"コピー",copied:"コピーしました",copyFailed:"コピーできません",raw:"元のまま",prompt:"プロンプト"},steps:{previous:"前へ",next:"次へ",done:"完了",skip:"スキップ",restart:"最初から",completed:"すべての手順が完了しました",steps:"手順",position:"{total} 件中 {index} 件目",step:"手順 {index}: {title}"}};
|