@nori-ui/core 1.5.0 → 1.7.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/Table.shared-BymRgTnY.d.cts +54 -0
- package/dist/Table.shared-BymRgTnY.d.ts +54 -0
- package/dist/{chunk-7UKRN73P.js → chunk-2XJCLPNH.js} +3 -3
- package/dist/{chunk-7UKRN73P.js.map → chunk-2XJCLPNH.js.map} +1 -1
- package/dist/{chunk-76FZF4GM.js → chunk-3B345SQU.js} +8 -125
- package/dist/chunk-3B345SQU.js.map +1 -0
- package/dist/{chunk-WOF67PKT.js → chunk-3CEJ5TB4.js} +3 -3
- package/dist/{chunk-WOF67PKT.js.map → chunk-3CEJ5TB4.js.map} +1 -1
- package/dist/{chunk-JSAG5YO7.js → chunk-3IIIHZHT.js} +3 -3
- package/dist/{chunk-JSAG5YO7.js.map → chunk-3IIIHZHT.js.map} +1 -1
- package/dist/{chunk-46OT4PA6.js → chunk-3W3XYULK.js} +3 -3
- package/dist/{chunk-46OT4PA6.js.map → chunk-3W3XYULK.js.map} +1 -1
- package/dist/{chunk-6PO2IWB3.js → chunk-4UFAZLSZ.js} +5 -3
- package/dist/chunk-4UFAZLSZ.js.map +1 -0
- package/dist/chunk-5YHT252H.js +145 -0
- package/dist/chunk-5YHT252H.js.map +1 -0
- package/dist/chunk-73CUV7MW.js +125 -0
- package/dist/chunk-73CUV7MW.js.map +1 -0
- package/dist/{chunk-ZMSIYLSI.js → chunk-7FSFJA33.js} +3 -3
- package/dist/{chunk-ZMSIYLSI.js.map → chunk-7FSFJA33.js.map} +1 -1
- package/dist/chunk-C32XGHWO.js +202 -0
- package/dist/chunk-C32XGHWO.js.map +1 -0
- package/dist/{chunk-UUXWRDWW.js → chunk-C5HQPXRI.js} +3 -3
- package/dist/{chunk-UUXWRDWW.js.map → chunk-C5HQPXRI.js.map} +1 -1
- package/dist/{chunk-2UXKXUX2.js → chunk-CPIKN4BX.js} +3 -3
- package/dist/{chunk-2UXKXUX2.js.map → chunk-CPIKN4BX.js.map} +1 -1
- package/dist/{chunk-GELLSU64.js → chunk-EN4CLDGZ.js} +3 -3
- package/dist/{chunk-GELLSU64.js.map → chunk-EN4CLDGZ.js.map} +1 -1
- package/dist/{chunk-WAKKQROH.js → chunk-F5UKI7XD.js} +3 -3
- package/dist/{chunk-WAKKQROH.js.map → chunk-F5UKI7XD.js.map} +1 -1
- package/dist/{chunk-MJ4AGXS7.js → chunk-GJMHNEQ3.js} +3 -3
- package/dist/{chunk-MJ4AGXS7.js.map → chunk-GJMHNEQ3.js.map} +1 -1
- package/dist/chunk-GTAXVTLF.js +43 -0
- package/dist/chunk-GTAXVTLF.js.map +1 -0
- package/dist/{chunk-WTNDPO2V.js → chunk-H2LHWJ52.js} +3 -3
- package/dist/{chunk-WTNDPO2V.js.map → chunk-H2LHWJ52.js.map} +1 -1
- package/dist/{chunk-L5X4SYJ4.js → chunk-HXCETKCC.js} +3 -3
- package/dist/{chunk-L5X4SYJ4.js.map → chunk-HXCETKCC.js.map} +1 -1
- package/dist/chunk-IGBXSBF7.js +71 -0
- package/dist/chunk-IGBXSBF7.js.map +1 -0
- package/dist/{chunk-O4NMS3KB.js → chunk-IIVTPN62.js} +3 -3
- package/dist/{chunk-O4NMS3KB.js.map → chunk-IIVTPN62.js.map} +1 -1
- package/dist/{chunk-RM5TSXVE.js → chunk-ISCJST4P.js} +3 -3
- package/dist/{chunk-RM5TSXVE.js.map → chunk-ISCJST4P.js.map} +1 -1
- package/dist/{chunk-UF5OENHV.js → chunk-IWM2XDXH.js} +3 -3
- package/dist/{chunk-UF5OENHV.js.map → chunk-IWM2XDXH.js.map} +1 -1
- package/dist/chunk-J5LK2XHE.js +118 -0
- package/dist/chunk-J5LK2XHE.js.map +1 -0
- package/dist/chunk-KFFGDET3.js +27 -0
- package/dist/chunk-KFFGDET3.js.map +1 -0
- package/dist/{chunk-AFQIK6JI.js → chunk-L6VYDM7S.js} +3 -3
- package/dist/{chunk-AFQIK6JI.js.map → chunk-L6VYDM7S.js.map} +1 -1
- package/dist/chunk-M4BI63P6.js +188 -0
- package/dist/chunk-M4BI63P6.js.map +1 -0
- package/dist/{chunk-H7MFAFV4.js → chunk-MK57AOTI.js} +4 -4
- package/dist/{chunk-H7MFAFV4.js.map → chunk-MK57AOTI.js.map} +1 -1
- package/dist/{chunk-FDBQOQMW.js → chunk-MOAIQHR7.js} +3 -3
- package/dist/{chunk-FDBQOQMW.js.map → chunk-MOAIQHR7.js.map} +1 -1
- package/dist/{chunk-LWQZ257T.js → chunk-MYBBBLYE.js} +3 -3
- package/dist/{chunk-LWQZ257T.js.map → chunk-MYBBBLYE.js.map} +1 -1
- package/dist/{chunk-F7G6R373.js → chunk-O6M3F7BZ.js} +5 -5
- package/dist/{chunk-F7G6R373.js.map → chunk-O6M3F7BZ.js.map} +1 -1
- package/dist/{chunk-XP55RZ3D.js → chunk-OELY6K44.js} +3 -3
- package/dist/{chunk-XP55RZ3D.js.map → chunk-OELY6K44.js.map} +1 -1
- package/dist/{chunk-GRDVE3IR.js → chunk-OIHX5B4R.js} +3 -3
- package/dist/{chunk-GRDVE3IR.js.map → chunk-OIHX5B4R.js.map} +1 -1
- package/dist/{chunk-4I37QSEM.js → chunk-PGYEIXCO.js} +5 -5
- package/dist/{chunk-4I37QSEM.js.map → chunk-PGYEIXCO.js.map} +1 -1
- package/dist/{chunk-UJ5KFRDE.js → chunk-PJTCO76H.js} +3 -3
- package/dist/{chunk-UJ5KFRDE.js.map → chunk-PJTCO76H.js.map} +1 -1
- package/dist/{chunk-6JVUVBZH.js → chunk-PJXVLE24.js} +5 -5
- package/dist/{chunk-6JVUVBZH.js.map → chunk-PJXVLE24.js.map} +1 -1
- package/dist/{chunk-IGLMPAWE.js → chunk-PLQPBMG2.js} +3 -3
- package/dist/{chunk-IGLMPAWE.js.map → chunk-PLQPBMG2.js.map} +1 -1
- package/dist/{chunk-HTF6FDB6.js → chunk-PQW5LKAI.js} +3 -3
- package/dist/{chunk-HTF6FDB6.js.map → chunk-PQW5LKAI.js.map} +1 -1
- package/dist/{chunk-VMAGFYHG.js → chunk-RI4Y2C5U.js} +3 -3
- package/dist/{chunk-VMAGFYHG.js.map → chunk-RI4Y2C5U.js.map} +1 -1
- package/dist/{chunk-BNDUQNG7.js → chunk-SF6WPUC5.js} +3 -3
- package/dist/{chunk-BNDUQNG7.js.map → chunk-SF6WPUC5.js.map} +1 -1
- package/dist/{chunk-SINLREQV.js → chunk-STX5UKYT.js} +3 -3
- package/dist/{chunk-SINLREQV.js.map → chunk-STX5UKYT.js.map} +1 -1
- package/dist/{chunk-KCLWPSV5.js → chunk-TSWPHJIU.js} +4 -4
- package/dist/{chunk-KCLWPSV5.js.map → chunk-TSWPHJIU.js.map} +1 -1
- package/dist/{chunk-5BM6H2CD.js → chunk-U2ZKY2CP.js} +3 -3
- package/dist/{chunk-5BM6H2CD.js.map → chunk-U2ZKY2CP.js.map} +1 -1
- package/dist/{chunk-C6TRLHMW.js → chunk-UKDDK42K.js} +3 -3
- package/dist/{chunk-C6TRLHMW.js.map → chunk-UKDDK42K.js.map} +1 -1
- package/dist/{chunk-UPVNZPFV.js → chunk-USFXANEU.js} +3 -3
- package/dist/{chunk-UPVNZPFV.js.map → chunk-USFXANEU.js.map} +1 -1
- package/dist/{chunk-Y4ZRSW35.js → chunk-V5QSMDZL.js} +3 -3
- package/dist/{chunk-Y4ZRSW35.js.map → chunk-V5QSMDZL.js.map} +1 -1
- package/dist/{chunk-EFK7726V.js → chunk-V75O7QQO.js} +3 -3
- package/dist/{chunk-EFK7726V.js.map → chunk-V75O7QQO.js.map} +1 -1
- package/dist/{chunk-CGQIVFCN.js → chunk-VL2WNGPF.js} +3 -3
- package/dist/{chunk-CGQIVFCN.js.map → chunk-VL2WNGPF.js.map} +1 -1
- package/dist/{chunk-VCJF75T2.js → chunk-VLZANXRZ.js} +3 -3
- package/dist/{chunk-VCJF75T2.js.map → chunk-VLZANXRZ.js.map} +1 -1
- package/dist/{chunk-ND7MRYW7.js → chunk-VOF3S5I4.js} +4 -4
- package/dist/{chunk-ND7MRYW7.js.map → chunk-VOF3S5I4.js.map} +1 -1
- package/dist/chunk-VP7DRJUZ.js +3 -0
- package/dist/chunk-VP7DRJUZ.js.map +1 -0
- package/dist/chunk-XQNVWHMN.js +60 -0
- package/dist/chunk-XQNVWHMN.js.map +1 -0
- package/dist/{chunk-W3HMOOON.js → chunk-ZGFXKYA5.js} +3 -3
- package/dist/{chunk-W3HMOOON.js.map → chunk-ZGFXKYA5.js.map} +1 -1
- package/dist/client.cjs +935 -156
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +9 -0
- package/dist/client.d.ts +9 -0
- package/dist/client.js +57 -47
- package/dist/client.js.map +1 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/AlertDialog/index.js +2 -2
- package/dist/components/AspectRatio/index.cjs +67 -0
- package/dist/components/AspectRatio/index.cjs.map +1 -0
- package/dist/components/AspectRatio/index.d.cts +30 -0
- package/dist/components/AspectRatio/index.d.ts +30 -0
- package/dist/components/AspectRatio/index.js +5 -0
- package/dist/components/AspectRatio/index.js.map +1 -0
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/Badge/index.js +2 -2
- package/dist/components/Box/index.js +4 -4
- package/dist/components/Breadcrumb/index.cjs +3 -1
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.js +5 -5
- package/dist/components/Button/index.js +2 -2
- package/dist/components/ButtonGroup/index.cjs +83 -0
- package/dist/components/ButtonGroup/index.cjs.map +1 -0
- package/dist/components/ButtonGroup/index.d.cts +45 -0
- package/dist/components/ButtonGroup/index.d.ts +45 -0
- package/dist/components/ButtonGroup/index.js +5 -0
- package/dist/components/ButtonGroup/index.js.map +1 -0
- package/dist/components/Calendar/index.cjs +3 -1
- package/dist/components/Calendar/index.cjs.map +1 -1
- package/dist/components/Calendar/index.js +5 -5
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Collapsible/index.cjs +512 -0
- package/dist/components/Collapsible/index.cjs.map +1 -0
- package/dist/components/Collapsible/index.d.cts +50 -0
- package/dist/components/Collapsible/index.d.ts +50 -0
- package/dist/components/Collapsible/index.js +7 -0
- package/dist/components/Collapsible/index.js.map +1 -0
- package/dist/components/Combobox/index.js +3 -3
- package/dist/components/ContextMenu/index.js +4 -4
- package/dist/components/DataTable/index.cjs +770 -0
- package/dist/components/DataTable/index.cjs.map +1 -0
- package/dist/components/DataTable/index.d.cts +53 -0
- package/dist/components/DataTable/index.d.ts +53 -0
- package/dist/components/DataTable/index.js +8 -0
- package/dist/components/DataTable/index.js.map +1 -0
- package/dist/components/DatePicker/index.cjs +3 -1
- package/dist/components/DatePicker/index.cjs.map +1 -1
- package/dist/components/DatePicker/index.js +7 -7
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/DropdownMenu/index.js +3 -3
- package/dist/components/Empty/index.cjs +385 -0
- package/dist/components/Empty/index.cjs.map +1 -0
- package/dist/components/Empty/index.d.cts +32 -0
- package/dist/components/Empty/index.d.ts +32 -0
- package/dist/components/Empty/index.js +7 -0
- package/dist/components/Empty/index.js.map +1 -0
- package/dist/components/Field/index.cjs +3 -1
- package/dist/components/Field/index.cjs.map +1 -1
- package/dist/components/Field/index.d.cts +2 -2
- package/dist/components/Field/index.d.ts +2 -2
- package/dist/components/Field/index.js +3 -3
- package/dist/components/FloatButton/index.cjs +3 -1
- package/dist/components/FloatButton/index.cjs.map +1 -1
- package/dist/components/FloatButton/index.js +5 -5
- package/dist/components/HStack/index.js +4 -4
- package/dist/components/InputGroup/index.js +2 -2
- package/dist/components/Item/index.cjs +443 -0
- package/dist/components/Item/index.cjs.map +1 -0
- package/dist/components/Item/index.d.cts +40 -0
- package/dist/components/Item/index.d.ts +40 -0
- package/dist/components/Item/index.js +7 -0
- package/dist/components/Item/index.js.map +1 -0
- package/dist/components/Kbd/index.cjs +396 -0
- package/dist/components/Kbd/index.cjs.map +1 -0
- package/dist/components/Kbd/index.d.cts +22 -0
- package/dist/components/Kbd/index.d.ts +22 -0
- package/dist/components/Kbd/index.js +7 -0
- package/dist/components/Kbd/index.js.map +1 -0
- package/dist/components/Label/index.cjs +3 -1
- package/dist/components/Label/index.cjs.map +1 -1
- package/dist/components/Label/index.js +3 -3
- package/dist/components/Pagination/index.cjs +3 -1
- package/dist/components/Pagination/index.cjs.map +1 -1
- package/dist/components/Pagination/index.js +6 -5
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/Progress/index.js +2 -2
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/SegmentedControl/index.js +2 -2
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Separator/index.js +2 -2
- package/dist/components/Sheet/index.js +2 -2
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Slider/index.js +2 -2
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/Table/index.cjs +461 -0
- package/dist/components/Table/index.cjs.map +1 -0
- package/dist/components/Table/index.d.cts +16 -0
- package/dist/components/Table/index.d.ts +16 -0
- package/dist/components/Table/index.js +7 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Text/index.js +2 -2
- package/dist/components/TextArea/index.js +3 -3
- package/dist/components/TextInput/index.js +2 -2
- package/dist/components/Toggle/index.js +2 -2
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/VStack/index.js +4 -4
- package/dist/i18n/index.cjs +3 -1
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.cjs +935 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +54 -44
- package/dist/slot/index.d.cts +2 -2
- package/dist/slot/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-6PO2IWB3.js.map +0 -1
- package/dist/chunk-76FZF4GM.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Breadcrumb, getBreadcrumbJsonLd } from '../../chunk-
|
|
1
|
+
export { Breadcrumb, getBreadcrumbJsonLd } from '../../chunk-PGYEIXCO.js';
|
|
2
2
|
import '../../chunk-ZPUYNM37.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-HXCETKCC.js';
|
|
4
|
+
import '../../chunk-GJMHNEQ3.js';
|
|
5
|
+
import '../../chunk-4UFAZLSZ.js';
|
|
6
6
|
import '../../chunk-ZIBNLXIV.js';
|
|
7
|
-
import '../../chunk-CHXHRJNZ.js';
|
|
8
7
|
import '../../chunk-5A2QOOVN.js';
|
|
9
8
|
import '../../chunk-R5JMDDCB.js';
|
|
9
|
+
import '../../chunk-CHXHRJNZ.js';
|
|
10
10
|
import '../../chunk-WCQVDF3K.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Button } from '../../chunk-
|
|
1
|
+
export { Button } from '../../chunk-MYBBBLYE.js';
|
|
2
2
|
import '../../chunk-ACLHDHX3.js';
|
|
3
3
|
import '../../chunk-ZIBNLXIV.js';
|
|
4
|
-
import '../../chunk-CHXHRJNZ.js';
|
|
5
4
|
import '../../chunk-5A2QOOVN.js';
|
|
6
5
|
import '../../chunk-R5JMDDCB.js';
|
|
6
|
+
import '../../chunk-CHXHRJNZ.js';
|
|
7
7
|
import '../../chunk-WCQVDF3K.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var reactNative = require('react-native');
|
|
5
|
+
var jsxRuntime = require('nativewind/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
|
|
10
|
+
// src/utils/cn.ts
|
|
11
|
+
function cn(...inputs) {
|
|
12
|
+
const out = [];
|
|
13
|
+
for (const input of inputs) {
|
|
14
|
+
append(out, input);
|
|
15
|
+
}
|
|
16
|
+
return out.join(" ");
|
|
17
|
+
}
|
|
18
|
+
__name(cn, "cn");
|
|
19
|
+
function append(out, input) {
|
|
20
|
+
if (!input) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (typeof input === "string") {
|
|
24
|
+
if (input.length > 0) {
|
|
25
|
+
out.push(input);
|
|
26
|
+
}
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (typeof input === "number") {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (Array.isArray(input)) {
|
|
33
|
+
for (const inner of input) {
|
|
34
|
+
append(out, inner);
|
|
35
|
+
}
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (typeof input === "object") {
|
|
39
|
+
for (const key of Object.keys(input)) {
|
|
40
|
+
if (input[key]) {
|
|
41
|
+
out.push(key);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
__name(append, "append");
|
|
47
|
+
var ButtonGroup = /* @__PURE__ */ __name(({ children, orientation = "horizontal", size, className, testID }) => {
|
|
48
|
+
const isHorizontal = orientation === "horizontal";
|
|
49
|
+
const containerStyle = {
|
|
50
|
+
flexDirection: isHorizontal ? "row" : "column",
|
|
51
|
+
// gap: 0 so buttons touch; shared-border effect comes from CSS on web
|
|
52
|
+
// and from touching edges on native.
|
|
53
|
+
gap: 0,
|
|
54
|
+
alignSelf: "flex-start",
|
|
55
|
+
overflow: "hidden"
|
|
56
|
+
};
|
|
57
|
+
const childArray = react.Children.toArray(children).filter(react.isValidElement);
|
|
58
|
+
const total = childArray.length;
|
|
59
|
+
const clonedChildren = childArray.map((child, index) => {
|
|
60
|
+
const position = index === 0 ? "first" : index === total - 1 ? "last" : "middle";
|
|
61
|
+
const extraProps = {
|
|
62
|
+
"data-position": position,
|
|
63
|
+
"data-group-orientation": orientation
|
|
64
|
+
};
|
|
65
|
+
if (size !== void 0) {
|
|
66
|
+
extraProps["data-group-size"] = size;
|
|
67
|
+
}
|
|
68
|
+
return react.cloneElement(child, extraProps);
|
|
69
|
+
});
|
|
70
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
|
+
reactNative.View,
|
|
72
|
+
{
|
|
73
|
+
...testID !== void 0 ? { testID } : {},
|
|
74
|
+
className: cn(isHorizontal ? "flex-row" : "flex-col", "self-start overflow-hidden", className),
|
|
75
|
+
style: containerStyle,
|
|
76
|
+
children: clonedChildren
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}, "ButtonGroup");
|
|
80
|
+
|
|
81
|
+
exports.ButtonGroup = ButtonGroup;
|
|
82
|
+
//# sourceMappingURL=index.cjs.map
|
|
83
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/cn.ts","../../../src/components/ButtonGroup/ButtonGroup.tsx"],"names":["Children","isValidElement","cloneElement","jsx","View"],"mappings":";;;;;;;;;;AAeO,SAAS,MAAM,MAAA,EAA8B;AAChD,EAAA,MAAM,MAAgB,EAAC;AACvB,EAAA,KAAA,MAAW,SAAS,MAAA,EAAQ;AACxB,IAAA,MAAA,CAAO,KAAK,KAAK,CAAA;AAAA,EACrB;AACA,EAAA,OAAO,GAAA,CAAI,KAAK,GAAG,CAAA;AACvB;AANgB,MAAA,CAAA,EAAA,EAAA,IAAA,CAAA;AAQhB,SAAS,MAAA,CAAO,KAAe,KAAA,EAAyB;AACpD,EAAA,IAAI,CAAC,KAAA,EAAO;AACR,IAAA;AAAA,EACJ;AACA,EAAA,IAAI,OAAO,UAAU,QAAA,EAAU;AAC3B,IAAA,IAAI,KAAA,CAAM,SAAS,CAAA,EAAG;AAClB,MAAA,GAAA,CAAI,KAAK,KAAK,CAAA;AAAA,IAClB;AACA,IAAA;AAAA,EACJ;AACA,EAAA,IAAI,OAAO,UAAU,QAAA,EAAU;AAC3B,IAAA;AAAA,EACJ;AACA,EAAA,IAAI,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AACtB,IAAA,KAAA,MAAW,SAAS,KAAA,EAAO;AACvB,MAAA,MAAA,CAAO,KAAK,KAAK,CAAA;AAAA,IACrB;AACA,IAAA;AAAA,EACJ;AACA,EAAA,IAAI,OAAO,UAAU,QAAA,EAAU;AAC3B,IAAA,KAAA,MAAW,GAAA,IAAO,MAAA,CAAO,IAAA,CAAK,KAAK,CAAA,EAAG;AAClC,MAAA,IAAI,KAAA,CAAM,GAAG,CAAA,EAAG;AACZ,QAAA,GAAA,CAAI,KAAK,GAAG,CAAA;AAAA,MAChB;AAAA,IACJ;AAAA,EACJ;AACJ;AA1BS,MAAA,CAAA,MAAA,EAAA,QAAA,CAAA;ACyBF,IAAM,WAAA,2BAAe,EAAE,QAAA,EAAU,cAAc,YAAA,EAAc,IAAA,EAAM,SAAA,EAAW,MAAA,EAAO,KAAwB;AAChH,EAAA,MAAM,eAAe,WAAA,KAAgB,YAAA;AAErC,EAAA,MAAM,cAAA,GAA4B;AAAA,IAC9B,aAAA,EAAe,eAAe,KAAA,GAAQ,QAAA;AAAA;AAAA;AAAA,IAGtC,GAAA,EAAK,CAAA;AAAA,IACL,SAAA,EAAW,YAAA;AAAA,IACX,QAAA,EAAU;AAAA,GACd;AAIA,EAAA,MAAM,aAAaA,cAAA,CAAS,OAAA,CAAQ,QAAQ,CAAA,CAAE,OAAOC,oBAAc,CAAA;AACnE,EAAA,MAAM,QAAQ,UAAA,CAAW,MAAA;AAEzB,EAAA,MAAM,cAAA,GAAiB,UAAA,CAAW,GAAA,CAAI,CAAC,OAAO,KAAA,KAAU;AACpD,IAAA,MAAM,WAAW,KAAA,KAAU,CAAA,GAAI,UAAU,KAAA,KAAU,KAAA,GAAQ,IAAI,MAAA,GAAS,QAAA;AACxE,IAAA,MAAM,UAAA,GAAsC;AAAA,MACxC,eAAA,EAAiB,QAAA;AAAA,MACjB,wBAAA,EAA0B;AAAA,KAC9B;AACA,IAAA,IAAI,SAAS,MAAA,EAAW;AACpB,MAAA,UAAA,CAAW,iBAAiB,CAAA,GAAI,IAAA;AAAA,IACpC;AAGA,IAAA,OAAOC,kBAAA,CAAa,OAAO,UAAU,CAAA;AAAA,EACzC,CAAC,CAAA;AAED,EAAA,uBACIC,cAAA;AAAA,IAACC,gBAAA;AAAA,IAAA;AAAA,MACI,GAAI,MAAA,KAAW,MAAA,GAAY,EAAE,MAAA,KAAW,EAAC;AAAA,MAC1C,WAAW,EAAA,CAAG,YAAA,GAAe,UAAA,GAAa,UAAA,EAAY,8BAA8B,SAAS,CAAA;AAAA,MAC7F,KAAA,EAAO,cAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACL;AAER,CAAA,EAxC2B,aAAA","file":"index.cjs","sourcesContent":["// cn — class-name merger. clsx-compatible shape.\n//\n// Intentionally does NOT deduplicate Tailwind conflicts (e.g. \"text-sm text-lg\").\n// That's `tailwind-merge`'s job; we defer adding it until a component actually\n// needs it, to keep the core tree-shakable and the runtime zero-dep.\n\nexport type ClassInput =\n | string\n | number\n | boolean\n | null\n | undefined\n | ClassInput[]\n | Record<string, boolean | number | null | undefined>;\n\nexport function cn(...inputs: ClassInput[]): string {\n const out: string[] = [];\n for (const input of inputs) {\n append(out, input);\n }\n return out.join(' ');\n}\n\nfunction append(out: string[], input: ClassInput): void {\n if (!input) {\n return;\n }\n if (typeof input === 'string') {\n if (input.length > 0) {\n out.push(input);\n }\n return;\n }\n if (typeof input === 'number') {\n return; // numbers are never class names\n }\n if (Array.isArray(input)) {\n for (const inner of input) {\n append(out, inner);\n }\n return;\n }\n if (typeof input === 'object') {\n for (const key of Object.keys(input)) {\n if (input[key]) {\n out.push(key);\n }\n }\n }\n}\n","'use client';\n\nimport { Children, cloneElement, isValidElement, type ReactNode } from 'react';\nimport type { ViewStyle } from 'react-native';\nimport { View } from 'react-native';\nimport { cn } from '../../utils/cn';\n\nexport type ButtonGroupOrientation = 'horizontal' | 'vertical';\nexport type ButtonGroupSize = 'sm' | 'md' | 'lg';\n\nexport type ButtonGroupProps = {\n children?: ReactNode;\n /** Flex direction for the group. @defaultValue 'horizontal' */\n orientation?: ButtonGroupOrientation;\n /**\n * Size hint passed to children via `data-group-size`. Buttons inside\n * the group can read this to self-size consistently. When omitted, each\n * Button retains its own `size` prop.\n */\n size?: ButtonGroupSize;\n className?: string;\n testID?: string;\n};\n\n/**\n * Joins multiple buttons in a visually connected row (or column). Middle\n * buttons lose outer edge radius; adjacent borders merge so the group looks\n * like a single segmented control.\n *\n * The radius treatment is implemented by injecting `data-position` attributes\n * (first / middle / last) onto each direct child. A companion CSS rule in the\n * nori preset (or a Tailwind variant) can target `[data-position=first]`,\n * `[data-position=middle]`, and `[data-position=last]` to strip the\n * appropriate border-radius corners. When using Button from `@nori-ui/core`,\n * no extra setup is needed — the tokens preset ships the rules.\n *\n * ```tsx\n * <ButtonGroup>\n * <Button variant=\"secondary\">Day</Button>\n * <Button variant=\"secondary\">Week</Button>\n * <Button variant=\"secondary\">Month</Button>\n * </ButtonGroup>\n * ```\n *\n * > **v2 note:** Corner-radius stripping is applied via CSS data-attribute\n * > selectors on web. On native, middle-button radius adjustment is a future\n * > enhancement (currently the group renders with standard per-button radius).\n */\nexport const ButtonGroup = ({ children, orientation = 'horizontal', size, className, testID }: ButtonGroupProps) => {\n const isHorizontal = orientation === 'horizontal';\n\n const containerStyle: ViewStyle = {\n flexDirection: isHorizontal ? 'row' : 'column',\n // gap: 0 so buttons touch; shared-border effect comes from CSS on web\n // and from touching edges on native.\n gap: 0,\n alignSelf: 'flex-start',\n overflow: 'hidden',\n };\n\n // Inject `data-position` on each valid child so CSS (web) or future\n // native logic can target first / middle / last positions.\n const childArray = Children.toArray(children).filter(isValidElement);\n const total = childArray.length;\n\n const clonedChildren = childArray.map((child, index) => {\n const position = index === 0 ? 'first' : index === total - 1 ? 'last' : 'middle';\n const extraProps: Record<string, unknown> = {\n 'data-position': position,\n 'data-group-orientation': orientation,\n };\n if (size !== undefined) {\n extraProps['data-group-size'] = size;\n }\n\n // Clone the child element with the injected data attributes.\n return cloneElement(child, extraProps);\n });\n\n return (\n <View\n {...(testID !== undefined ? { testID } : {})}\n className={cn(isHorizontal ? 'flex-row' : 'flex-col', 'self-start overflow-hidden', className)}\n style={containerStyle}\n >\n {clonedChildren}\n </View>\n );\n};\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
type ButtonGroupSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
type ButtonGroupProps = {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** Flex direction for the group. @defaultValue 'horizontal' */
|
|
9
|
+
orientation?: ButtonGroupOrientation;
|
|
10
|
+
/**
|
|
11
|
+
* Size hint passed to children via `data-group-size`. Buttons inside
|
|
12
|
+
* the group can read this to self-size consistently. When omitted, each
|
|
13
|
+
* Button retains its own `size` prop.
|
|
14
|
+
*/
|
|
15
|
+
size?: ButtonGroupSize;
|
|
16
|
+
className?: string;
|
|
17
|
+
testID?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Joins multiple buttons in a visually connected row (or column). Middle
|
|
21
|
+
* buttons lose outer edge radius; adjacent borders merge so the group looks
|
|
22
|
+
* like a single segmented control.
|
|
23
|
+
*
|
|
24
|
+
* The radius treatment is implemented by injecting `data-position` attributes
|
|
25
|
+
* (first / middle / last) onto each direct child. A companion CSS rule in the
|
|
26
|
+
* nori preset (or a Tailwind variant) can target `[data-position=first]`,
|
|
27
|
+
* `[data-position=middle]`, and `[data-position=last]` to strip the
|
|
28
|
+
* appropriate border-radius corners. When using Button from `@nori-ui/core`,
|
|
29
|
+
* no extra setup is needed — the tokens preset ships the rules.
|
|
30
|
+
*
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <ButtonGroup>
|
|
33
|
+
* <Button variant="secondary">Day</Button>
|
|
34
|
+
* <Button variant="secondary">Week</Button>
|
|
35
|
+
* <Button variant="secondary">Month</Button>
|
|
36
|
+
* </ButtonGroup>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* > **v2 note:** Corner-radius stripping is applied via CSS data-attribute
|
|
40
|
+
* > selectors on web. On native, middle-button radius adjustment is a future
|
|
41
|
+
* > enhancement (currently the group renders with standard per-button radius).
|
|
42
|
+
*/
|
|
43
|
+
declare const ButtonGroup: ({ children, orientation, size, className, testID }: ButtonGroupProps) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
export { ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSize };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
type ButtonGroupSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
type ButtonGroupProps = {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** Flex direction for the group. @defaultValue 'horizontal' */
|
|
9
|
+
orientation?: ButtonGroupOrientation;
|
|
10
|
+
/**
|
|
11
|
+
* Size hint passed to children via `data-group-size`. Buttons inside
|
|
12
|
+
* the group can read this to self-size consistently. When omitted, each
|
|
13
|
+
* Button retains its own `size` prop.
|
|
14
|
+
*/
|
|
15
|
+
size?: ButtonGroupSize;
|
|
16
|
+
className?: string;
|
|
17
|
+
testID?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Joins multiple buttons in a visually connected row (or column). Middle
|
|
21
|
+
* buttons lose outer edge radius; adjacent borders merge so the group looks
|
|
22
|
+
* like a single segmented control.
|
|
23
|
+
*
|
|
24
|
+
* The radius treatment is implemented by injecting `data-position` attributes
|
|
25
|
+
* (first / middle / last) onto each direct child. A companion CSS rule in the
|
|
26
|
+
* nori preset (or a Tailwind variant) can target `[data-position=first]`,
|
|
27
|
+
* `[data-position=middle]`, and `[data-position=last]` to strip the
|
|
28
|
+
* appropriate border-radius corners. When using Button from `@nori-ui/core`,
|
|
29
|
+
* no extra setup is needed — the tokens preset ships the rules.
|
|
30
|
+
*
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <ButtonGroup>
|
|
33
|
+
* <Button variant="secondary">Day</Button>
|
|
34
|
+
* <Button variant="secondary">Week</Button>
|
|
35
|
+
* <Button variant="secondary">Month</Button>
|
|
36
|
+
* </ButtonGroup>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* > **v2 note:** Corner-radius stripping is applied via CSS data-attribute
|
|
40
|
+
* > selectors on web. On native, middle-button radius adjustment is a future
|
|
41
|
+
* > enhancement (currently the group renders with standard per-button radius).
|
|
42
|
+
*/
|
|
43
|
+
declare const ButtonGroup: ({ children, orientation, size, className, testID }: ButtonGroupProps) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
export { ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -688,7 +688,9 @@ var defaultDictionary = {
|
|
|
688
688
|
"switch.off": "Off",
|
|
689
689
|
// field
|
|
690
690
|
"field.requiredIndicator": "*",
|
|
691
|
-
"field.requiredLabel": "required"
|
|
691
|
+
"field.requiredLabel": "required",
|
|
692
|
+
// table / dataTable
|
|
693
|
+
"table.empty": "No data"
|
|
692
694
|
};
|
|
693
695
|
|
|
694
696
|
// src/i18n/resolve.ts
|