@ikatec/nebula-react 1.0.12 → 1.0.14
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/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +34 -16
- package/dist/index.mjs +34 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -110,7 +110,14 @@ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrim
|
|
|
110
110
|
|
|
111
111
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
114
|
+
noCardWrapper?: boolean;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Table component that can be used with or without a card wrapper.
|
|
118
|
+
* If `noCardWrapper` is true, it renders a simple table without the card styling.
|
|
119
|
+
*/
|
|
120
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & TableProps & React$1.RefAttributes<HTMLTableElement>>;
|
|
114
121
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
115
122
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
116
123
|
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -431,7 +438,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
431
438
|
|
|
432
439
|
interface BoxProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
|
|
433
440
|
border?: boolean;
|
|
434
|
-
paddingSize?: 'sm' | 'md' | 'lg' | 'xl';
|
|
441
|
+
paddingSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
435
442
|
shadow?: 'sm' | 'md' | 'lg';
|
|
436
443
|
variant?: 'primary' | 'secondary';
|
|
437
444
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -110,7 +110,14 @@ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrim
|
|
|
110
110
|
|
|
111
111
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
114
|
+
noCardWrapper?: boolean;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Table component that can be used with or without a card wrapper.
|
|
118
|
+
* If `noCardWrapper` is true, it renders a simple table without the card styling.
|
|
119
|
+
*/
|
|
120
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & TableProps & React$1.RefAttributes<HTMLTableElement>>;
|
|
114
121
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
115
122
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
116
123
|
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -431,7 +438,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
431
438
|
|
|
432
439
|
interface BoxProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
|
|
433
440
|
border?: boolean;
|
|
434
|
-
paddingSize?: 'sm' | 'md' | 'lg' | 'xl';
|
|
441
|
+
paddingSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
435
442
|
shadow?: 'sm' | 'md' | 'lg';
|
|
436
443
|
variant?: 'primary' | 'secondary';
|
|
437
444
|
}
|
package/dist/index.js
CHANGED
|
@@ -435,14 +435,26 @@ var Label = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
435
435
|
}
|
|
436
436
|
));
|
|
437
437
|
Label.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
438
|
-
var Table = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
438
|
+
var Table = React8__namespace.forwardRef(({ className, noCardWrapper = false, ...props }, ref) => {
|
|
439
|
+
if (noCardWrapper) {
|
|
440
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
441
|
+
"table",
|
|
442
|
+
{
|
|
443
|
+
ref,
|
|
444
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
445
|
+
...props
|
|
446
|
+
}
|
|
447
|
+
);
|
|
444
448
|
}
|
|
445
|
-
|
|
449
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds relative w-full overflow-auto border rounded-2xl border-table-border bg-table-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
450
|
+
"table",
|
|
451
|
+
{
|
|
452
|
+
ref,
|
|
453
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
454
|
+
...props
|
|
455
|
+
}
|
|
456
|
+
) });
|
|
457
|
+
});
|
|
446
458
|
Table.displayName = "Table";
|
|
447
459
|
var TableHeader = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
448
460
|
TableHeader.displayName = "TableHeader";
|
|
@@ -469,7 +481,7 @@ var TableFooter = React8__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
469
481
|
TableFooter.displayName = "TableFooter";
|
|
470
482
|
var variants2 = {
|
|
471
483
|
variant: {
|
|
472
|
-
first: "bg-
|
|
484
|
+
first: "bg-transparent",
|
|
473
485
|
second: "bg-table-cell-background-second-layer"
|
|
474
486
|
}
|
|
475
487
|
};
|
|
@@ -1065,6 +1077,7 @@ var input_select_default = messages2;
|
|
|
1065
1077
|
// src/i18n/messages/en/input-phone.ts
|
|
1066
1078
|
var messages3 = {
|
|
1067
1079
|
countries: {
|
|
1080
|
+
empty: "Select",
|
|
1068
1081
|
AF: "Afghanistan",
|
|
1069
1082
|
AX: "\xC5land Islands",
|
|
1070
1083
|
AL: "Albania",
|
|
@@ -1344,6 +1357,7 @@ var input_select_default2 = messages5;
|
|
|
1344
1357
|
// src/i18n/messages/es/input-phone.ts
|
|
1345
1358
|
var messages6 = {
|
|
1346
1359
|
countries: {
|
|
1360
|
+
empty: "Seleccionar",
|
|
1347
1361
|
AF: "Afganist\xE1n",
|
|
1348
1362
|
AX: "Islas \xC5land",
|
|
1349
1363
|
AL: "Albania",
|
|
@@ -1623,6 +1637,7 @@ var input_select_default3 = messages8;
|
|
|
1623
1637
|
// src/i18n/messages/pt-br/input-phone.ts
|
|
1624
1638
|
var messages9 = {
|
|
1625
1639
|
countries: {
|
|
1640
|
+
empty: "Selecione",
|
|
1626
1641
|
AF: "Afeganist\xE3o",
|
|
1627
1642
|
AX: "Ilhas \xC5land",
|
|
1628
1643
|
AL: "Alb\xE2nia",
|
|
@@ -3215,6 +3230,7 @@ var Box = ({
|
|
|
3215
3230
|
"bg-box-background-secondary": variant3 === "secondary"
|
|
3216
3231
|
},
|
|
3217
3232
|
{
|
|
3233
|
+
"p-0": paddingSize === "none",
|
|
3218
3234
|
"p-4": paddingSize === "sm",
|
|
3219
3235
|
"p-6": paddingSize === "md",
|
|
3220
3236
|
"p-8": paddingSize === "lg",
|
|
@@ -3529,19 +3545,22 @@ var CountrySelect = ({
|
|
|
3529
3545
|
/* @__PURE__ */ jsxRuntime.jsx(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
3530
3546
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-inputText-text-filled focus:text-inputText-text-focus", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { size: 16, "aria-hidden": "true" }) })
|
|
3531
3547
|
] }),
|
|
3532
|
-
/* @__PURE__ */ jsxRuntime.
|
|
3548
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3533
3549
|
"select",
|
|
3534
3550
|
{
|
|
3535
3551
|
disabled,
|
|
3536
|
-
value,
|
|
3552
|
+
value: value ?? "empty",
|
|
3537
3553
|
onChange: handleSelect,
|
|
3538
3554
|
className: "nebula-ds absolute bg-inputText-background-default inset-0 text-sm opacity-0 text-inputText-text-filled focus:text-inputText-text-focus",
|
|
3539
3555
|
"aria-label": "Select country",
|
|
3540
|
-
children:
|
|
3541
|
-
option
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3556
|
+
children: [
|
|
3557
|
+
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "empty", children: countries.empty }),
|
|
3558
|
+
options.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: option.value, children: [
|
|
3559
|
+
option.value && countries[option.value],
|
|
3560
|
+
" ",
|
|
3561
|
+
option.value && `+${RPNInput__namespace.getCountryCallingCode(option.value)}`
|
|
3562
|
+
] }, option.value ?? `empty-${i}`))
|
|
3563
|
+
]
|
|
3545
3564
|
}
|
|
3546
3565
|
)
|
|
3547
3566
|
] });
|
|
@@ -3632,7 +3651,6 @@ function InputPhone({
|
|
|
3632
3651
|
inputComponent: PhoneInput,
|
|
3633
3652
|
disabled,
|
|
3634
3653
|
international: true,
|
|
3635
|
-
limitMaxLength: true,
|
|
3636
3654
|
defaultCountry: isFirstRender && (!value || value === "") ? defaultCountry : valueState ? defaultCountry : void 0,
|
|
3637
3655
|
countryCallingCodeEditable: true,
|
|
3638
3656
|
...props,
|
package/dist/index.mjs
CHANGED
|
@@ -395,14 +395,26 @@ var Label = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
395
395
|
}
|
|
396
396
|
));
|
|
397
397
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
398
|
-
var Table = React8.forwardRef(({ className, ...props }, ref) =>
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
398
|
+
var Table = React8.forwardRef(({ className, noCardWrapper = false, ...props }, ref) => {
|
|
399
|
+
if (noCardWrapper) {
|
|
400
|
+
return /* @__PURE__ */ jsx(
|
|
401
|
+
"table",
|
|
402
|
+
{
|
|
403
|
+
ref,
|
|
404
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
405
|
+
...props
|
|
406
|
+
}
|
|
407
|
+
);
|
|
404
408
|
}
|
|
405
|
-
|
|
409
|
+
return /* @__PURE__ */ jsx("div", { className: "nebula-ds relative w-full overflow-auto border rounded-2xl border-table-border bg-table-background", children: /* @__PURE__ */ jsx(
|
|
410
|
+
"table",
|
|
411
|
+
{
|
|
412
|
+
ref,
|
|
413
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
414
|
+
...props
|
|
415
|
+
}
|
|
416
|
+
) });
|
|
417
|
+
});
|
|
406
418
|
Table.displayName = "Table";
|
|
407
419
|
var TableHeader = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
408
420
|
TableHeader.displayName = "TableHeader";
|
|
@@ -429,7 +441,7 @@ var TableFooter = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
429
441
|
TableFooter.displayName = "TableFooter";
|
|
430
442
|
var variants2 = {
|
|
431
443
|
variant: {
|
|
432
|
-
first: "bg-
|
|
444
|
+
first: "bg-transparent",
|
|
433
445
|
second: "bg-table-cell-background-second-layer"
|
|
434
446
|
}
|
|
435
447
|
};
|
|
@@ -1025,6 +1037,7 @@ var input_select_default = messages2;
|
|
|
1025
1037
|
// src/i18n/messages/en/input-phone.ts
|
|
1026
1038
|
var messages3 = {
|
|
1027
1039
|
countries: {
|
|
1040
|
+
empty: "Select",
|
|
1028
1041
|
AF: "Afghanistan",
|
|
1029
1042
|
AX: "\xC5land Islands",
|
|
1030
1043
|
AL: "Albania",
|
|
@@ -1304,6 +1317,7 @@ var input_select_default2 = messages5;
|
|
|
1304
1317
|
// src/i18n/messages/es/input-phone.ts
|
|
1305
1318
|
var messages6 = {
|
|
1306
1319
|
countries: {
|
|
1320
|
+
empty: "Seleccionar",
|
|
1307
1321
|
AF: "Afganist\xE1n",
|
|
1308
1322
|
AX: "Islas \xC5land",
|
|
1309
1323
|
AL: "Albania",
|
|
@@ -1583,6 +1597,7 @@ var input_select_default3 = messages8;
|
|
|
1583
1597
|
// src/i18n/messages/pt-br/input-phone.ts
|
|
1584
1598
|
var messages9 = {
|
|
1585
1599
|
countries: {
|
|
1600
|
+
empty: "Selecione",
|
|
1586
1601
|
AF: "Afeganist\xE3o",
|
|
1587
1602
|
AX: "Ilhas \xC5land",
|
|
1588
1603
|
AL: "Alb\xE2nia",
|
|
@@ -3175,6 +3190,7 @@ var Box = ({
|
|
|
3175
3190
|
"bg-box-background-secondary": variant3 === "secondary"
|
|
3176
3191
|
},
|
|
3177
3192
|
{
|
|
3193
|
+
"p-0": paddingSize === "none",
|
|
3178
3194
|
"p-4": paddingSize === "sm",
|
|
3179
3195
|
"p-6": paddingSize === "md",
|
|
3180
3196
|
"p-8": paddingSize === "lg",
|
|
@@ -3489,19 +3505,22 @@ var CountrySelect = ({
|
|
|
3489
3505
|
/* @__PURE__ */ jsx(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
|
|
3490
3506
|
/* @__PURE__ */ jsx("span", { className: "nebula-ds text-inputText-text-filled focus:text-inputText-text-focus", children: /* @__PURE__ */ jsx(ChevronDown, { size: 16, "aria-hidden": "true" }) })
|
|
3491
3507
|
] }),
|
|
3492
|
-
/* @__PURE__ */
|
|
3508
|
+
/* @__PURE__ */ jsxs(
|
|
3493
3509
|
"select",
|
|
3494
3510
|
{
|
|
3495
3511
|
disabled,
|
|
3496
|
-
value,
|
|
3512
|
+
value: value ?? "empty",
|
|
3497
3513
|
onChange: handleSelect,
|
|
3498
3514
|
className: "nebula-ds absolute bg-inputText-background-default inset-0 text-sm opacity-0 text-inputText-text-filled focus:text-inputText-text-focus",
|
|
3499
3515
|
"aria-label": "Select country",
|
|
3500
|
-
children:
|
|
3501
|
-
option
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3516
|
+
children: [
|
|
3517
|
+
/* @__PURE__ */ jsx("option", { value: "empty", children: countries.empty }),
|
|
3518
|
+
options.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxs("option", { value: option.value, children: [
|
|
3519
|
+
option.value && countries[option.value],
|
|
3520
|
+
" ",
|
|
3521
|
+
option.value && `+${RPNInput.getCountryCallingCode(option.value)}`
|
|
3522
|
+
] }, option.value ?? `empty-${i}`))
|
|
3523
|
+
]
|
|
3505
3524
|
}
|
|
3506
3525
|
)
|
|
3507
3526
|
] });
|
|
@@ -3592,7 +3611,6 @@ function InputPhone({
|
|
|
3592
3611
|
inputComponent: PhoneInput,
|
|
3593
3612
|
disabled,
|
|
3594
3613
|
international: true,
|
|
3595
|
-
limitMaxLength: true,
|
|
3596
3614
|
defaultCountry: isFirstRender && (!value || value === "") ? defaultCountry : valueState ? defaultCountry : void 0,
|
|
3597
3615
|
countryCallingCodeEditable: true,
|
|
3598
3616
|
...props,
|