@nexus-cross/design-system 1.0.4 → 1.0.5

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.js CHANGED
@@ -40,7 +40,7 @@ var chunkJ5ZKGPBY_js = require('./chunks/chunk-J5ZKGPBY.js');
40
40
  var chunkX2SHTVZQ_js = require('./chunks/chunk-X2SHTVZQ.js');
41
41
  var chunkBBLBTOP4_js = require('./chunks/chunk-BBLBTOP4.js');
42
42
  var chunkXGIJZ3NZ_js = require('./chunks/chunk-XGIJZ3NZ.js');
43
- var chunkAFSEYJZT_js = require('./chunks/chunk-AFSEYJZT.js');
43
+ var chunk2T7RUYEK_js = require('./chunks/chunk-2T7RUYEK.js');
44
44
  var chunk4ENXP7WH_js = require('./chunks/chunk-4ENXP7WH.js');
45
45
  var chunkMA2VCCIY_js = require('./chunks/chunk-MA2VCCIY.js');
46
46
  var chunkHFBTS42N_js = require('./chunks/chunk-HFBTS42N.js');
@@ -738,15 +738,15 @@ Object.defineProperty(exports, "textAreaVariants", {
738
738
  });
739
739
  Object.defineProperty(exports, "NumberInput", {
740
740
  enumerable: true,
741
- get: function () { return chunkAFSEYJZT_js.NumberInput; }
741
+ get: function () { return chunk2T7RUYEK_js.NumberInput; }
742
742
  });
743
743
  Object.defineProperty(exports, "numberInputBind", {
744
744
  enumerable: true,
745
- get: function () { return chunkAFSEYJZT_js.numberInputBind; }
745
+ get: function () { return chunk2T7RUYEK_js.numberInputBind; }
746
746
  });
747
747
  Object.defineProperty(exports, "numberInputVariants", {
748
748
  enumerable: true,
749
- get: function () { return chunkAFSEYJZT_js.numberInputVariants; }
749
+ get: function () { return chunk2T7RUYEK_js.numberInputVariants; }
750
750
  });
