@kanso-labs/react-native-kanso-ui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/autocomplete/index.js +39 -0
- package/dist/autocomplete/index.js.map +1 -0
- package/dist/button/index.d.ts +2 -1
- package/dist/button/index.js +35 -2
- package/dist/button/index.js.map +1 -1
- package/dist/button/pending.js +1 -1
- package/dist/button/slots.d.ts +2 -1
- package/dist/button/slots.js.map +1 -1
- package/dist/chip/index.js +1 -1
- package/dist/components/autocomplete/index.d.ts +49 -0
- package/dist/components/autocomplete/index.js +87 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +196 -150
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +106 -193
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip-group/index.d.ts +1 -1
- package/dist/components/chip-group/index.js +1 -1
- package/dist/components/copy-field/index.d.ts +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/currency/index.d.ts +1 -1
- package/dist/components/currency/index.js +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +3 -2
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/icon-button/index.d.ts +2 -2
- package/dist/components/icon-button/index.js +205 -159
- package/dist/components/icon-button/index.js.map +1 -1
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.d.ts +216 -0
- package/dist/components/list/index.js +1118 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/list-item/index.d.ts +63 -0
- package/dist/components/list-item/index.js +275 -0
- package/dist/components/list-item/index.js.map +1 -0
- package/dist/components/menu/index.d.ts +309 -0
- package/dist/components/menu/index.js +1283 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/meter/index.d.ts +1 -1
- package/dist/components/meter/index.js +1 -1
- package/dist/components/number-field/index.d.ts +1 -1
- package/dist/components/number-field/index.js +2 -2
- package/dist/components/popover/index.d.ts +140 -0
- package/dist/components/popover/index.js +704 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/product-icon/index.d.ts +1 -1
- package/dist/components/progress-indicator/index.d.ts +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/search-field/index.d.ts +12 -4
- package/dist/components/search-field/index.js +64 -58
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/segmented-button/index.d.ts +1 -1
- package/dist/components/segmented-button/index.js +1 -1
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.d.ts +1 -1
- package/dist/components/sheet/index.js +3 -2
- package/dist/components/sheet/index.js.map +1 -1
- package/dist/components/snackbar/index.d.ts +1 -1
- package/dist/components/snackbar/index.js +1 -1
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/index.js +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/text/index.d.ts +1 -1
- package/dist/components/text/index.js +1 -1
- package/dist/components/text-field/index.d.ts +1 -1
- package/dist/components/text-field/index.js +1 -1
- package/dist/control/checkbox-box.js +137 -0
- package/dist/control/checkbox-box.js.map +1 -0
- package/dist/control/index.js +1 -1
- package/dist/field/index.d.ts +1 -1
- package/dist/field/index.js +1 -1
- package/dist/form/index.d.ts +1 -1
- package/dist/glyphs/index.js +21 -2
- package/dist/glyphs/index.js.map +1 -1
- package/dist/i18n/index.js +16 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/messages.js +272 -34
- package/dist/i18n/messages.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +7 -2
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/index.js +2 -2
- package/dist/mark/index.d.ts +1 -1
- package/dist/mark/index.js +1 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/index.js +2 -9
- package/dist/modal/index.js.map +1 -1
- package/dist/overlay/anchored.d.ts +2 -0
- package/dist/overlay/anchored.js +182 -0
- package/dist/overlay/anchored.js.map +1 -0
- package/dist/overlay/host.d.ts +2 -0
- package/dist/overlay/host.js +1 -1
- package/dist/overlay/index.d.ts +4 -0
- package/dist/overlay/panel.js +215 -0
- package/dist/overlay/panel.js.map +1 -0
- package/dist/overlay/placement.d.ts +8 -0
- package/dist/overlay/placement.js +87 -0
- package/dist/overlay/placement.js.map +1 -0
- package/dist/press/index.js +1 -1
- package/dist/ref/index.js +15 -0
- package/dist/ref/index.js.map +1 -0
- package/dist/router/index.js +1 -1
- package/dist/row/index.js +158 -0
- package/dist/row/index.js.map +1 -0
- package/dist/row/styles.js +51 -0
- package/dist/row/styles.js.map +1 -0
- package/dist/theme/scope.js +1 -1
- package/dist/theme-scope.d.ts +1 -1
- package/dist/theme-scope.js +1 -1
- package/dist/typography/fonts.js +1 -1
- package/package.json +3 -3
package/dist/glyphs/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { HIDDEN } from "./hidden.js";
|
|
|
2
2
|
import { useIconStyle } from "./icon-style.js";
|
|
3
3
|
import { glyphStyles } from "./styles.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { I18nManager, StyleSheet } from "react-native";
|
|
6
7
|
import Svg, { Path } from "react-native-svg";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/glyphs/index.tsx
|
|
9
9
|
function CheckGlyph(props) {
|
|
10
10
|
const $ = c(3);
|
|
@@ -24,6 +24,25 @@ function CheckGlyph(props) {
|
|
|
24
24
|
} else t1 = $[2];
|
|
25
25
|
return t1;
|
|
26
26
|
}
|
|
27
|
+
function ChevronEndGlyph(props) {
|
|
28
|
+
const $ = c(3);
|
|
29
|
+
let t0;
|
|
30
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
31
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" });
|
|
32
|
+
$[0] = t0;
|
|
33
|
+
} else t0 = $[0];
|
|
34
|
+
let t1;
|
|
35
|
+
if ($[1] !== props) {
|
|
36
|
+
t1 = /* @__PURE__ */ jsx(Glyph, {
|
|
37
|
+
...props,
|
|
38
|
+
mirrored: true,
|
|
39
|
+
children: t0
|
|
40
|
+
});
|
|
41
|
+
$[1] = props;
|
|
42
|
+
$[2] = t1;
|
|
43
|
+
} else t1 = $[2];
|
|
44
|
+
return t1;
|
|
45
|
+
}
|
|
27
46
|
function CloseGlyph(props) {
|
|
28
47
|
const $ = c(3);
|
|
29
48
|
let t0;
|
|
@@ -159,6 +178,6 @@ function SearchGlyph(props) {
|
|
|
159
178
|
return t1;
|
|
160
179
|
}
|
|
161
180
|
//#endregion
|
|
162
|
-
export { CheckGlyph, CloseGlyph, IndeterminateGlyph, MinusGlyph, PersonGlyph, PlusGlyph, SearchGlyph };
|
|
181
|
+
export { CheckGlyph, ChevronEndGlyph, CloseGlyph, IndeterminateGlyph, MinusGlyph, PersonGlyph, PlusGlyph, SearchGlyph };
|
|
163
182
|
|
|
164
183
|
//# sourceMappingURL=index.js.map
|
package/dist/glyphs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ReactNode","ColorValue","StyleProp","ViewStyle","I18nManager","StyleSheet","Svg","Path","HIDDEN","useIconStyle","glyphStyles","GlyphProps","color","size","style","testID","ArrowBackGlyph","props","$","_c","t0","Symbol","for","t1","ArrowDownwardGlyph","ArrowDropDownGlyph","ArrowUpwardGlyph","CalendarGlyph","CheckGlyph","ChevronDownGlyph","ChevronEndGlyph","ClockGlyph","CloseGlyph","Glyph","children","mirrored","undefined","slot","side","t2","t3","compose","isRTL","t4","KeyboardGlyph","MinusGlyph","IndeterminateGlyph","PersonGlyph","PlusGlyph","SearchGlyph","_c"],"sources":["../../src/glyphs/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ColorValue, StyleProp, ViewStyle } from 'react-native'\n\nimport { I18nManager, StyleSheet } from 'react-native'\nimport Svg, { Path } from 'react-native-svg'\n\nimport { HIDDEN } from './hidden'\nimport { useIconStyle } from './icon-style'\nimport { glyphStyles } from './styles'\n\n// The glyphs the library's own controls draw, the same set kanso-ui draws on\n// web: the check and the dash a checkbox shows, the plus and minus a number\n// field's steppers show, the magnifier and cross a search field shows, and the\n// rest named beside each one. Private to the library, as on web: a call site\n// with icons of its own passes them to the slots that take a node, and reads\n// the slot's colour and size through `useIconStyle()`.\n//\n// The paths are kanso-ui's, unchanged: Material Symbols on their 24-unit grid,\n// which is what the checkbox page draws at 18dp, the icon buttons page at 20\n// and the search, menus, date picker and time picker pages at 24.\n\ntype GlyphProps = {\n /** The fill. Defaults to the colour of the slot the glyph sits in. */\n readonly color?: ColorValue\n /** The square's side in dp. Defaults to the size of the slot. */\n readonly size?: number\n readonly style?: StyleProp<ViewStyle>\n readonly testID?: string\n}\n\n// What a search view's back button draws, pointing at the page it returns to.\n// It says \"back\" rather than \"to the left\", so it mirrors under a right-to-left\n// layout.\nfunction ArrowBackGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\" />\n </Glyph>\n )\n}\n\n// Which way a sorted column is ordered. Up is ascending and down is\n// descending. Neither mirrors under a right-to-left layout: they say \"up\" and\n// \"down\" rather than \"onward\", and those do not flip.\nfunction ArrowDownwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\" />\n </Glyph>\n )\n}\n\n// What a menu button draws after its label, pointing at the list it opens.\n// Down is down in either writing direction, so it does not mirror.\nfunction ArrowDropDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M7 10l5 5 5-5z\" />\n </Glyph>\n )\n}\n\nfunction ArrowUpwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z\" />\n </Glyph>\n )\n}\n\n// What the date picker's trigger draws: the calendar a date is picked from.\nfunction CalendarGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z\" />\n </Glyph>\n )\n}\n\nfunction CheckGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </Glyph>\n )\n}\n\n// Points down at the menu a split button's second half opens.\nfunction ChevronDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\" />\n </Glyph>\n )\n}\n\n// Points at the submenu a menu item opens. It says \"further in\" rather than\n// \"to the right\", so it mirrors under a right-to-left layout.\nfunction ChevronEndGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d=\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\" />\n </Glyph>\n )\n}\n\n// What the time picker's trigger draws, and the button that takes its keyboard\n// entry back to the dial: the clock a time is picked from.\nfunction ClockGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z\" />\n </Glyph>\n )\n}\n\nfunction CloseGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" />\n </Glyph>\n )\n}\n\n/**\n * The svg every glyph draws: the 24-unit grid its path is on, a square of the\n * slot's size filled in the slot's colour, and nothing a screen reader\n * announces, since the control around a glyph carries the name. A glyph whose\n * direction means \"onward\" or \"back\" passes `mirrored`, which turns it over\n * under a right-to-left layout as `:dir(rtl)` does on web.\n */\nfunction Glyph({\n children,\n color,\n mirrored = false,\n size,\n style,\n testID,\n}: GlyphProps & { readonly children: ReactNode; readonly mirrored?: boolean }) {\n const slot = useIconStyle()\n const side = size ?? slot.size\n return (\n <Svg\n {...HIDDEN}\n color={color ?? slot.color}\n fill=\"currentColor\"\n height={side}\n style={StyleSheet.compose(\n mirrored && I18nManager.isRTL ? glyphStyles.mirrored : undefined,\n style,\n )}\n testID={testID}\n viewBox=\"0 0 24 24\"\n width={side}\n >\n {children}\n </Svg>\n )\n}\n\n// What the time picker's dial draws on the button that switches it to typed\n// entry.\nfunction KeyboardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H4V7h16v10zm-9-9h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z\" />\n </Glyph>\n )\n}\n\n// The same rule stands for a partly selected checkbox and for a stepper's\n// decrement; the two names say which is meant at the call site.\nfunction MinusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 13H5v-2h14v2z\" />\n </Glyph>\n )\n}\n\nconst IndeterminateGlyph = MinusGlyph\n\n// What an avatar with no name to take initials from draws: Material Design's\n// anonymous person, a head over shoulders.\nfunction PersonGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\" />\n </Glyph>\n )\n}\n\nfunction PlusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\" />\n </Glyph>\n )\n}\n\nfunction SearchGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\" />\n </Glyph>\n )\n}\n\nexport {\n ArrowBackGlyph,\n ArrowDownwardGlyph,\n ArrowDropDownGlyph,\n ArrowUpwardGlyph,\n CalendarGlyph,\n CheckGlyph,\n ChevronDownGlyph,\n ChevronEndGlyph,\n ClockGlyph,\n CloseGlyph,\n IndeterminateGlyph,\n KeyboardGlyph,\n MinusGlyph,\n PersonGlyph,\n PlusGlyph,\n SearchGlyph,\n}\nexport type { GlyphProps }\n"],"mappings":";;;;;;;;AA+EA,SAAA4B,WAAAX,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,G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A;EAD5HM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ;AAIZ,SAAAyB,UAAA/B,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,GAAA;EAGMF,KAAA,oBAAC,MAAD,EAAQ,GAAA,sCAAqC,CAAA;EAAGF,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAD,OAAA;EADlDM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ;AAIZ,SAAA0B,YAAAhC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,GAAA;EAGMF,KAAA,oBAAC,MAAD,EAAQ,GAAA,6MAA4M,CAAA;EAAGF,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAD,OAAA;EADzNM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ReactNode","ColorValue","StyleProp","ViewStyle","I18nManager","StyleSheet","Svg","Path","HIDDEN","useIconStyle","glyphStyles","GlyphProps","color","size","style","testID","ArrowBackGlyph","props","$","_c","t0","Symbol","for","t1","ArrowDownwardGlyph","ArrowDropDownGlyph","ArrowUpwardGlyph","CalendarGlyph","CheckGlyph","ChevronDownGlyph","ChevronEndGlyph","ClockGlyph","CloseGlyph","Glyph","children","mirrored","undefined","slot","side","t2","t3","compose","isRTL","t4","KeyboardGlyph","MinusGlyph","IndeterminateGlyph","PersonGlyph","PlusGlyph","SearchGlyph","_c"],"sources":["../../src/glyphs/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ColorValue, StyleProp, ViewStyle } from 'react-native'\n\nimport { I18nManager, StyleSheet } from 'react-native'\nimport Svg, { Path } from 'react-native-svg'\n\nimport { HIDDEN } from './hidden'\nimport { useIconStyle } from './icon-style'\nimport { glyphStyles } from './styles'\n\n// The glyphs the library's own controls draw, the same set kanso-ui draws on\n// web: the check and the dash a checkbox shows, the plus and minus a number\n// field's steppers show, the magnifier and cross a search field shows, and the\n// rest named beside each one. Private to the library, as on web: a call site\n// with icons of its own passes them to the slots that take a node, and reads\n// the slot's colour and size through `useIconStyle()`.\n//\n// The paths are kanso-ui's, unchanged: Material Symbols on their 24-unit grid,\n// which is what the checkbox page draws at 18dp, the icon buttons page at 20\n// and the search, menus, date picker and time picker pages at 24.\n\ntype GlyphProps = {\n /** The fill. Defaults to the colour of the slot the glyph sits in. */\n readonly color?: ColorValue\n /** The square's side in dp. Defaults to the size of the slot. */\n readonly size?: number\n readonly style?: StyleProp<ViewStyle>\n readonly testID?: string\n}\n\n// What a search view's back button draws, pointing at the page it returns to.\n// It says \"back\" rather than \"to the left\", so it mirrors under a right-to-left\n// layout.\nfunction ArrowBackGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\" />\n </Glyph>\n )\n}\n\n// Which way a sorted column is ordered. Up is ascending and down is\n// descending. Neither mirrors under a right-to-left layout: they say \"up\" and\n// \"down\" rather than \"onward\", and those do not flip.\nfunction ArrowDownwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\" />\n </Glyph>\n )\n}\n\n// What a menu button draws after its label, pointing at the list it opens.\n// Down is down in either writing direction, so it does not mirror.\nfunction ArrowDropDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M7 10l5 5 5-5z\" />\n </Glyph>\n )\n}\n\nfunction ArrowUpwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z\" />\n </Glyph>\n )\n}\n\n// What the date picker's trigger draws: the calendar a date is picked from.\nfunction CalendarGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z\" />\n </Glyph>\n )\n}\n\nfunction CheckGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </Glyph>\n )\n}\n\n// Points down at the menu a split button's second half opens.\nfunction ChevronDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\" />\n </Glyph>\n )\n}\n\n// Points at the submenu a menu item opens. It says \"further in\" rather than\n// \"to the right\", so it mirrors under a right-to-left layout.\nfunction ChevronEndGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d=\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\" />\n </Glyph>\n )\n}\n\n// What the time picker's trigger draws, and the button that takes its keyboard\n// entry back to the dial: the clock a time is picked from.\nfunction ClockGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z\" />\n </Glyph>\n )\n}\n\nfunction CloseGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" />\n </Glyph>\n )\n}\n\n/**\n * The svg every glyph draws: the 24-unit grid its path is on, a square of the\n * slot's size filled in the slot's colour, and nothing a screen reader\n * announces, since the control around a glyph carries the name. A glyph whose\n * direction means \"onward\" or \"back\" passes `mirrored`, which turns it over\n * under a right-to-left layout as `:dir(rtl)` does on web.\n */\nfunction Glyph({\n children,\n color,\n mirrored = false,\n size,\n style,\n testID,\n}: GlyphProps & { readonly children: ReactNode; readonly mirrored?: boolean }) {\n const slot = useIconStyle()\n const side = size ?? slot.size\n return (\n <Svg\n {...HIDDEN}\n color={color ?? slot.color}\n fill=\"currentColor\"\n height={side}\n style={StyleSheet.compose(\n mirrored && I18nManager.isRTL ? glyphStyles.mirrored : undefined,\n style,\n )}\n testID={testID}\n viewBox=\"0 0 24 24\"\n width={side}\n >\n {children}\n </Svg>\n )\n}\n\n// What the time picker's dial draws on the button that switches it to typed\n// entry.\nfunction KeyboardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H4V7h16v10zm-9-9h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z\" />\n </Glyph>\n )\n}\n\n// The same rule stands for a partly selected checkbox and for a stepper's\n// decrement; the two names say which is meant at the call site.\nfunction MinusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 13H5v-2h14v2z\" />\n </Glyph>\n )\n}\n\nconst IndeterminateGlyph = MinusGlyph\n\n// What an avatar with no name to take initials from draws: Material Design's\n// anonymous person, a head over shoulders.\nfunction PersonGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\" />\n </Glyph>\n )\n}\n\nfunction PlusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\" />\n </Glyph>\n )\n}\n\nfunction SearchGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\" />\n </Glyph>\n )\n}\n\nexport {\n ArrowBackGlyph,\n ArrowDownwardGlyph,\n ArrowDropDownGlyph,\n ArrowUpwardGlyph,\n CalendarGlyph,\n CheckGlyph,\n ChevronDownGlyph,\n ChevronEndGlyph,\n ClockGlyph,\n CloseGlyph,\n IndeterminateGlyph,\n KeyboardGlyph,\n MinusGlyph,\n PersonGlyph,\n PlusGlyph,\n SearchGlyph,\n}\nexport type { GlyphProps }\n"],"mappings":";;;;;;;;AA+EA,SAAA4B,WAAAX,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,GAAA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A,KAAAF,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAD,OAAA;EADzNM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ"}
|
package/dist/i18n/index.js
CHANGED
|
@@ -17,7 +17,22 @@ function messagesFor(locale) {
|
|
|
17
17
|
cache.set(resolved, messages);
|
|
18
18
|
return messages;
|
|
19
19
|
}
|
|
20
|
+
function pluralOf(locale, count) {
|
|
21
|
+
if (Intl.PluralRules === void 0) return count === 1 ? "one" : "other";
|
|
22
|
+
return new Intl.PluralRules(locale).select(count);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* How many rows a search leaves, in `locale` or the device's, for a screen
|
|
26
|
+
* reader: the count in the locale's plural form, or the empty row's words
|
|
27
|
+
* when it is none.
|
|
28
|
+
*/
|
|
29
|
+
function resultsFor(count, locale) {
|
|
30
|
+
const resolved = localeOf(locale);
|
|
31
|
+
const messages = messagesFor(resolved);
|
|
32
|
+
if (count === 0) return messages.noResults;
|
|
33
|
+
return (pluralOf(resolved, count) === "one" ? messages.results.one : messages.results.other).replace("{count}", new Intl.NumberFormat(resolved).format(count));
|
|
34
|
+
}
|
|
20
35
|
//#endregion
|
|
21
|
-
export { messagesFor };
|
|
36
|
+
export { messagesFor, resultsFor };
|
|
22
37
|
|
|
23
38
|
//# sourceMappingURL=index.js.map
|
package/dist/i18n/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["LibraryMessages","localeOf","MESSAGES","TABLE","Map","Object","entries","cache","lookUp","locale","tag","split","language","get","find","key","startsWith","messagesFor","resolved","cached","undefined","messages","set"],"sources":["../../src/i18n/index.ts"],"sourcesContent":["import type { LibraryMessages } from './messages'\n\nimport { localeOf } from '../number/locale'\nimport { MESSAGES } from './messages'\n\n// The words the library writes itself, in the locale a component is given or\n// the device's. Web reads them through React Aria's dictionary, in the\n// I18nProvider's locale, and this falls back the way that dictionary does: the\n// table's entry for the locale, then the first for its language, then English,\n// so `fr-CA` reads French and a locale the table lacks reads English.\n\nconst TABLE = new Map(Object.entries(MESSAGES))\n\n// One set per locale an app renders in, looked up the first time a component\n// asks for it.\nconst cache = new Map<string, LibraryMessages>()\n\n// A device's locale can carry a Unicode extension, `pt-PT-u-nu-latn`, which\n// says how numbers are written rather than which words; it is set aside, or\n// `pt-PT` would match no entry and read the first Portuguese one, Brazil's.\nfunction lookUp(locale: string): LibraryMessages {\n const tag = locale.split('-u-')[0]\n const language = tag.split('-')[0]\n\n return (\n TABLE.get(tag) ??\n [...TABLE].find(([key]) => key.startsWith(`${language}-`))?.[1] ??\n MESSAGES['en-US']\n )\n}\n\n/** The library's words in `locale`, or in the device's when given none. */\nfunction messagesFor(locale?: string): LibraryMessages {\n const resolved = localeOf(locale)\n const cached = cache.get(resolved)\n\n if (cached !== undefined) {\n return cached\n }\n\n const messages = lookUp(resolved)\n cache.set(resolved, messages)\n return messages\n}\n\nexport { messagesFor }\nexport type { LibraryMessages }\n"],"mappings":";;;AAWA,MAAMG,QAAQ,IAAIC,IAAIC,OAAOC,QAAQJ,QAAQ,CAAC;AAI9C,MAAMK,wBAAQ,IAAIH,IAA6B;AAK/C,SAASI,OAAOC,QAAiC;CAC/C,MAAMC,MAAMD,OAAOE,MAAM,KAAK,CAAC,CAAC;CAChC,MAAMC,WAAWF,IAAIC,MAAM,GAAG,CAAC,CAAC;CAEhC,OACER,MAAMU,IAAIH,GAAG,KACb,CAAC,GAAGP,KAAK,CAAC,CAACW,MAAM,CAACC,SAASA,IAAIC,WAAW,GAAGJ,SAAQ,EAAG,CAAC,CAAC,GAAG,MAC7DV,SAAS;AAEb;;AAGA,SAASe,YAAYR,QAAkC;CACrD,MAAMS,WAAWjB,SAASQ,MAAM;CAChC,MAAMU,SAASZ,MAAMM,IAAIK,QAAQ;CAEjC,IAAIC,WAAWC,KAAAA,GACb,OAAOD;CAGT,MAAME,WAAWb,OAAOU,QAAQ;CAChCX,MAAMe,IAAIJ,UAAUG,QAAQ;CAC5B,OAAOA;AACT"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["LibraryMessages","localeOf","MESSAGES","TABLE","Map","Object","entries","cache","lookUp","locale","tag","split","language","get","find","key","startsWith","messagesFor","resolved","cached","undefined","messages","set","pluralOf","count","Intl","PluralRules","select","resultsFor","noResults","form","results","one","other","replace","NumberFormat","format"],"sources":["../../src/i18n/index.ts"],"sourcesContent":["import type { LibraryMessages } from './messages'\n\nimport { localeOf } from '../number/locale'\nimport { MESSAGES } from './messages'\n\n// The words the library writes itself, in the locale a component is given or\n// the device's. Web reads them through React Aria's dictionary, in the\n// I18nProvider's locale, and this falls back the way that dictionary does: the\n// table's entry for the locale, then the first for its language, then English,\n// so `fr-CA` reads French and a locale the table lacks reads English.\n\nconst TABLE = new Map(Object.entries(MESSAGES))\n\n// One set per locale an app renders in, looked up the first time a component\n// asks for it.\nconst cache = new Map<string, LibraryMessages>()\n\n// A device's locale can carry a Unicode extension, `pt-PT-u-nu-latn`, which\n// says how numbers are written rather than which words; it is set aside, or\n// `pt-PT` would match no entry and read the first Portuguese one, Brazil's.\nfunction lookUp(locale: string): LibraryMessages {\n const tag = locale.split('-u-')[0]\n const language = tag.split('-')[0]\n\n return (\n TABLE.get(tag) ??\n [...TABLE].find(([key]) => key.startsWith(`${language}-`))?.[1] ??\n MESSAGES['en-US']\n )\n}\n\n/** The library's words in `locale`, or in the device's when given none. */\nfunction messagesFor(locale?: string): LibraryMessages {\n const resolved = localeOf(locale)\n const cached = cache.get(resolved)\n\n if (cached !== undefined) {\n return cached\n }\n\n const messages = lookUp(resolved)\n cache.set(resolved, messages)\n return messages\n}\n\n// The plural form a count takes in `locale`. Hermes has not always shipped\n// `Intl.PluralRules`, and where it is missing a count of one takes the\n// singular and any other the plural, which is English's rule.\nfunction pluralOf(locale: string, count: number) {\n // oxlint-disable-next-line typescript/no-unnecessary-condition -- typed as always there, which a runtime without it is not\n if (Intl.PluralRules === undefined) {\n return count === 1 ? 'one' : 'other'\n }\n\n return new Intl.PluralRules(locale).select(count)\n}\n\n/**\n * How many rows a search leaves, in `locale` or the device's, for a screen\n * reader: the count in the locale's plural form, or the empty row's words\n * when it is none.\n */\nfunction resultsFor(count: number, locale?: string): string {\n const resolved = localeOf(locale)\n const messages = messagesFor(resolved)\n\n if (count === 0) {\n return messages.noResults\n }\n\n const form =\n pluralOf(resolved, count) === 'one'\n ? messages.results.one\n : messages.results.other\n\n return form.replace('{count}', new Intl.NumberFormat(resolved).format(count))\n}\n\nexport { messagesFor, resultsFor }\nexport type { LibraryMessages }\n"],"mappings":";;;AAWA,MAAMG,QAAQ,IAAIC,IAAIC,OAAOC,QAAQJ,QAAQ,CAAC;AAI9C,MAAMK,wBAAQ,IAAIH,IAA6B;AAK/C,SAASI,OAAOC,QAAiC;CAC/C,MAAMC,MAAMD,OAAOE,MAAM,KAAK,CAAC,CAAC;CAChC,MAAMC,WAAWF,IAAIC,MAAM,GAAG,CAAC,CAAC;CAEhC,OACER,MAAMU,IAAIH,GAAG,KACb,CAAC,GAAGP,KAAK,CAAC,CAACW,MAAM,CAACC,SAASA,IAAIC,WAAW,GAAGJ,SAAQ,EAAG,CAAC,CAAC,GAAG,MAC7DV,SAAS;AAEb;;AAGA,SAASe,YAAYR,QAAkC;CACrD,MAAMS,WAAWjB,SAASQ,MAAM;CAChC,MAAMU,SAASZ,MAAMM,IAAIK,QAAQ;CAEjC,IAAIC,WAAWC,KAAAA,GACb,OAAOD;CAGT,MAAME,WAAWb,OAAOU,QAAQ;CAChCX,MAAMe,IAAIJ,UAAUG,QAAQ;CAC5B,OAAOA;AACT;AAKA,SAASE,SAASd,QAAgBe,OAAe;CAE/C,IAAIC,KAAKC,gBAAgBN,KAAAA,GACvB,OAAOI,UAAU,IAAI,QAAQ;CAG/B,OAAO,IAAIC,KAAKC,YAAYjB,MAAM,CAAC,CAACkB,OAAOH,KAAK;AAClD;;;;;;AAOA,SAASI,WAAWJ,OAAef,QAAyB;CAC1D,MAAMS,WAAWjB,SAASQ,MAAM;CAChC,MAAMY,WAAWJ,YAAYC,QAAQ;CAErC,IAAIM,UAAU,GACZ,OAAOH,SAASQ;CAQlB,QAJEN,SAASL,UAAUM,KAAK,MAAM,QAC1BH,SAASU,QAAQC,MACjBX,SAASU,QAAQE,MAAAA,CAEXC,QAAQ,WAAW,IAAIT,KAAKU,aAAajB,QAAQ,CAAC,CAACkB,OAAOZ,KAAK,CAAC;AAC9E"}
|
package/dist/i18n/messages.js
CHANGED
|
@@ -2,139 +2,377 @@
|
|
|
2
2
|
const MESSAGES = {
|
|
3
3
|
"ar-AE": {
|
|
4
4
|
dragHandle: "مقبض السحب",
|
|
5
|
-
loading: "جارٍ التحميل"
|
|
5
|
+
loading: "جارٍ التحميل",
|
|
6
|
+
loadingMore: "جارٍ تحميل المزيد",
|
|
7
|
+
noResults: "لا توجد نتائج",
|
|
8
|
+
results: {
|
|
9
|
+
one: "{count} خيار متاحة.",
|
|
10
|
+
other: "{count} خيارات متاحة."
|
|
11
|
+
},
|
|
12
|
+
select: "تحديد"
|
|
6
13
|
},
|
|
7
14
|
"bg-BG": {
|
|
8
15
|
dragHandle: "Манипулатор за плъзгане",
|
|
9
|
-
loading: "Зареждане"
|
|
16
|
+
loading: "Зареждане",
|
|
17
|
+
loadingMore: "Зареждане на още",
|
|
18
|
+
noResults: "Няма резултати",
|
|
19
|
+
results: {
|
|
20
|
+
one: "{count} опция на разположение.",
|
|
21
|
+
other: "{count} опции на разположение."
|
|
22
|
+
},
|
|
23
|
+
select: "Изберете"
|
|
10
24
|
},
|
|
11
25
|
"cs-CZ": {
|
|
12
26
|
dragHandle: "Úchyt pro přetažení",
|
|
13
|
-
loading: "Načítání"
|
|
27
|
+
loading: "Načítání",
|
|
28
|
+
loadingMore: "Načítání dalších",
|
|
29
|
+
noResults: "Žádné výsledky",
|
|
30
|
+
results: {
|
|
31
|
+
one: "K dispozici je {count} možnost.",
|
|
32
|
+
other: "K dispozici jsou/je {count} možnosti/-í."
|
|
33
|
+
},
|
|
34
|
+
select: "Vybrat"
|
|
14
35
|
},
|
|
15
36
|
"da-DK": {
|
|
16
37
|
dragHandle: "Trækhåndtag",
|
|
17
|
-
loading: "Indlæser"
|
|
38
|
+
loading: "Indlæser",
|
|
39
|
+
loadingMore: "Indlæser flere",
|
|
40
|
+
noResults: "Ingen resultater",
|
|
41
|
+
results: {
|
|
42
|
+
one: "{count} mulighed tilgængelig.",
|
|
43
|
+
other: "{count} muligheder tilgængelige."
|
|
44
|
+
},
|
|
45
|
+
select: "Vælg"
|
|
18
46
|
},
|
|
19
47
|
"de-DE": {
|
|
20
48
|
dragHandle: "Ziehpunkt",
|
|
21
|
-
loading: "Wird geladen"
|
|
49
|
+
loading: "Wird geladen",
|
|
50
|
+
loadingMore: "Weitere werden geladen",
|
|
51
|
+
noResults: "Keine Ergebnisse",
|
|
52
|
+
results: {
|
|
53
|
+
one: "{count} Option verfügbar.",
|
|
54
|
+
other: "{count} Optionen verfügbar."
|
|
55
|
+
},
|
|
56
|
+
select: "Auswählen"
|
|
22
57
|
},
|
|
23
58
|
"el-GR": {
|
|
24
59
|
dragHandle: "Λαβή μεταφοράς",
|
|
25
|
-
loading: "Φόρτωση"
|
|
60
|
+
loading: "Φόρτωση",
|
|
61
|
+
loadingMore: "Φόρτωση περισσότερων",
|
|
62
|
+
noResults: "Δεν υπάρχουν αποτελέσματα",
|
|
63
|
+
results: {
|
|
64
|
+
one: "{count} επιλογή διαθέσιμες.",
|
|
65
|
+
other: "{count} επιλογές διαθέσιμες."
|
|
66
|
+
},
|
|
67
|
+
select: "Επιλογή"
|
|
26
68
|
},
|
|
27
69
|
"en-US": {
|
|
28
70
|
dragHandle: "Drag handle",
|
|
29
|
-
loading: "Loading"
|
|
71
|
+
loading: "Loading",
|
|
72
|
+
loadingMore: "Loading more",
|
|
73
|
+
noResults: "No results",
|
|
74
|
+
results: {
|
|
75
|
+
one: "{count} option available.",
|
|
76
|
+
other: "{count} options available."
|
|
77
|
+
},
|
|
78
|
+
select: "Select"
|
|
30
79
|
},
|
|
31
80
|
"es-ES": {
|
|
32
81
|
dragHandle: "Control de arrastre",
|
|
33
|
-
loading: "Cargando"
|
|
82
|
+
loading: "Cargando",
|
|
83
|
+
loadingMore: "Cargando más",
|
|
84
|
+
noResults: "No hay resultados",
|
|
85
|
+
results: {
|
|
86
|
+
one: "{count} opción disponible(s).",
|
|
87
|
+
other: "{count} opciones disponible(s)."
|
|
88
|
+
},
|
|
89
|
+
select: "Seleccionar"
|
|
34
90
|
},
|
|
35
91
|
"et-EE": {
|
|
36
92
|
dragHandle: "Lohistamispide",
|
|
37
|
-
loading: "Laadimine"
|
|
93
|
+
loading: "Laadimine",
|
|
94
|
+
loadingMore: "Laaditakse veel",
|
|
95
|
+
noResults: "Tulemusi pole",
|
|
96
|
+
results: {
|
|
97
|
+
one: "{count} valik saadaval.",
|
|
98
|
+
other: "{count} valikud saadaval."
|
|
99
|
+
},
|
|
100
|
+
select: "Vali"
|
|
38
101
|
},
|
|
39
102
|
"fi-FI": {
|
|
40
103
|
dragHandle: "Vetokahva",
|
|
41
|
-
loading: "Ladataan"
|
|
104
|
+
loading: "Ladataan",
|
|
105
|
+
loadingMore: "Ladataan lisää",
|
|
106
|
+
noResults: "Ei tuloksia",
|
|
107
|
+
results: {
|
|
108
|
+
one: "{count} vaihtoehto saatavilla.",
|
|
109
|
+
other: "{count} vaihtoehtoa saatavilla."
|
|
110
|
+
},
|
|
111
|
+
select: "Valitse"
|
|
42
112
|
},
|
|
43
113
|
"fr-FR": {
|
|
44
114
|
dragHandle: "Poignée de déplacement",
|
|
45
|
-
loading: "Chargement"
|
|
115
|
+
loading: "Chargement",
|
|
116
|
+
loadingMore: "Chargement de la suite",
|
|
117
|
+
noResults: "Aucun résultat",
|
|
118
|
+
results: {
|
|
119
|
+
one: "{count} option disponible(s).",
|
|
120
|
+
other: "{count} options disponible(s)."
|
|
121
|
+
},
|
|
122
|
+
select: "Sélectionner"
|
|
46
123
|
},
|
|
47
124
|
"he-IL": {
|
|
48
125
|
dragHandle: "ידית גרירה",
|
|
49
|
-
loading: "טוען"
|
|
126
|
+
loading: "טוען",
|
|
127
|
+
loadingMore: "טוען עוד",
|
|
128
|
+
noResults: "אין תוצאות",
|
|
129
|
+
results: {
|
|
130
|
+
one: "אפשרות {count} במצב זמין.",
|
|
131
|
+
other: "{count} אפשרויות במצב זמין."
|
|
132
|
+
},
|
|
133
|
+
select: "בחר"
|
|
50
134
|
},
|
|
51
135
|
"hr-HR": {
|
|
52
136
|
dragHandle: "Ručica za povlačenje",
|
|
53
|
-
loading: "Učitavanje"
|
|
137
|
+
loading: "Učitavanje",
|
|
138
|
+
loadingMore: "Učitava se još",
|
|
139
|
+
noResults: "Nema rezultata",
|
|
140
|
+
results: {
|
|
141
|
+
one: "Dostupno još: {count} opcija.",
|
|
142
|
+
other: "Dostupno još: {count} opcije/a."
|
|
143
|
+
},
|
|
144
|
+
select: "Odaberite"
|
|
54
145
|
},
|
|
55
146
|
"hu-HU": {
|
|
56
147
|
dragHandle: "Húzófogantyú",
|
|
57
|
-
loading: "Betöltés"
|
|
148
|
+
loading: "Betöltés",
|
|
149
|
+
loadingMore: "Továbbiak betöltése",
|
|
150
|
+
noResults: "Nincs találat",
|
|
151
|
+
results: {
|
|
152
|
+
one: "{count} lehetőség áll rendelkezésre.",
|
|
153
|
+
other: "{count} lehetőség áll rendelkezésre."
|
|
154
|
+
},
|
|
155
|
+
select: "Kijelölés"
|
|
58
156
|
},
|
|
59
157
|
"it-IT": {
|
|
60
158
|
dragHandle: "Punto di trascinamento",
|
|
61
|
-
loading: "Caricamento"
|
|
159
|
+
loading: "Caricamento",
|
|
160
|
+
loadingMore: "Caricamento di altri elementi",
|
|
161
|
+
noResults: "Nessun risultato",
|
|
162
|
+
results: {
|
|
163
|
+
one: "{count} opzione disponibile.",
|
|
164
|
+
other: "{count} opzioni disponibili."
|
|
165
|
+
},
|
|
166
|
+
select: "Seleziona"
|
|
62
167
|
},
|
|
63
168
|
"ja-JP": {
|
|
64
169
|
dragHandle: "ドラッグハンドル",
|
|
65
|
-
loading: "読み込み中"
|
|
170
|
+
loading: "読み込み中",
|
|
171
|
+
loadingMore: "さらに読み込み中",
|
|
172
|
+
noResults: "結果がありません",
|
|
173
|
+
results: {
|
|
174
|
+
one: "{count} 個のオプションを利用できます。",
|
|
175
|
+
other: "{count} 個のオプションを利用できます。"
|
|
176
|
+
},
|
|
177
|
+
select: "選択"
|
|
66
178
|
},
|
|
67
179
|
"ko-KR": {
|
|
68
180
|
dragHandle: "드래그 핸들",
|
|
69
|
-
loading: "로드 중"
|
|
181
|
+
loading: "로드 중",
|
|
182
|
+
loadingMore: "더 로드하는 중",
|
|
183
|
+
noResults: "결과 없음",
|
|
184
|
+
results: {
|
|
185
|
+
one: "{count}개 옵션을 사용할 수 있습니다.",
|
|
186
|
+
other: "{count}개 옵션을 사용할 수 있습니다."
|
|
187
|
+
},
|
|
188
|
+
select: "선택"
|
|
70
189
|
},
|
|
71
190
|
"lt-LT": {
|
|
72
191
|
dragHandle: "Vilkimo rankenėlė",
|
|
73
|
-
loading: "Įkeliama"
|
|
192
|
+
loading: "Įkeliama",
|
|
193
|
+
loadingMore: "Įkeliama daugiau",
|
|
194
|
+
noResults: "Rezultatų nėra",
|
|
195
|
+
results: {
|
|
196
|
+
one: "Yra {count} parinktis.",
|
|
197
|
+
other: "Yra {count} parinktys (-ių)."
|
|
198
|
+
},
|
|
199
|
+
select: "Pasirinkti"
|
|
74
200
|
},
|
|
75
201
|
"lv-LV": {
|
|
76
202
|
dragHandle: "Vilkšanas turis",
|
|
77
|
-
loading: "Notiek ielāde"
|
|
203
|
+
loading: "Notiek ielāde",
|
|
204
|
+
loadingMore: "Notiek papildu ielāde",
|
|
205
|
+
noResults: "Nav rezultātu",
|
|
206
|
+
results: {
|
|
207
|
+
one: "Pieejamo opciju skaits: {count} opcija.",
|
|
208
|
+
other: "Pieejamo opciju skaits: {count} opcijas."
|
|
209
|
+
},
|
|
210
|
+
select: "Atlasīt"
|
|
78
211
|
},
|
|
79
212
|
"nb-NO": {
|
|
80
213
|
dragHandle: "Drahåndtak",
|
|
81
|
-
loading: "Laster inn"
|
|
214
|
+
loading: "Laster inn",
|
|
215
|
+
loadingMore: "Laster inn flere",
|
|
216
|
+
noResults: "Ingen resultater",
|
|
217
|
+
results: {
|
|
218
|
+
one: "{count} alternativ finnes.",
|
|
219
|
+
other: "{count} alternativer finnes."
|
|
220
|
+
},
|
|
221
|
+
select: "Velg"
|
|
82
222
|
},
|
|
83
223
|
"nl-NL": {
|
|
84
224
|
dragHandle: "Sleepgreep",
|
|
85
|
-
loading: "Laden"
|
|
225
|
+
loading: "Laden",
|
|
226
|
+
loadingMore: "Meer laden",
|
|
227
|
+
noResults: "Geen resultaten",
|
|
228
|
+
results: {
|
|
229
|
+
one: "{count} optie beschikbaar.",
|
|
230
|
+
other: "{count} opties beschikbaar."
|
|
231
|
+
},
|
|
232
|
+
select: "Selecteren"
|
|
86
233
|
},
|
|
87
234
|
"pl-PL": {
|
|
88
235
|
dragHandle: "Uchwyt do przeciągania",
|
|
89
|
-
loading: "Ładowanie"
|
|
236
|
+
loading: "Ładowanie",
|
|
237
|
+
loadingMore: "Ładowanie kolejnych",
|
|
238
|
+
noResults: "Brak wyników",
|
|
239
|
+
results: {
|
|
240
|
+
one: "dostępna/dostępne(-nych) {count} opcja.",
|
|
241
|
+
other: "dostępna/dostępne(-nych) {count} opcje(-i)."
|
|
242
|
+
},
|
|
243
|
+
select: "Zaznacz"
|
|
90
244
|
},
|
|
91
245
|
"pt-BR": {
|
|
92
246
|
dragHandle: "Alça de arrastar",
|
|
93
|
-
loading: "Carregando"
|
|
247
|
+
loading: "Carregando",
|
|
248
|
+
loadingMore: "Carregando mais",
|
|
249
|
+
noResults: "Nenhum resultado",
|
|
250
|
+
results: {
|
|
251
|
+
one: "{count} opção disponível.",
|
|
252
|
+
other: "{count} opções disponível."
|
|
253
|
+
},
|
|
254
|
+
select: "Selecionar"
|
|
94
255
|
},
|
|
95
256
|
"pt-PT": {
|
|
96
257
|
dragHandle: "Pega para arrastar",
|
|
97
|
-
loading: "A carregar"
|
|
258
|
+
loading: "A carregar",
|
|
259
|
+
loadingMore: "A carregar mais",
|
|
260
|
+
noResults: "Nenhum resultado",
|
|
261
|
+
results: {
|
|
262
|
+
one: "{count} opção disponível.",
|
|
263
|
+
other: "{count} opções disponível."
|
|
264
|
+
},
|
|
265
|
+
select: "Selecionar"
|
|
98
266
|
},
|
|
99
267
|
"ro-RO": {
|
|
100
268
|
dragHandle: "Mâner de tragere",
|
|
101
|
-
loading: "Se încarcă"
|
|
269
|
+
loading: "Se încarcă",
|
|
270
|
+
loadingMore: "Se încarcă mai multe",
|
|
271
|
+
noResults: "Niciun rezultat",
|
|
272
|
+
results: {
|
|
273
|
+
one: "{count} opțiune disponibile.",
|
|
274
|
+
other: "{count} opțiuni disponibile."
|
|
275
|
+
},
|
|
276
|
+
select: "Selectare"
|
|
102
277
|
},
|
|
103
278
|
"ru-RU": {
|
|
104
279
|
dragHandle: "Маркер перемещения",
|
|
105
|
-
loading: "Загрузка"
|
|
280
|
+
loading: "Загрузка",
|
|
281
|
+
loadingMore: "Загрузка ещё",
|
|
282
|
+
noResults: "Нет результатов",
|
|
283
|
+
results: {
|
|
284
|
+
one: "{count} параметр доступно.",
|
|
285
|
+
other: "{count} параметров доступно."
|
|
286
|
+
},
|
|
287
|
+
select: "Выбрать"
|
|
106
288
|
},
|
|
107
289
|
"sk-SK": {
|
|
108
290
|
dragHandle: "Úchyt na presúvanie",
|
|
109
|
-
loading: "Načítava sa"
|
|
291
|
+
loading: "Načítava sa",
|
|
292
|
+
loadingMore: "Načítavajú sa ďalšie",
|
|
293
|
+
noResults: "Žiadne výsledky",
|
|
294
|
+
results: {
|
|
295
|
+
one: "{count} možnosť k dispozícii.",
|
|
296
|
+
other: "{count} možnosti/-í k dispozícii."
|
|
297
|
+
},
|
|
298
|
+
select: "Vybrať"
|
|
110
299
|
},
|
|
111
300
|
"sl-SI": {
|
|
112
301
|
dragHandle: "Ročica za vlečenje",
|
|
113
|
-
loading: "Nalaganje"
|
|
302
|
+
loading: "Nalaganje",
|
|
303
|
+
loadingMore: "Nalaganje več",
|
|
304
|
+
noResults: "Ni rezultatov",
|
|
305
|
+
results: {
|
|
306
|
+
one: "Na voljo je {count} opcija.",
|
|
307
|
+
other: "Na voljo je {count} opcije."
|
|
308
|
+
},
|
|
309
|
+
select: "Izberite"
|
|
114
310
|
},
|
|
115
311
|
"sr-SP": {
|
|
116
312
|
dragHandle: "Ručica za prevlačenje",
|
|
117
|
-
loading: "Učitavanje"
|
|
313
|
+
loading: "Učitavanje",
|
|
314
|
+
loadingMore: "Učitavanje još",
|
|
315
|
+
noResults: "Nema rezultata",
|
|
316
|
+
results: {
|
|
317
|
+
one: "Dostupno još: {count} opcija.",
|
|
318
|
+
other: "Dostupno još: {count} opcije/a."
|
|
319
|
+
},
|
|
320
|
+
select: "Izaberite"
|
|
118
321
|
},
|
|
119
322
|
"sv-SE": {
|
|
120
323
|
dragHandle: "Draghandtag",
|
|
121
|
-
loading: "Läser in"
|
|
324
|
+
loading: "Läser in",
|
|
325
|
+
loadingMore: "Läser in fler",
|
|
326
|
+
noResults: "Inga resultat",
|
|
327
|
+
results: {
|
|
328
|
+
one: "{count} alternativ tillgängliga.",
|
|
329
|
+
other: "{count} alternativ tillgängliga."
|
|
330
|
+
},
|
|
331
|
+
select: "Markera"
|
|
122
332
|
},
|
|
123
333
|
"tr-TR": {
|
|
124
334
|
dragHandle: "Sürükleme tutamacı",
|
|
125
|
-
loading: "Yükleniyor"
|
|
335
|
+
loading: "Yükleniyor",
|
|
336
|
+
loadingMore: "Daha fazlası yükleniyor",
|
|
337
|
+
noResults: "Sonuç yok",
|
|
338
|
+
results: {
|
|
339
|
+
one: "{count} seçenek kullanılabilir.",
|
|
340
|
+
other: "{count} seçenekler kullanılabilir."
|
|
341
|
+
},
|
|
342
|
+
select: "Seç"
|
|
126
343
|
},
|
|
127
344
|
"uk-UA": {
|
|
128
345
|
dragHandle: "Маркер переміщення",
|
|
129
|
-
loading: "Завантаження"
|
|
346
|
+
loading: "Завантаження",
|
|
347
|
+
loadingMore: "Завантаження ще",
|
|
348
|
+
noResults: "Немає результатів",
|
|
349
|
+
results: {
|
|
350
|
+
one: "{count} параметр доступно.",
|
|
351
|
+
other: "{count} параметри(-ів) доступно."
|
|
352
|
+
},
|
|
353
|
+
select: "Вибрати"
|
|
130
354
|
},
|
|
131
355
|
"zh-CN": {
|
|
132
356
|
dragHandle: "拖动手柄",
|
|
133
|
-
loading: "正在加载"
|
|
357
|
+
loading: "正在加载",
|
|
358
|
+
loadingMore: "正在加载更多",
|
|
359
|
+
noResults: "没有结果",
|
|
360
|
+
results: {
|
|
361
|
+
one: "有 {count} 个选项可用。",
|
|
362
|
+
other: "有 {count} 个选项可用。"
|
|
363
|
+
},
|
|
364
|
+
select: "选择"
|
|
134
365
|
},
|
|
135
366
|
"zh-TW": {
|
|
136
367
|
dragHandle: "拖曳控點",
|
|
137
|
-
loading: "正在載入"
|
|
368
|
+
loading: "正在載入",
|
|
369
|
+
loadingMore: "正在載入更多",
|
|
370
|
+
noResults: "沒有結果",
|
|
371
|
+
results: {
|
|
372
|
+
one: "{count} 選項 可用。",
|
|
373
|
+
other: "{count} 選項 可用。"
|
|
374
|
+
},
|
|
375
|
+
select: "選取"
|
|
138
376
|
}
|
|
139
377
|
};
|
|
140
378
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","names":["LibraryMessages","dragHandle","loading","MESSAGES","Readonly","Record"],"sources":["../../src/i18n/messages.ts"],"sourcesContent":["// The words the library writes itself: the pending ring's name and a bottom\n// sheet's drag handle. Each one stands behind a prop that names it otherwise,\n// `pendingLabel` for the ring and `aria-label` for the handle.\n//\n// Copied from kanso-ui's src/i18n/messages.ts, one entry per locale React\n// Aria ships, and kept in step with it by hand: the web library publishes no\n// copy of its table, and a word that differs between the two would name the\n// same ring two ways. The handle's name is this table's alone, since web's\n// sheet draws its handle as decoration and names nothing. The translations\n// were drafted for that table rather than taken from a translation service,\n// and each one wants a native speaker's eye before it is trusted; a call site\n// can always pass its own words through the prop.\n\ntype LibraryMessages = {\n /** What a bottom sheet's handle is called, where it is a control. */\n readonly dragHandle: string\n /** What a pending button's ring is called. */\n readonly loading: string\n}\n\nconst MESSAGES: Readonly<Record<string, LibraryMessages>> = {\n 'ar-AE': { dragHandle: 'مقبض السحب', loading: 'جارٍ التحميل' },\n 'bg-BG': { dragHandle: 'Манипулатор за плъзгане', loading: 'Зареждане' },\n 'cs-CZ': { dragHandle: 'Úchyt pro přetažení', loading: 'Načítání' },\n 'da-DK': { dragHandle: 'Trækhåndtag', loading: 'Indlæser' },\n 'de-DE': { dragHandle: 'Ziehpunkt', loading: 'Wird geladen' },\n 'el-GR': { dragHandle: 'Λαβή μεταφοράς', loading: 'Φόρτωση' },\n 'en-US': { dragHandle: 'Drag handle', loading: 'Loading' },\n 'es-ES': { dragHandle: 'Control de arrastre', loading: 'Cargando' },\n 'et-EE': { dragHandle: 'Lohistamispide', loading: 'Laadimine' },\n 'fi-FI': { dragHandle: 'Vetokahva', loading: 'Ladataan' },\n 'fr-FR': { dragHandle: 'Poignée de déplacement', loading: 'Chargement' },\n 'he-IL': { dragHandle: 'ידית גרירה', loading: 'טוען' },\n 'hr-HR': { dragHandle: 'Ručica za povlačenje', loading: 'Učitavanje' },\n 'hu-HU': { dragHandle: 'Húzófogantyú', loading: 'Betöltés' },\n 'it-IT': { dragHandle: 'Punto di trascinamento', loading: 'Caricamento' },\n 'ja-JP': { dragHandle: 'ドラッグハンドル', loading: '読み込み中' },\n 'ko-KR': { dragHandle: '드래그 핸들', loading: '로드 중' },\n 'lt-LT': { dragHandle: 'Vilkimo rankenėlė', loading: 'Įkeliama' },\n 'lv-LV': { dragHandle: 'Vilkšanas turis', loading: 'Notiek ielāde' },\n 'nb-NO': { dragHandle: 'Drahåndtak', loading: 'Laster inn' },\n 'nl-NL': { dragHandle: 'Sleepgreep', loading: 'Laden' },\n 'pl-PL': { dragHandle: 'Uchwyt do przeciągania', loading: 'Ładowanie' },\n 'pt-BR': { dragHandle: 'Alça de arrastar', loading: 'Carregando' },\n 'pt-PT': { dragHandle: 'Pega para arrastar', loading: 'A carregar' },\n 'ro-RO': { dragHandle: 'Mâner de tragere', loading: 'Se încarcă' },\n 'ru-RU': { dragHandle: 'Маркер перемещения', loading: 'Загрузка' },\n 'sk-SK': { dragHandle: 'Úchyt na presúvanie', loading: 'Načítava sa' },\n 'sl-SI': { dragHandle: 'Ročica za vlečenje', loading: 'Nalaganje' },\n 'sr-SP': { dragHandle: 'Ručica za prevlačenje', loading: 'Učitavanje' },\n 'sv-SE': { dragHandle: 'Draghandtag', loading: 'Läser in' },\n 'tr-TR': { dragHandle: 'Sürükleme tutamacı', loading: 'Yükleniyor' },\n 'uk-UA': { dragHandle: 'Маркер переміщення', loading: 'Завантаження' },\n 'zh-CN': { dragHandle: '拖动手柄', loading: '正在加载' },\n 'zh-TW': { dragHandle: '拖曳控點', loading: '正在載入' },\n}\n\nexport { MESSAGES }\nexport type { LibraryMessages }\n"],"mappings":";AAoBA,MAAMG,WAAsD;CAC1D,SAAS;EAAEF,YAAY;EAAcC,SAAS;CAAe;CAC7D,SAAS;EAAED,YAAY;EAA2BC,SAAS;CAAY;CACvE,SAAS;EAAED,YAAY;EAAuBC,SAAS;CAAW;CAClE,SAAS;EAAED,YAAY;EAAeC,SAAS;CAAW;CAC1D,SAAS;EAAED,YAAY;EAAaC,SAAS;CAAe;CAC5D,SAAS;EAAED,YAAY;EAAkBC,SAAS;CAAU;CAC5D,SAAS;EAAED,YAAY;EAAeC,SAAS;CAAU;CACzD,SAAS;EAAED,YAAY;EAAuBC,SAAS;CAAW;CAClE,SAAS;EAAED,YAAY;EAAkBC,SAAS;CAAY;CAC9D,SAAS;EAAED,YAAY;EAAaC,SAAS;CAAW;CACxD,SAAS;EAAED,YAAY;EAA0BC,SAAS;CAAa;CACvE,SAAS;EAAED,YAAY;EAAcC,SAAS;CAAO;CACrD,SAAS;EAAED,YAAY;EAAwBC,SAAS;CAAa;CACrE,SAAS;EAAED,YAAY;EAAgBC,SAAS;CAAW;CAC3D,SAAS;EAAED,YAAY;EAA0BC,SAAS;CAAc;CACxE,SAAS;EAAED,YAAY;EAAYC,SAAS;CAAQ;CACpD,SAAS;EAAED,YAAY;EAAUC,SAAS;CAAO;CACjD,SAAS;EAAED,YAAY;EAAqBC,SAAS;CAAW;CAChE,SAAS;EAAED,YAAY;EAAmBC,SAAS;CAAgB;CACnE,SAAS;EAAED,YAAY;EAAcC,SAAS;CAAa;CAC3D,SAAS;EAAED,YAAY;EAAcC,SAAS;CAAQ;CACtD,SAAS;EAAED,YAAY;EAA0BC,SAAS;CAAY;CACtE,SAAS;EAAED,YAAY;EAAoBC,SAAS;CAAa;CACjE,SAAS;EAAED,YAAY;EAAsBC,SAAS;CAAa;CACnE,SAAS;EAAED,YAAY;EAAoBC,SAAS;CAAa;CACjE,SAAS;EAAED,YAAY;EAAsBC,SAAS;CAAW;CACjE,SAAS;EAAED,YAAY;EAAuBC,SAAS;CAAc;CACrE,SAAS;EAAED,YAAY;EAAsBC,SAAS;CAAY;CAClE,SAAS;EAAED,YAAY;EAAyBC,SAAS;CAAa;CACtE,SAAS;EAAED,YAAY;EAAeC,SAAS;CAAW;CAC1D,SAAS;EAAED,YAAY;EAAsBC,SAAS;CAAa;CACnE,SAAS;EAAED,YAAY;EAAsBC,SAAS;CAAe;CACrE,SAAS;EAAED,YAAY;EAAQC,SAAS;CAAO;CAC/C,SAAS;EAAED,YAAY;EAAQC,SAAS;CAAO;AACjD"}
|
|
1
|
+
{"version":3,"file":"messages.js","names":["LibraryMessages","dragHandle","loading","loadingMore","noResults","results","one","other","select","MESSAGES","Readonly","Record"],"sources":["../../src/i18n/messages.ts"],"sourcesContent":["// The words the library writes itself: the pending ring's name, a bottom\n// sheet's drag handle, a collection's loading-more and empty rows, what\n// selecting a list's row is called, and how many rows a search leaves. Each\n// but the last stands behind a prop that names it otherwise: `pendingLabel`\n// for the ring, `aria-label` for the handle, `label` for the loading-more\n// row, `renderEmptyState` for the empty one and `selectLabel` for the\n// selection.\n//\n// Copied from kanso-ui's src/i18n/messages.ts, one entry per locale React\n// Aria ships, and kept in step with it by hand: the web library publishes no\n// copy of its table, and a word that differs between the two would name the\n// same ring two ways. The handle's name is this table's alone, since web's\n// sheet draws its handle as decoration and names nothing. `select` is React\n// Aria's own word for a grid list row's checkbox, which web's List takes\n// from React Aria's tables rather than its own, copied here so the two read\n// the same. `results` is React Aria's too, the count its ComboBox announces,\n// which Autocomplete announces as a search narrows a list. The others were\n// drafted for kanso-ui's table rather than taken from a translation service,\n// and each one wants a native speaker's eye before it is trusted; a call\n// site can always pass its own words through the prop.\n\ntype LibraryMessages = {\n /** What a bottom sheet's handle is called, where it is a control. */\n readonly dragHandle: string\n /** What a pending button's ring is called. */\n readonly loading: string\n /** What a collection's row says while more items are on their way. */\n readonly loadingMore: string\n /** What a collection with nothing in it says. */\n readonly noResults: string\n /**\n * How many rows a search leaves, for a screen reader, in the plural\n * forms React Aria's table gives the locale; `{count}` is the number.\n */\n readonly results: {\n readonly one: string\n readonly other: string\n }\n /** What selecting a list's row is called, beside its checkbox. */\n readonly select: string\n}\n\nconst MESSAGES: Readonly<Record<string, LibraryMessages>> = {\n 'ar-AE': {\n dragHandle: 'مقبض السحب',\n loading: 'جارٍ التحميل',\n loadingMore: 'جارٍ تحميل المزيد',\n noResults: 'لا توجد نتائج',\n results: {\n one: '{count} خيار متاحة.',\n other: '{count} خيارات متاحة.',\n },\n select: 'تحديد',\n },\n 'bg-BG': {\n dragHandle: 'Манипулатор за плъзгане',\n loading: 'Зареждане',\n loadingMore: 'Зареждане на още',\n noResults: 'Няма резултати',\n results: {\n one: '{count} опция на разположение.',\n other: '{count} опции на разположение.',\n },\n select: 'Изберете',\n },\n 'cs-CZ': {\n dragHandle: 'Úchyt pro přetažení',\n loading: 'Načítání',\n loadingMore: 'Načítání dalších',\n noResults: 'Žádné výsledky',\n results: {\n one: 'K dispozici je {count} možnost.',\n other: 'K dispozici jsou/je {count} možnosti/-í.',\n },\n select: 'Vybrat',\n },\n 'da-DK': {\n dragHandle: 'Trækhåndtag',\n loading: 'Indlæser',\n loadingMore: 'Indlæser flere',\n noResults: 'Ingen resultater',\n results: {\n one: '{count} mulighed tilgængelig.',\n other: '{count} muligheder tilgængelige.',\n },\n select: 'Vælg',\n },\n 'de-DE': {\n dragHandle: 'Ziehpunkt',\n loading: 'Wird geladen',\n loadingMore: 'Weitere werden geladen',\n noResults: 'Keine Ergebnisse',\n results: {\n one: '{count} Option verfügbar.',\n other: '{count} Optionen verfügbar.',\n },\n select: 'Auswählen',\n },\n 'el-GR': {\n dragHandle: 'Λαβή μεταφοράς',\n loading: 'Φόρτωση',\n loadingMore: 'Φόρτωση περισσότερων',\n noResults: 'Δεν υπάρχουν αποτελέσματα',\n results: {\n one: '{count} επιλογή διαθέσιμες.',\n other: '{count} επιλογές διαθέσιμες.',\n },\n select: 'Επιλογή',\n },\n 'en-US': {\n dragHandle: 'Drag handle',\n loading: 'Loading',\n loadingMore: 'Loading more',\n noResults: 'No results',\n results: {\n one: '{count} option available.',\n other: '{count} options available.',\n },\n select: 'Select',\n },\n 'es-ES': {\n dragHandle: 'Control de arrastre',\n loading: 'Cargando',\n loadingMore: 'Cargando más',\n noResults: 'No hay resultados',\n results: {\n one: '{count} opción disponible(s).',\n other: '{count} opciones disponible(s).',\n },\n select: 'Seleccionar',\n },\n 'et-EE': {\n dragHandle: 'Lohistamispide',\n loading: 'Laadimine',\n loadingMore: 'Laaditakse veel',\n noResults: 'Tulemusi pole',\n results: {\n one: '{count} valik saadaval.',\n other: '{count} valikud saadaval.',\n },\n select: 'Vali',\n },\n 'fi-FI': {\n dragHandle: 'Vetokahva',\n loading: 'Ladataan',\n loadingMore: 'Ladataan lisää',\n noResults: 'Ei tuloksia',\n results: {\n one: '{count} vaihtoehto saatavilla.',\n other: '{count} vaihtoehtoa saatavilla.',\n },\n select: 'Valitse',\n },\n 'fr-FR': {\n dragHandle: 'Poignée de déplacement',\n loading: 'Chargement',\n loadingMore: 'Chargement de la suite',\n noResults: 'Aucun résultat',\n results: {\n one: '{count} option disponible(s).',\n other: '{count} options disponible(s).',\n },\n select: 'Sélectionner',\n },\n 'he-IL': {\n dragHandle: 'ידית גרירה',\n loading: 'טוען',\n loadingMore: 'טוען עוד',\n noResults: 'אין תוצאות',\n results: {\n one: 'אפשרות {count} במצב זמין.',\n other: '{count} אפשרויות במצב זמין.',\n },\n select: 'בחר',\n },\n 'hr-HR': {\n dragHandle: 'Ručica za povlačenje',\n loading: 'Učitavanje',\n loadingMore: 'Učitava se još',\n noResults: 'Nema rezultata',\n results: {\n one: 'Dostupno još: {count} opcija.',\n other: 'Dostupno još: {count} opcije/a.',\n },\n select: 'Odaberite',\n },\n 'hu-HU': {\n dragHandle: 'Húzófogantyú',\n loading: 'Betöltés',\n loadingMore: 'Továbbiak betöltése',\n noResults: 'Nincs találat',\n results: {\n one: '{count} lehetőség áll rendelkezésre.',\n other: '{count} lehetőség áll rendelkezésre.',\n },\n select: 'Kijelölés',\n },\n 'it-IT': {\n dragHandle: 'Punto di trascinamento',\n loading: 'Caricamento',\n loadingMore: 'Caricamento di altri elementi',\n noResults: 'Nessun risultato',\n results: {\n one: '{count} opzione disponibile.',\n other: '{count} opzioni disponibili.',\n },\n select: 'Seleziona',\n },\n 'ja-JP': {\n dragHandle: 'ドラッグハンドル',\n loading: '読み込み中',\n loadingMore: 'さらに読み込み中',\n noResults: '結果がありません',\n results: {\n one: '{count} 個のオプションを利用できます。',\n other: '{count} 個のオプションを利用できます。',\n },\n select: '選択',\n },\n 'ko-KR': {\n dragHandle: '드래그 핸들',\n loading: '로드 중',\n loadingMore: '더 로드하는 중',\n noResults: '결과 없음',\n results: {\n one: '{count}개 옵션을 사용할 수 있습니다.',\n other: '{count}개 옵션을 사용할 수 있습니다.',\n },\n select: '선택',\n },\n 'lt-LT': {\n dragHandle: 'Vilkimo rankenėlė',\n loading: 'Įkeliama',\n loadingMore: 'Įkeliama daugiau',\n noResults: 'Rezultatų nėra',\n results: {\n one: 'Yra {count} parinktis.',\n other: 'Yra {count} parinktys (-ių).',\n },\n select: 'Pasirinkti',\n },\n 'lv-LV': {\n dragHandle: 'Vilkšanas turis',\n loading: 'Notiek ielāde',\n loadingMore: 'Notiek papildu ielāde',\n noResults: 'Nav rezultātu',\n results: {\n one: 'Pieejamo opciju skaits: {count} opcija.',\n other: 'Pieejamo opciju skaits: {count} opcijas.',\n },\n select: 'Atlasīt',\n },\n 'nb-NO': {\n dragHandle: 'Drahåndtak',\n loading: 'Laster inn',\n loadingMore: 'Laster inn flere',\n noResults: 'Ingen resultater',\n results: {\n one: '{count} alternativ finnes.',\n other: '{count} alternativer finnes.',\n },\n select: 'Velg',\n },\n 'nl-NL': {\n dragHandle: 'Sleepgreep',\n loading: 'Laden',\n loadingMore: 'Meer laden',\n noResults: 'Geen resultaten',\n results: {\n one: '{count} optie beschikbaar.',\n other: '{count} opties beschikbaar.',\n },\n select: 'Selecteren',\n },\n 'pl-PL': {\n dragHandle: 'Uchwyt do przeciągania',\n loading: 'Ładowanie',\n loadingMore: 'Ładowanie kolejnych',\n noResults: 'Brak wyników',\n results: {\n one: 'dostępna/dostępne(-nych) {count} opcja.',\n other: 'dostępna/dostępne(-nych) {count} opcje(-i).',\n },\n select: 'Zaznacz',\n },\n 'pt-BR': {\n dragHandle: 'Alça de arrastar',\n loading: 'Carregando',\n loadingMore: 'Carregando mais',\n noResults: 'Nenhum resultado',\n results: {\n one: '{count} opção disponível.',\n other: '{count} opções disponível.',\n },\n select: 'Selecionar',\n },\n 'pt-PT': {\n dragHandle: 'Pega para arrastar',\n loading: 'A carregar',\n loadingMore: 'A carregar mais',\n noResults: 'Nenhum resultado',\n results: {\n one: '{count} opção disponível.',\n other: '{count} opções disponível.',\n },\n select: 'Selecionar',\n },\n 'ro-RO': {\n dragHandle: 'Mâner de tragere',\n loading: 'Se încarcă',\n loadingMore: 'Se încarcă mai multe',\n noResults: 'Niciun rezultat',\n results: {\n one: '{count} opțiune disponibile.',\n other: '{count} opțiuni disponibile.',\n },\n select: 'Selectare',\n },\n 'ru-RU': {\n dragHandle: 'Маркер перемещения',\n loading: 'Загрузка',\n loadingMore: 'Загрузка ещё',\n noResults: 'Нет результатов',\n results: {\n one: '{count} параметр доступно.',\n other: '{count} параметров доступно.',\n },\n select: 'Выбрать',\n },\n 'sk-SK': {\n dragHandle: 'Úchyt na presúvanie',\n loading: 'Načítava sa',\n loadingMore: 'Načítavajú sa ďalšie',\n noResults: 'Žiadne výsledky',\n results: {\n one: '{count} možnosť k dispozícii.',\n other: '{count} možnosti/-í k dispozícii.',\n },\n select: 'Vybrať',\n },\n 'sl-SI': {\n dragHandle: 'Ročica za vlečenje',\n loading: 'Nalaganje',\n loadingMore: 'Nalaganje več',\n noResults: 'Ni rezultatov',\n results: {\n one: 'Na voljo je {count} opcija.',\n other: 'Na voljo je {count} opcije.',\n },\n select: 'Izberite',\n },\n 'sr-SP': {\n dragHandle: 'Ručica za prevlačenje',\n loading: 'Učitavanje',\n loadingMore: 'Učitavanje još',\n noResults: 'Nema rezultata',\n results: {\n one: 'Dostupno još: {count} opcija.',\n other: 'Dostupno još: {count} opcije/a.',\n },\n select: 'Izaberite',\n },\n 'sv-SE': {\n dragHandle: 'Draghandtag',\n loading: 'Läser in',\n loadingMore: 'Läser in fler',\n noResults: 'Inga resultat',\n results: {\n one: '{count} alternativ tillgängliga.',\n other: '{count} alternativ tillgängliga.',\n },\n select: 'Markera',\n },\n 'tr-TR': {\n dragHandle: 'Sürükleme tutamacı',\n loading: 'Yükleniyor',\n loadingMore: 'Daha fazlası yükleniyor',\n noResults: 'Sonuç yok',\n results: {\n one: '{count} seçenek kullanılabilir.',\n other: '{count} seçenekler kullanılabilir.',\n },\n select: 'Seç',\n },\n 'uk-UA': {\n dragHandle: 'Маркер переміщення',\n loading: 'Завантаження',\n loadingMore: 'Завантаження ще',\n noResults: 'Немає результатів',\n results: {\n one: '{count} параметр доступно.',\n other: '{count} параметри(-ів) доступно.',\n },\n select: 'Вибрати',\n },\n 'zh-CN': {\n dragHandle: '拖动手柄',\n loading: '正在加载',\n loadingMore: '正在加载更多',\n noResults: '没有结果',\n results: {\n one: '有 {count} 个选项可用。',\n other: '有 {count} 个选项可用。',\n },\n select: '选择',\n },\n 'zh-TW': {\n dragHandle: '拖曳控點',\n loading: '正在載入',\n loadingMore: '正在載入更多',\n noResults: '沒有結果',\n results: {\n one: '{count} 選項 可用。',\n other: '{count} 選項 可用。',\n },\n select: '選取',\n },\n}\n\nexport { MESSAGES }\nexport type { LibraryMessages }\n"],"mappings":";AA0CA,MAAMS,WAAsD;CAC1D,SAAS;EACPR,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;CACA,SAAS;EACPP,YAAY;EACZC,SAAS;EACTC,aAAa;EACbC,WAAW;EACXC,SAAS;GACPC,KAAK;GACLC,OAAO;EACT;EACAC,QAAQ;CACV;AACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Autocomplete, AutocompleteFilter, AutocompleteProps } from "./components/autocomplete/index.js";
|
|
1
2
|
import { Avatar, AvatarProps } from "./components/avatar/index.js";
|
|
2
3
|
import { Button, ButtonProps, ButtonShape, ButtonSize, ButtonVariant } from "./components/button/index.js";
|
|
3
4
|
import { Card, CardProps, CardVariant } from "./components/card/index.js";
|
|
@@ -10,9 +11,13 @@ import { Dialog, DialogBody, DialogBodyProps, DialogContent, DialogContentProps,
|
|
|
10
11
|
import { Form, FormHandle, FormProps } from "./components/form/index.js";
|
|
11
12
|
import { IconButton, IconButtonProps, IconButtonSize, IconButtonVariant } from "./components/icon-button/index.js";
|
|
12
13
|
import { Link, LinkProps, LinkTone, LinkUnderline } from "./components/link/index.js";
|
|
14
|
+
import { List, ListLoadMore, ListLoadMoreProps, ListProps, ListRow, ListRowProps, ListSection, ListSectionProps } from "./components/list/index.js";
|
|
15
|
+
import { ListItem, ListItemProps } from "./components/list-item/index.js";
|
|
16
|
+
import { Menu, MenuAlign, MenuContent, MenuContentProps, MenuItem, MenuItemProps, MenuLoadMore, MenuLoadMoreProps, MenuProps, MenuSection, MenuSectionProps, MenuSeparator, MenuSeparatorProps, MenuSide, MenuSubmenu, MenuSubmenuProps, MenuTrigger } from "./components/menu/index.js";
|
|
13
17
|
import { Meter, MeterProps, MeterTone } from "./components/meter/index.js";
|
|
14
18
|
import { FieldVariant } from "./field/index.js";
|
|
15
19
|
import { NumberField, NumberFieldProps } from "./components/number-field/index.js";
|
|
20
|
+
import { Popover, PopoverAlign, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverProps, PopoverSide, PopoverSize, PopoverTitle, PopoverTitleProps, PopoverTrigger } from "./components/popover/index.js";
|
|
16
21
|
import { ProductIcon, ProductIconProps } from "./components/product-icon/index.js";
|
|
17
22
|
import { ProgressIndicator, ProgressIndicatorProps, ProgressIndicatorShape, ProgressIndicatorTone, ProgressIndicatorVariant } from "./components/progress-indicator/index.js";
|
|
18
23
|
import { Radio, RadioGroup, RadioGroupOrientation, RadioGroupProps, RadioProps } from "./components/radio-group/index.js";
|
|
@@ -33,4 +38,4 @@ import { RouterProvider, RouterProviderProps } from "./router/index.js";
|
|
|
33
38
|
import { ThemeScope, ThemeScopeProps } from "./theme-scope.js";
|
|
34
39
|
import { ResolvedTheme, useTheme } from "./theme/scope.js";
|
|
35
40
|
import { Key, Selection } from "react-stately";
|
|
36
|
-
export { Avatar, type AvatarProps, Button, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, Chip, type ChipActionProps, type ChipFilterProps, ChipGroup, ChipGroupChip, type ChipGroupChipProps, type ChipGroupProps, type ChipProps, type ChipVariant, CopyField, type CopyFieldProps, Currency, type CurrencyProps, type CurrencySignDisplay, type CurrencyTone, Dialog, DialogBody, type DialogBodyProps, DialogContent, type DialogContentProps, DialogFooter, DialogHeader, type DialogPartProps, type DialogProps, DialogTitle, type DialogTitleProps, type FieldVariant, Form, type FormHandle, type FormProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconStyle, type Key, type KuiTheme, Link, type LinkProps, type LinkTone, type LinkUnderline, Meter, type MeterProps, type MeterTone, NumberField, type NumberFieldProps, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, type ProgressIndicatorShape, type ProgressIndicatorTone, type ProgressIndicatorVariant, Radio, RadioGroup, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, type ResolvedTheme, RouterProvider, type RouterProviderProps, SearchField, type SearchFieldProps, SegmentedButton, type SegmentedButtonProps, SegmentedButtonSegment, type SegmentedButtonSegmentProps, type Selection, Separator, type SeparatorInset, type SeparatorProps, Sheet, SheetBody, type SheetBodyProps, SheetContent, type SheetContentProps, SheetFooter, SheetHandle, type SheetHandleProps, SheetHeader, type SheetPartProps, type SheetProps, SheetTitle, type SheetTitleProps, Snackbar, type SnackbarAction, type SnackbarOptions, type SnackbarProps, type SnackbarQueue, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, Switch, type SwitchProps, Text, TextField, type TextFieldProps, type TextProps, ThemeScope, type ThemeScopeProps, type TypeRole, type WindowSizeClass, useIconStyle, useTheme, useWindowSizeClass };
|
|
41
|
+
export { Autocomplete, type AutocompleteFilter, type AutocompleteProps, Avatar, type AvatarProps, Button, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Checkbox, type CheckboxProps, Chip, type ChipActionProps, type ChipFilterProps, ChipGroup, ChipGroupChip, type ChipGroupChipProps, type ChipGroupProps, type ChipProps, type ChipVariant, CopyField, type CopyFieldProps, Currency, type CurrencyProps, type CurrencySignDisplay, type CurrencyTone, Dialog, DialogBody, type DialogBodyProps, DialogContent, type DialogContentProps, DialogFooter, DialogHeader, type DialogPartProps, type DialogProps, DialogTitle, type DialogTitleProps, type FieldVariant, Form, type FormHandle, type FormProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconStyle, type Key, type KuiTheme, Link, type LinkProps, type LinkTone, type LinkUnderline, List, ListItem, type ListItemProps, ListLoadMore, type ListLoadMoreProps, type ListProps, ListRow, type ListRowProps, ListSection, type ListSectionProps, Menu, type MenuAlign, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLoadMore, type MenuLoadMoreProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, type MenuSeparatorProps, type MenuSide, MenuSubmenu, type MenuSubmenuProps, type MenuTrigger, Meter, type MeterProps, type MeterTone, NumberField, type NumberFieldProps, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, type PopoverProps, type PopoverSide, type PopoverSize, PopoverTitle, type PopoverTitleProps, type PopoverTrigger, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, type ProgressIndicatorShape, type ProgressIndicatorTone, type ProgressIndicatorVariant, Radio, RadioGroup, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, type ResolvedTheme, RouterProvider, type RouterProviderProps, SearchField, type SearchFieldProps, SegmentedButton, type SegmentedButtonProps, SegmentedButtonSegment, type SegmentedButtonSegmentProps, type Selection, Separator, type SeparatorInset, type SeparatorProps, Sheet, SheetBody, type SheetBodyProps, SheetContent, type SheetContentProps, SheetFooter, SheetHandle, type SheetHandleProps, SheetHeader, type SheetPartProps, type SheetProps, SheetTitle, type SheetTitleProps, Snackbar, type SnackbarAction, type SnackbarOptions, type SnackbarProps, type SnackbarQueue, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, Switch, type SwitchProps, Text, TextField, type TextFieldProps, type TextProps, ThemeScope, type ThemeScopeProps, type TypeRole, type WindowSizeClass, useIconStyle, useTheme, useWindowSizeClass };
|