751
751
  Object.defineProperty(exports, "PriceInput", {
752
752
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ export { CheckBox, checkBoxVariants } from './chunks/chunk-MRRKW5QN.mjs';
38
38
  export { Switch, switchVariants } from './chunks/chunk-ADO7PDLY.mjs';
39
39
  export { TextInput, textInputVariants } from './chunks/chunk-UKRU46PH.mjs';
40
40
  export { TextArea, textAreaVariants } from './chunks/chunk-ZU4AWAFT.mjs';
41
- export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-ECVAVQUY.mjs';
41
+ export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-BJM3NDT2.mjs';
42
42
  export { PriceInput, priceInputVariants } from './chunks/chunk-WGGBE4ZD.mjs';
43
43
  export { Avatar, avatarVariants } from './chunks/chunk-YLO4UKSC.mjs';
44
44
  export { ModalContainer_default as ModalContainer, ModalPortalTarget_default as ModalPortalTarget, ModalTemplate_default as ModalTemplate, checkModal, closeModal, getModalDefaultOption, openModal as modal, openModal, resetModal } from './chunks/chunk-CWMLTXOH.mjs';
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const numberInputVariants: (props?: ({
6
- size?: "xl" | "lg" | "md" | "sm" | null | undefined;
7
- state?: "error" | "default" | null | undefined;
6
+ variant?: "basic" | "bind" | null | undefined;
7
+ size?: "xl" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface NumberInputRef {
10
10
  input: HTMLInputElement | null;
@@ -21,13 +21,12 @@ interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
21
21
  max?: number;
22
22
  step?: number;
23
23
  digit?: number;
24
+ label?: string;
25
+ description?: string;
26
+ showMax?: boolean;
24
27
  hideButtons?: boolean;
25
28
  onValueChange?: (value: number | undefined) => void;
26
29
  }
27
- /**
28
- * 외부 버튼에 NumberInput의 증감 이벤트를 바인딩하는 유틸 함수.
29
- * 이벤트 핸들러 내부에서 ref.current를 참조하므로 mount 이후 정상 동작.
30
- */
31
30
  declare function numberInputBind(ref: React.RefObject<NumberInputRef | null>, direction: 'increment' | 'decrement'): {
32
31
  onPointerDown: (e: React.PointerEvent) => void;
33
32
  onPointerUp: () => void | undefined;
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const numberInputVariants: (props?: ({
6
- size?: "xl" | "lg" | "md" | "sm" | null | undefined;
7
- state?: "error" | "default" | null | undefined;
6
+ variant?: "basic" | "bind" | null | undefined;
7
+ size?: "xl" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface NumberInputRef {
10
10
  input: HTMLInputElement | null;
@@ -21,13 +21,12 @@ interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
21
21
  max?: number;
22
22
  step?: number;
23
23
  digit?: number;
24
+ label?: string;
25
+ description?: string;
26
+ showMax?: boolean;
24
27
  hideButtons?: boolean;
25
28
  onValueChange?: (value: number | undefined) => void;
26
29
  }
27
- /**
28
- * 외부 버튼에 NumberInput의 증감 이벤트를 바인딩하는 유틸 함수.
29
- * 이벤트 핸들러 내부에서 ref.current를 참조하므로 mount 이후 정상 동작.
30
- */
31
30
  declare function numberInputBind(ref: React.RefObject<NumberInputRef | null>, direction: 'increment' | 'decrement'): {
32
31
  onPointerDown: (e: React.PointerEvent) => void;
33
32
  onPointerUp: () => void | undefined;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAFSEYJZT_js = require('./chunks/chunk-AFSEYJZT.js');
3
+ var chunk2T7RUYEK_js = require('./chunks/chunk-2T7RUYEK.js');
4
4
  require('./chunks/chunk-CZC76ZD5.js');
5
5
  require('./chunks/chunk-JNMCYWGY.js');
6
6
 
@@ -8,13 +8,13 @@ require('./chunks/chunk-JNMCYWGY.js');
8
8
 
9
9
  Object.defineProperty(exports, "NumberInput", {
10
10
  enumerable: true,
11
- get: function () { return chunkAFSEYJZT_js.NumberInput; }
11
+ get: function () { return chunk2T7RUYEK_js.NumberInput; }
12
12
  });
13
13
  Object.defineProperty(exports, "numberInputBind", {
14
14
  enumerable: true,
15
- get: function () { return chunkAFSEYJZT_js.numberInputBind; }
15
+ get: function () { return chunk2T7RUYEK_js.numberInputBind; }
16
16
  });
17
17
  Object.defineProperty(exports, "numberInputVariants", {
18
18
  enumerable: true,
19
- get: function () { return chunkAFSEYJZT_js.numberInputVariants; }
19
+ get: function () { return chunk2T7RUYEK_js.numberInputVariants; }
20
20
  });
@@ -1,3 +1,3 @@
1
- export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-ECVAVQUY.mjs';
1
+ export { NumberInput, numberInputBind, numberInputVariants } from './chunks/chunk-BJM3NDT2.mjs';
2
2
  import './chunks/chunk-MCKOWMLS.mjs';
3
3
  import './chunks/chunk-CVYXRSXT.mjs';
@@ -1657,6 +1657,15 @@
1657
1657
  "numberInputPropsSchema": {
1658
1658
  "type": "object",
1659
1659
  "properties": {
1660
+ "variant": {
1661
+ "type": "string",
1662
+ "enum": [
1663
+ "basic",
1664
+ "bind"
1665
+ ],
1666
+ "default": "basic",
1667
+ "description": "Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"
1668
+ },
1660
1669
  "value": {
1661
1670
  "type": [
1662
1671
  "number",
@@ -1667,12 +1676,10 @@
1667
1676
  "size": {
1668
1677
  "type": "string",
1669
1678
  "enum": [
1670
- "sm",
1671
- "md",
1672
1679
  "lg",
1673
1680
  "xl"
1674
1681
  ],
1675
- "default": "md",
1682
+ "default": "lg",
1676
1683
  "description": "Size"
1677
1684
  },
1678
1685
  "error": {
@@ -1685,7 +1692,7 @@
1685
1692
  },
1686
1693
  "max": {
1687
1694
  "type": "number",
1688
- "description": "Maximum value"
1695
+ "description": "Maximum value. When set, \"Max {value}\" is displayed in the header. Clicking it fills the input with the max value"
1689
1696
  },
1690
1697
  "step": {
1691
1698
  "type": "number",
@@ -1697,10 +1704,22 @@
1697
1704
  "default": 0,
1698
1705
  "description": "Decimal places"
1699
1706
  },
1707
+ "label": {
1708
+ "type": "string",
1709
+ "description": "Label text displayed above input"
1710
+ },
1711
+ "description": {
1712
+ "type": "string",
1713
+ "description": "Description text displayed below input"
1714
+ },
1715
+ "showMax": {
1716
+ "type": "boolean",
1717
+ "description": "Show \"Max {value}\" in header (defaults to true when max is set)"
1718
+ },
1700
1719
  "hideButtons": {
1701
1720
  "type": "boolean",
1702
1721
  "default": false,
1703
- "description": "Hide default spin buttons. Use with numberInputBind for external button event binding"
1722
+ "description": "Hide built-in buttons. Use with numberInputBind for external button event binding"
1704
1723
  },
1705
1724
  "disabled": {
1706
1725
  "type": "boolean",
@@ -1708,11 +1727,11 @@
1708
1727
  },
1709
1728
  "readOnly": {
1710
1729
  "type": "boolean",
1711
- "description": "Read-only (includes hiding spin buttons)"
1730
+ "description": "Read-only (includes hiding buttons)"
1712
1731
  },
1713
1732
  "placeholder": {
1714
1733
  "type": "string",
1715
- "description": "Placeholder"
1734
+ "description": "Placeholder (default: \"0\")"
1716
1735
  },
1717
1736
  "name": {
1718
1737
  "type": "string",
@@ -1741,7 +1760,7 @@
1741
1760
  }
1742
1761
  },
1743
1762
  "additionalProperties": false,
1744
- "description": "Number input. Accelerated increment on long press. Exposes increment/decrement methods via ref. numberInputBind(ref, direction) binds same acceleration to external buttons."
1763
+ "description": "Number input with two variants: basic (chevron arrows) and bind (+/- buttons). Supports label, description, max display (click to fill), accelerated increment on long press. numberInputBind(ref, direction) binds acceleration to external buttons."
1745
1764
  }
1746
1765
  },
1747
1766
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -4,6 +4,15 @@
4
4
  "numberInputPropsSchema": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "variant": {
8
+ "type": "string",
9
+ "enum": [
10
+ "basic",
11
+ "bind"
12
+ ],
13
+ "default": "basic",
14
+ "description": "Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"
15
+ },
7
16
  "value": {
8
17
  "type": [
9
18
  "number",
@@ -14,12 +23,10 @@
14
23
  "size": {
15
24
  "type": "string",
16
25
  "enum": [
17
- "sm",
18
- "md",
19
26
  "lg",
20
27
  "xl"
21
28
  ],
22
- "default": "md",
29
+ "default": "lg",
23
30
  "description": "Size"
24
31
  },
25
32
  "error": {
@@ -32,7 +39,7 @@
32
39
  },
33
40
  "max": {
34
41
  "type": "number",
35
- "description": "Maximum value"
42
+ "description": "Maximum value. When set, \"Max {value}\" is displayed in the header. Clicking it fills the input with the max value"
36
43
  },
37
44
  "step": {
38
45
  "type": "number",
@@ -44,10 +51,22 @@
44
51
  "default": 0,
45
52
  "description": "Decimal places"
46
53
  },
54
+ "label": {
55
+ "type": "string",
56
+ "description": "Label text displayed above input"
57
+ },
58
+ "description": {
59
+ "type": "string",
60
+ "description": "Description text displayed below input"
61
+ },
62
+ "showMax": {
63
+ "type": "boolean",
64
+ "description": "Show \"Max {value}\" in header (defaults to true when max is set)"
65
+ },
47
66
  "hideButtons": {
48
67
  "type": "boolean",
49
68
  "default": false,
50
- "description": "Hide default spin buttons. Use with numberInputBind for external button event binding"
69
+ "description": "Hide built-in buttons. Use with numberInputBind for external button event binding"
51
70
  },
52
71
  "disabled": {
53
72
  "type": "boolean",
@@ -55,11 +74,11 @@
55
74
  },
56
75
  "readOnly": {
57
76
  "type": "boolean",
58
- "description": "Read-only (includes hiding spin buttons)"
77
+ "description": "Read-only (includes hiding buttons)"
59
78
  },
60
79
  "placeholder": {
61
80
  "type": "string",
62
- "description": "Placeholder"
81
+ "description": "Placeholder (default: \"0\")"
63
82
  },
64
83
  "name": {
65
84
  "type": "string",
@@ -88,7 +107,7 @@
88
107
  }
89
108
  },
90
109
  "additionalProperties": false,
91
- "description": "Number input. Accelerated increment on long press. Exposes increment/decrement methods via ref. numberInputBind(ref, direction) binds same acceleration to external buttons."
110
+ "description": "Number input with two variants: basic (chevron arrows) and bind (+/- buttons). Supports label, description, max display (click to fill), accelerated increment on long press. numberInputBind(ref, direction) binds acceleration to external buttons."
92
111
  }
93
112
  },
94
113
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -1464,13 +1464,17 @@ declare const emptyStatePropsSchema: z.ZodObject<{
1464
1464
  }>;
1465
1465
 
1466
1466
  declare const numberInputPropsSchema: z.ZodObject<{
1467
+ variant: z.ZodDefault<z.ZodEnum<["basic", "bind"]>>;
1467
1468
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1468
- size: z.ZodDefault<z.ZodEnum<["sm", "md", "lg", "xl"]>>;
1469
+ size: z.ZodDefault<z.ZodEnum<["lg", "xl"]>>;
1469
1470
  error: z.ZodOptional<z.ZodBoolean>;
1470
1471
  min: z.ZodOptional<z.ZodNumber>;
1471
1472
  max: z.ZodOptional<z.ZodNumber>;
1472
1473
  step: z.ZodDefault<z.ZodNumber>;
1473
1474
  digit: z.ZodDefault<z.ZodNumber>;
1475
+ label: z.ZodOptional<z.ZodString>;
1476
+ description: z.ZodOptional<z.ZodString>;
1477
+ showMax: z.ZodOptional<z.ZodBoolean>;
1474
1478
  hideButtons: z.ZodDefault<z.ZodBoolean>;
1475
1479
  disabled: z.ZodOptional<z.ZodBoolean>;
1476
1480
  readOnly: z.ZodOptional<z.ZodBoolean>;
@@ -1483,14 +1487,17 @@ declare const numberInputPropsSchema: z.ZodObject<{
1483
1487
  onFocus: z.ZodOptional<z.ZodAny>;
1484
1488
  className: z.ZodOptional<z.ZodString>;
1485
1489
  }, "strip", z.ZodTypeAny, {
1486
- size: "xl" | "lg" | "md" | "sm";
1490
+ variant: "basic" | "bind";
1491
+ size: "xl" | "lg";
1487
1492
  step: number;
1488
1493
  digit: number;
1489
1494
  hideButtons: boolean;
1495
+ label?: string | undefined;
1490
1496
  value?: string | number | undefined;
1491
1497
  className?: string | undefined;
1492
1498
  disabled?: boolean | undefined;
1493
1499
  error?: boolean | undefined;
1500
+ description?: string | undefined;
1494
1501
  placeholder?: string | undefined;
1495
1502
  readOnly?: boolean | undefined;
1496
1503
  name?: string | undefined;
@@ -1501,12 +1508,16 @@ declare const numberInputPropsSchema: z.ZodObject<{
1501
1508
  onFocus?: any;
1502
1509
  min?: number | undefined;
1503
1510
  max?: number | undefined;
1511
+ showMax?: boolean | undefined;
1504
1512
  }, {
1513
+ label?: string | undefined;
1505
1514
  value?: string | number | undefined;
1506
1515
  className?: string | undefined;
1507
- size?: "xl" | "lg" | "md" | "sm" | undefined;
1516
+ variant?: "basic" | "bind" | undefined;
1517
+ size?: "xl" | "lg" | undefined;
1508
1518
  disabled?: boolean | undefined;
1509
1519
  error?: boolean | undefined;
1520
+ description?: string | undefined;
1510
1521
  placeholder?: string | undefined;
1511
1522
  readOnly?: boolean | undefined;
1512
1523
  name?: string | undefined;
@@ -1519,6 +1530,7 @@ declare const numberInputPropsSchema: z.ZodObject<{
1519
1530
  max?: number | undefined;
1520
1531
  step?: number | undefined;
1521
1532
  digit?: number | undefined;
1533
+ showMax?: boolean | undefined;
1522
1534
  hideButtons?: boolean | undefined;
1523
1535
  }>;
1524
1536
 
package/dist/schemas.d.ts CHANGED
@@ -1464,13 +1464,17 @@ declare const emptyStatePropsSchema: z.ZodObject<{
1464
1464
  }>;
1465
1465
 
1466
1466
  declare const numberInputPropsSchema: z.ZodObject<{
1467
+ variant: z.ZodDefault<z.ZodEnum<["basic", "bind"]>>;
1467
1468
  value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1468
- size: z.ZodDefault<z.ZodEnum<["sm", "md", "lg", "xl"]>>;
1469
+ size: z.ZodDefault<z.ZodEnum<["lg", "xl"]>>;
1469
1470
  error: z.ZodOptional<z.ZodBoolean>;
1470
1471
  min: z.ZodOptional<z.ZodNumber>;
1471
1472
  max: z.ZodOptional<z.ZodNumber>;
1472
1473
  step: z.ZodDefault<z.ZodNumber>;
1473
1474
  digit: z.ZodDefault<z.ZodNumber>;
1475
+ label: z.ZodOptional<z.ZodString>;
1476
+ description: z.ZodOptional<z.ZodString>;
1477
+ showMax: z.ZodOptional<z.ZodBoolean>;
1474
1478
  hideButtons: z.ZodDefault<z.ZodBoolean>;
1475
1479
  disabled: z.ZodOptional<z.ZodBoolean>;
1476
1480
  readOnly: z.ZodOptional<z.ZodBoolean>;
@@ -1483,14 +1487,17 @@ declare const numberInputPropsSchema: z.ZodObject<{
1483
1487
  onFocus: z.ZodOptional<z.ZodAny>;
1484
1488
  className: z.ZodOptional<z.ZodString>;
1485
1489
  }, "strip", z.ZodTypeAny, {
1486
- size: "xl" | "lg" | "md" | "sm";
1490
+ variant: "basic" | "bind";
1491
+ size: "xl" | "lg";
1487
1492
  step: number;
1488
1493
  digit: number;
1489
1494
  hideButtons: boolean;
1495
+ label?: string | undefined;
1490
1496
  value?: string | number | undefined;
1491
1497
  className?: string | undefined;
1492
1498
  disabled?: boolean | undefined;
1493
1499
  error?: boolean | undefined;
1500
+ description?: string | undefined;
1494
1501
  placeholder?: string | undefined;
1495
1502
  readOnly?: boolean | undefined;
1496
1503
  name?: string | undefined;
@@ -1501,12 +1508,16 @@ declare const numberInputPropsSchema: z.ZodObject<{
1501
1508
  onFocus?: any;
1502
1509
  min?: number | undefined;
1503
1510
  max?: number | undefined;
1511
+ showMax?: boolean | undefined;
1504
1512
  }, {
1513
+ label?: string | undefined;
1505
1514
  value?: string | number | undefined;
1506
1515
  className?: string | undefined;
1507
- size?: "xl" | "lg" | "md" | "sm" | undefined;
1516
+ variant?: "basic" | "bind" | undefined;
1517
+ size?: "xl" | "lg" | undefined;
1508
1518
  disabled?: boolean | undefined;
1509
1519
  error?: boolean | undefined;
1520
+ description?: string | undefined;
1510
1521
  placeholder?: string | undefined;
1511
1522
  readOnly?: boolean | undefined;
1512
1523
  name?: string | undefined;
@@ -1519,6 +1530,7 @@ declare const numberInputPropsSchema: z.ZodObject<{
1519
1530
  max?: number | undefined;
1520
1531
  step?: number | undefined;
1521
1532
  digit?: number | undefined;
1533
+ showMax?: boolean | undefined;
1522
1534
  hideButtons?: boolean | undefined;
1523
1535
  }>;
1524
1536
 
package/dist/schemas.js CHANGED
@@ -502,17 +502,23 @@ var emptyStatePropsSchema = zod.z.object({
502
502
  className: zod.z.string().optional().describe("Style override")
503
503
  }).describe("Empty state placeholder. Shown when data is empty or unavailable.");
504
504
  var numberInputPropsSchema = zod.z.object({
505
+ variant: zod.z.enum(["basic", "bind"]).default("basic").describe("Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"),
505
506
  value: zod.z.union([zod.z.number(), zod.z.string()]).optional().describe("Current value"),
506
- size: zod.z.enum(["sm", "md", "lg", "xl"]).default("md").describe("Size"),
507
+ size: zod.z.enum(["lg", "xl"]).default("lg").describe("Size"),
507
508
  error: zod.z.boolean().optional().describe("Error state"),
508
509
  min: zod.z.number().optional().describe("Minimum value"),
509
- max: zod.z.number().optional().describe("Maximum value"),
510
+ max: zod.z.number().optional().describe('Maximum value. When set, "Max {value}" is displayed in the header. Clicking it fills the input with the max value'),
510
511
  step: zod.z.number().default(1).describe("Step increment"),
511
512
  digit: zod.z.number().default(0).describe("Decimal places"),
512
- hideButtons: zod.z.boolean().default(false).describe("Hide default spin buttons. Use with numberInputBind for external button event binding"),
513
+ label: zod.z.string().optional().describe("Label text displayed above input"),
514
+ description: zod.z.string().optional().describe("Description text displayed below input"),
515
+ showMax: zod.z.boolean().optional().describe('Show "Max {value}" in header (defaults to true when max is set)'),
516
+ hideButtons: zod.z.boolean().default(false).describe(
517
+ "Hide built-in buttons. Use with numberInputBind for external button event binding"
518
+ ),
513
519
  disabled: zod.z.boolean().optional().describe("Disabled"),
514
- readOnly: zod.z.boolean().optional().describe("Read-only (includes hiding spin buttons)"),
515
- placeholder: zod.z.string().optional().describe("Placeholder"),
520
+ readOnly: zod.z.boolean().optional().describe("Read-only (includes hiding buttons)"),
521
+ placeholder: zod.z.string().optional().describe('Placeholder (default: "0")'),
516
522
  name: zod.z.string().optional().describe("Form field name"),
517
523
  id: zod.z.string().optional().describe("Element ID"),
518
524
  autoFocus: zod.z.boolean().optional().describe("Auto focus"),
@@ -521,7 +527,7 @@ var numberInputPropsSchema = zod.z.object({
521
527
  onFocus: zod.z.any().optional().describe("Focus callback"),
522
528
  className: zod.z.string().optional().describe("Style override")
523
529
  }).describe(
524
- "Number input. Accelerated increment on long press. Exposes increment/decrement methods via ref. numberInputBind(ref, direction) binds same acceleration to external buttons."
530
+ "Number input with two variants: basic (chevron arrows) and bind (+/- buttons). Supports label, description, max display (click to fill), accelerated increment on long press. numberInputBind(ref, direction) binds acceleration to external buttons."
525
531
  );
526
532
  var priceInputPropsSchema = zod.z.object({
527
533
  size: zod.z.enum(["md", "lg", "xl"]).default("md").describe("Size"),
package/dist/schemas.mjs CHANGED
@@ -500,17 +500,23 @@ var emptyStatePropsSchema = z.object({
500
500
  className: z.string().optional().describe("Style override")
501
501
  }).describe("Empty state placeholder. Shown when data is empty or unavailable.");
502
502
  var numberInputPropsSchema = z.object({
503
+ variant: z.enum(["basic", "bind"]).default("basic").describe("Variant: basic (right chevron arrows) or bind (left/right +/- buttons)"),
503
504
  value: z.union([z.number(), z.string()]).optional().describe("Current value"),
504
- size: z.enum(["sm", "md", "lg", "xl"]).default("md").describe("Size"),
505
+ size: z.enum(["lg", "xl"]).default("lg").describe("Size"),
505
506
  error: z.boolean().optional().describe("Error state"),
506
507
  min: z.number().optional().describe("Minimum value"),
507
- max: z.number().optional().describe("Maximum value"),
508
+ max: z.number().optional().describe('Maximum value. When set, "Max {value}" is displayed in the header. Clicking it fills the input with the max value'),
508
509
  step: z.number().default(1).describe("Step increment"),
509
510
  digit: z.number().default(0).describe("Decimal places"),
510
- hideButtons: z.boolean().default(false).describe("Hide default spin buttons. Use with numberInputBind for external button event binding"),
511
+ label: z.string().optional().describe("Label text displayed above input"),
512
+ description: z.string().optional().describe("Description text displayed below input"),
513
+ showMax: z.boolean().optional().describe('Show "Max {value}" in header (defaults to true when max is set)'),
514
+ hideButtons: z.boolean().default(false).describe(
515
+ "Hide built-in buttons. Use with numberInputBind for external button event binding"
516
+ ),
511
517
  disabled: z.boolean().optional().describe("Disabled"),
512
- readOnly: z.boolean().optional().describe("Read-only (includes hiding spin buttons)"),
513
- placeholder: z.string().optional().describe("Placeholder"),
518
+ readOnly: z.boolean().optional().describe("Read-only (includes hiding buttons)"),
519
+ placeholder: z.string().optional().describe('Placeholder (default: "0")'),
514
520
  name: z.string().optional().describe("Form field name"),
515
521
  id: z.string().optional().describe("Element ID"),
516
522
  autoFocus: z.boolean().optional().describe("Auto focus"),
@@ -519,7 +525,7 @@ var numberInputPropsSchema = z.object({
519
525
  onFocus: z.any().optional().describe("Focus callback"),
520
526
  className: z.string().optional().describe("Style override")
521
527
  }).describe(
522
- "Number input. Accelerated increment on long press. Exposes increment/decrement methods via ref. numberInputBind(ref, direction) binds same acceleration to external buttons."
528
+ "Number input with two variants: basic (chevron arrows) and bind (+/- buttons). Supports label, description, max display (click to fill), accelerated increment on long press. numberInputBind(ref, direction) binds acceleration to external buttons."
523
529
  );
524
530
  var priceInputPropsSchema = z.object({
525
531
  size: z.enum(["md", "lg", "xl"]).default("md").describe("Size"),
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkKZ7S5VN2_js = require('../chunks/chunk-KZ7S5VN2.js');
3
+ var chunkQRNHFOLG_js = require('../chunks/chunk-QRNHFOLG.js');
4
4
  require('../chunks/chunk-JNMCYWGY.js');
5
5
 
6
6
  // src/styles/inject-layer.ts
@@ -9,7 +9,7 @@ var __nexus_styles_injected__ = typeof document !== "undefined" && !document.get
9
9
  const style = document.createElement("style");
10
10
  style.id = STYLE_ID;
11
11
  style.textContent = `@layer nexus {
12
- ${chunkKZ7S5VN2_js.built_default}
12
+ ${chunkQRNHFOLG_js.built_default}
13
13
  }`;
14
14
  document.head.appendChild(style);
15
15
  return true;
@@ -1,4 +1,4 @@
1
- import { built_default } from '../chunks/chunk-PI464222.mjs';
1
+ import { built_default } from '../chunks/chunk-PXBZEAZQ.mjs';
2
2
  import '../chunks/chunk-CVYXRSXT.mjs';
3
3
 
4
4
  // src/styles/inject-layer.ts