@metamask-previews/design-system-shared 0.17.0-preview.178e60f → 0.19.0-preview.047f96c

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.
Files changed (138) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/contexts/SegmentGroup/SegmentGroup.context.cjs +7 -0
  3. package/dist/contexts/SegmentGroup/SegmentGroup.context.cjs.map +1 -0
  4. package/dist/contexts/SegmentGroup/SegmentGroup.context.d.cts +8 -0
  5. package/dist/contexts/SegmentGroup/SegmentGroup.context.d.cts.map +1 -0
  6. package/dist/contexts/SegmentGroup/SegmentGroup.context.d.mts +8 -0
  7. package/dist/contexts/SegmentGroup/SegmentGroup.context.d.mts.map +1 -0
  8. package/dist/contexts/SegmentGroup/SegmentGroup.context.mjs +4 -0
  9. package/dist/contexts/SegmentGroup/SegmentGroup.context.mjs.map +1 -0
  10. package/dist/contexts/SegmentGroup/index.cjs +6 -0
  11. package/dist/contexts/SegmentGroup/index.cjs.map +1 -0
  12. package/dist/contexts/SegmentGroup/index.d.cts +2 -0
  13. package/dist/contexts/SegmentGroup/index.d.cts.map +1 -0
  14. package/dist/contexts/SegmentGroup/index.d.mts +2 -0
  15. package/dist/contexts/SegmentGroup/index.d.mts.map +1 -0
  16. package/dist/contexts/SegmentGroup/index.mjs +2 -0
  17. package/dist/contexts/SegmentGroup/index.mjs.map +1 -0
  18. package/dist/index.cjs +19 -1
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +8 -0
  21. package/dist/index.d.cts.map +1 -1
  22. package/dist/index.d.mts +8 -0
  23. package/dist/index.d.mts.map +1 -1
  24. package/dist/index.mjs +10 -0
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/types/HelpText/HelpText.types.cjs +18 -0
  27. package/dist/types/HelpText/HelpText.types.cjs.map +1 -0
  28. package/dist/types/HelpText/HelpText.types.d.cts +26 -0
  29. package/dist/types/HelpText/HelpText.types.d.cts.map +1 -0
  30. package/dist/types/HelpText/HelpText.types.d.mts +26 -0
  31. package/dist/types/HelpText/HelpText.types.d.mts.map +1 -0
  32. package/dist/types/HelpText/HelpText.types.mjs +15 -0
  33. package/dist/types/HelpText/HelpText.types.mjs.map +1 -0
  34. package/dist/types/HelpText/index.cjs +6 -0
  35. package/dist/types/HelpText/index.cjs.map +1 -0
  36. package/dist/types/HelpText/index.d.cts +2 -0
  37. package/dist/types/HelpText/index.d.cts.map +1 -0
  38. package/dist/types/HelpText/index.d.mts +2 -0
  39. package/dist/types/HelpText/index.d.mts.map +1 -0
  40. package/dist/types/HelpText/index.mjs +2 -0
  41. package/dist/types/HelpText/index.mjs.map +1 -0
  42. package/dist/types/SectionHeader/SectionHeader.types.cjs +3 -0
  43. package/dist/types/SectionHeader/SectionHeader.types.cjs.map +1 -0
  44. package/dist/types/SectionHeader/SectionHeader.types.d.cts +38 -0
  45. package/dist/types/SectionHeader/SectionHeader.types.d.cts.map +1 -0
  46. package/dist/types/SectionHeader/SectionHeader.types.d.mts +38 -0
  47. package/dist/types/SectionHeader/SectionHeader.types.d.mts.map +1 -0
  48. package/dist/types/SectionHeader/SectionHeader.types.mjs +2 -0
  49. package/dist/types/SectionHeader/SectionHeader.types.mjs.map +1 -0
  50. package/dist/types/SectionHeader/index.cjs +3 -0
  51. package/dist/types/SectionHeader/index.cjs.map +1 -0
  52. package/dist/types/SectionHeader/index.d.cts +2 -0
  53. package/dist/types/SectionHeader/index.d.cts.map +1 -0
  54. package/dist/types/SectionHeader/index.d.mts +2 -0
  55. package/dist/types/SectionHeader/index.d.mts.map +1 -0
  56. package/dist/types/SectionHeader/index.mjs +2 -0
  57. package/dist/types/SectionHeader/index.mjs.map +1 -0
  58. package/dist/types/SegmentButton/SegmentButton.types.cjs +12 -0
  59. package/dist/types/SegmentButton/SegmentButton.types.cjs.map +1 -0
  60. package/dist/types/SegmentButton/SegmentButton.types.d.cts +31 -0
  61. package/dist/types/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  62. package/dist/types/SegmentButton/SegmentButton.types.d.mts +31 -0
  63. package/dist/types/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  64. package/dist/types/SegmentButton/SegmentButton.types.mjs +9 -0
  65. package/dist/types/SegmentButton/SegmentButton.types.mjs.map +1 -0
  66. package/dist/types/SegmentButton/index.cjs +6 -0
  67. package/dist/types/SegmentButton/index.cjs.map +1 -0
  68. package/dist/types/SegmentButton/index.d.cts +2 -0
  69. package/dist/types/SegmentButton/index.d.cts.map +1 -0
  70. package/dist/types/SegmentButton/index.d.mts +2 -0
  71. package/dist/types/SegmentButton/index.d.mts.map +1 -0
  72. package/dist/types/SegmentButton/index.mjs +2 -0
  73. package/dist/types/SegmentButton/index.mjs.map +1 -0
  74. package/dist/types/SegmentGroup/SegmentGroup.types.cjs +3 -0
  75. package/dist/types/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  76. package/dist/types/SegmentGroup/SegmentGroup.types.d.cts +20 -0
  77. package/dist/types/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  78. package/dist/types/SegmentGroup/SegmentGroup.types.d.mts +20 -0
  79. package/dist/types/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  80. package/dist/types/SegmentGroup/SegmentGroup.types.mjs +2 -0
  81. package/dist/types/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  82. package/dist/types/SegmentGroup/index.cjs +3 -0
  83. package/dist/types/SegmentGroup/index.cjs.map +1 -0
  84. package/dist/types/SegmentGroup/index.d.cts +2 -0
  85. package/dist/types/SegmentGroup/index.d.cts.map +1 -0
  86. package/dist/types/SegmentGroup/index.d.mts +2 -0
  87. package/dist/types/SegmentGroup/index.d.mts.map +1 -0
  88. package/dist/types/SegmentGroup/index.mjs +2 -0
  89. package/dist/types/SegmentGroup/index.mjs.map +1 -0
  90. package/dist/types/SelectButton/SelectButton.types.cjs +29 -0
  91. package/dist/types/SelectButton/SelectButton.types.cjs.map +1 -0
  92. package/dist/types/SelectButton/SelectButton.types.d.cts +88 -0
  93. package/dist/types/SelectButton/SelectButton.types.d.cts.map +1 -0
  94. package/dist/types/SelectButton/SelectButton.types.d.mts +88 -0
  95. package/dist/types/SelectButton/SelectButton.types.d.mts.map +1 -0
  96. package/dist/types/SelectButton/SelectButton.types.mjs +26 -0
  97. package/dist/types/SelectButton/SelectButton.types.mjs.map +1 -0
  98. package/dist/types/SelectButton/index.cjs +8 -0
  99. package/dist/types/SelectButton/index.cjs.map +1 -0
  100. package/dist/types/SelectButton/index.d.cts +2 -0
  101. package/dist/types/SelectButton/index.d.cts.map +1 -0
  102. package/dist/types/SelectButton/index.d.mts +2 -0
  103. package/dist/types/SelectButton/index.d.mts.map +1 -0
  104. package/dist/types/SelectButton/index.mjs +2 -0
  105. package/dist/types/SelectButton/index.mjs.map +1 -0
  106. package/dist/types/SensitiveText/SensitiveText.types.cjs +27 -0
  107. package/dist/types/SensitiveText/SensitiveText.types.cjs.map +1 -0
  108. package/dist/types/SensitiveText/SensitiveText.types.d.cts +54 -0
  109. package/dist/types/SensitiveText/SensitiveText.types.d.cts.map +1 -0
  110. package/dist/types/SensitiveText/SensitiveText.types.d.mts +54 -0
  111. package/dist/types/SensitiveText/SensitiveText.types.d.mts.map +1 -0
  112. package/dist/types/SensitiveText/SensitiveText.types.mjs +24 -0
  113. package/dist/types/SensitiveText/SensitiveText.types.mjs.map +1 -0
  114. package/dist/types/SensitiveText/index.cjs +6 -0
  115. package/dist/types/SensitiveText/index.cjs.map +1 -0
  116. package/dist/types/SensitiveText/index.d.cts +2 -0
  117. package/dist/types/SensitiveText/index.d.cts.map +1 -0
  118. package/dist/types/SensitiveText/index.d.mts +2 -0
  119. package/dist/types/SensitiveText/index.d.mts.map +1 -0
  120. package/dist/types/SensitiveText/index.mjs +2 -0
  121. package/dist/types/SensitiveText/index.mjs.map +1 -0
  122. package/dist/types/TitleAlert/TitleAlert.types.cjs +3 -0
  123. package/dist/types/TitleAlert/TitleAlert.types.cjs.map +1 -0
  124. package/dist/types/TitleAlert/TitleAlert.types.d.cts +34 -0
  125. package/dist/types/TitleAlert/TitleAlert.types.d.cts.map +1 -0
  126. package/dist/types/TitleAlert/TitleAlert.types.d.mts +34 -0
  127. package/dist/types/TitleAlert/TitleAlert.types.d.mts.map +1 -0
  128. package/dist/types/TitleAlert/TitleAlert.types.mjs +2 -0
  129. package/dist/types/TitleAlert/TitleAlert.types.mjs.map +1 -0
  130. package/dist/types/TitleAlert/index.cjs +3 -0
  131. package/dist/types/TitleAlert/index.cjs.map +1 -0
  132. package/dist/types/TitleAlert/index.d.cts +2 -0
  133. package/dist/types/TitleAlert/index.d.cts.map +1 -0
  134. package/dist/types/TitleAlert/index.d.mts +2 -0
  135. package/dist/types/TitleAlert/index.d.mts.map +1 -0
  136. package/dist/types/TitleAlert/index.mjs +2 -0
  137. package/dist/types/TitleAlert/index.mjs.map +1 -0
  138. package/package.json +6 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeader.types.d.mts","sourceRoot":"","sources":["../../../src/types/SectionHeader/SectionHeader.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,0BAAgB;AAExC;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;CACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SectionHeader.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeader.types.mjs","sourceRoot":"","sources":["../../../src/types/SectionHeader/SectionHeader.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconName } from '../Icon';\n\n/**\n * SectionHeader component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps`,\n * `twClassName`, and platform `Text` / `Icon` prop passthroughs.\n */\nexport type SectionHeaderPropsShared = {\n /**\n * Section title. When a string, platforms typically apply heading styles via `titleProps` / `textProps`.\n * The title row renders only when `title` is renderable; `titleAccessory` alone does not show the inner row.\n */\n title: ReactNode;\n /**\n * Optional accessory rendered inline to the right of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleAccessory?: ReactNode;\n /**\n * Optional node before the title row (e.g. icon or avatar).\n */\n startAccessory?: ReactNode;\n /**\n * Optional node after the title row (e.g. icon or action).\n */\n endAccessory?: ReactNode;\n /**\n * Optional icon name for the start of the header row.\n * When set (or implied via `startIconProps.name`), renders an icon instead of `startAccessory`.\n */\n startIconName?: IconName;\n /**\n * Optional icon name for the end of the header row.\n * When set (or implied via `endIconProps.name`), renders an icon instead of `endAccessory`.\n */\n endIconName?: IconName;\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/SectionHeader/index.ts"],"names":[],"mappings":"","sourcesContent":["export type { SectionHeaderPropsShared } from './SectionHeader.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export type { SectionHeaderPropsShared } from "./SectionHeader.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/SectionHeader/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export type { SectionHeaderPropsShared } from "./SectionHeader.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/SectionHeader/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/SectionHeader/index.ts"],"names":[],"mappings":"","sourcesContent":["export type { SectionHeaderPropsShared } from './SectionHeader.types';\n"]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SegmentButtonVariant = void 0;
4
+ /**
5
+ * SegmentButton visual variant (ADR-0003).
6
+ * Maps to combinations of ButtonPrimary / ButtonSecondary / ButtonTertiary presentation with `isSelected`.
7
+ */
8
+ exports.SegmentButtonVariant = {
9
+ Primary: 'primary',
10
+ Secondary: 'secondary',
11
+ };
12
+ //# sourceMappingURL=SegmentButton.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentButton.types.cjs","sourceRoot":"","sources":["../../../src/types/SegmentButton/SegmentButton.types.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,oBAAoB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC","sourcesContent":["/**\n * SegmentButton visual variant (ADR-0003).\n * Maps to combinations of ButtonPrimary / ButtonSecondary / ButtonTertiary presentation with `isSelected`.\n */\nexport const SegmentButtonVariant = {\n Primary: 'primary',\n Secondary: 'secondary',\n} as const;\nexport type SegmentButtonVariant =\n (typeof SegmentButtonVariant)[keyof typeof SegmentButtonVariant];\n\n/**\n * SegmentButton component shared props (ADR-0004).\n */\nexport type SegmentButtonPropsShared = {\n /**\n * Segment identity when used inside `SegmentGroup`. When set and an ancestor `SegmentGroup` exists, selection is derived from the group `value` and `isSelected` is ignored.\n */\n value?: string;\n /**\n * When true, the segment uses the \"selected\" visual for the current `variant`.\n *\n * @default false\n */\n isSelected?: boolean;\n /**\n * Visual variant: `primary` toggles between ButtonPrimary (selected) and ButtonSecondary (unselected); `secondary` toggles between ButtonSecondary (selected) and ButtonTertiary-like row with alternative text/icon color (unselected).\n *\n * @default primary\n */\n variant?: SegmentButtonVariant;\n};\n"]}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * SegmentButton visual variant (ADR-0003).
3
+ * Maps to combinations of ButtonPrimary / ButtonSecondary / ButtonTertiary presentation with `isSelected`.
4
+ */
5
+ export declare const SegmentButtonVariant: {
6
+ readonly Primary: "primary";
7
+ readonly Secondary: "secondary";
8
+ };
9
+ export type SegmentButtonVariant = (typeof SegmentButtonVariant)[keyof typeof SegmentButtonVariant];
10
+ /**
11
+ * SegmentButton component shared props (ADR-0004).
12
+ */
13
+ export type SegmentButtonPropsShared = {
14
+ /**
15
+ * Segment identity when used inside `SegmentGroup`. When set and an ancestor `SegmentGroup` exists, selection is derived from the group `value` and `isSelected` is ignored.
16
+ */
17
+ value?: string;
18
+ /**
19
+ * When true, the segment uses the "selected" visual for the current `variant`.
20
+ *
21
+ * @default false
22
+ */
23
+ isSelected?: boolean;
24
+ /**
25
+ * Visual variant: `primary` toggles between ButtonPrimary (selected) and ButtonSecondary (unselected); `secondary` toggles between ButtonSecondary (selected) and ButtonTertiary-like row with alternative text/icon color (unselected).
26
+ *
27
+ * @default primary
28
+ */
29
+ variant?: SegmentButtonVariant;
30
+ };
31
+ //# sourceMappingURL=SegmentButton.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentButton.types.d.cts","sourceRoot":"","sources":["../../../src/types/SegmentButton/SegmentButton.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * SegmentButton visual variant (ADR-0003).
3
+ * Maps to combinations of ButtonPrimary / ButtonSecondary / ButtonTertiary presentation with `isSelected`.
4
+ */
5
+ export declare const SegmentButtonVariant: {
6
+ readonly Primary: "primary";
7
+ readonly Secondary: "secondary";
8
+ };
9
+ export type SegmentButtonVariant = (typeof SegmentButtonVariant)[keyof typeof SegmentButtonVariant];
10
+ /**
11
+ * SegmentButton component shared props (ADR-0004).
12
+ */
13
+ export type SegmentButtonPropsShared = {
14
+ /**
15
+ * Segment identity when used inside `SegmentGroup`. When set and an ancestor `SegmentGroup` exists, selection is derived from the group `value` and `isSelected` is ignored.
16
+ */
17
+ value?: string;
18
+ /**
19
+ * When true, the segment uses the "selected" visual for the current `variant`.
20
+ *
21
+ * @default false
22
+ */
23
+ isSelected?: boolean;
24
+ /**
25
+ * Visual variant: `primary` toggles between ButtonPrimary (selected) and ButtonSecondary (unselected); `secondary` toggles between ButtonSecondary (selected) and ButtonTertiary-like row with alternative text/icon color (unselected).
26
+ *
27
+ * @default primary
28
+ */
29
+ variant?: SegmentButtonVariant;
30
+ };
31
+ //# sourceMappingURL=SegmentButton.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentButton.types.d.mts","sourceRoot":"","sources":["../../../src/types/SegmentButton/SegmentButton.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * SegmentButton visual variant (ADR-0003).
3
+ * Maps to combinations of ButtonPrimary / ButtonSecondary / ButtonTertiary presentation with `isSelected`.
4
+ */
5
+ export const SegmentButtonVariant = {
6
+ Primary: 'primary',
7
+ Secondary: 'secondary',
8
+ };
9
+ //# sourceMappingURL=SegmentButton.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentButton.types.mjs","sourceRoot":"","sources":["../../../src/types/SegmentButton/SegmentButton.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC","sourcesContent":["/**\n * SegmentButton visual variant (ADR-0003).\n * Maps to combinations of ButtonPrimary / ButtonSecondary / ButtonTertiary presentation with `isSelected`.\n */\nexport const SegmentButtonVariant = {\n Primary: 'primary',\n Secondary: 'secondary',\n} as const;\nexport type SegmentButtonVariant =\n (typeof SegmentButtonVariant)[keyof typeof SegmentButtonVariant];\n\n/**\n * SegmentButton component shared props (ADR-0004).\n */\nexport type SegmentButtonPropsShared = {\n /**\n * Segment identity when used inside `SegmentGroup`. When set and an ancestor `SegmentGroup` exists, selection is derived from the group `value` and `isSelected` is ignored.\n */\n value?: string;\n /**\n * When true, the segment uses the \"selected\" visual for the current `variant`.\n *\n * @default false\n */\n isSelected?: boolean;\n /**\n * Visual variant: `primary` toggles between ButtonPrimary (selected) and ButtonSecondary (unselected); `secondary` toggles between ButtonSecondary (selected) and ButtonTertiary-like row with alternative text/icon color (unselected).\n *\n * @default primary\n */\n variant?: SegmentButtonVariant;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SegmentButtonVariant = void 0;
4
+ var SegmentButton_types_1 = require("./SegmentButton.types.cjs");
5
+ Object.defineProperty(exports, "SegmentButtonVariant", { enumerable: true, get: function () { return SegmentButton_types_1.SegmentButtonVariant; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/SegmentButton/index.ts"],"names":[],"mappings":";;;AAAA,iEAG+B;AAF7B,2HAAA,oBAAoB,OAAA","sourcesContent":["export {\n SegmentButtonVariant,\n type SegmentButtonPropsShared,\n} from './SegmentButton.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { SegmentButtonVariant, type SegmentButtonPropsShared, } from "./SegmentButton.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/SegmentButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { SegmentButtonVariant, type SegmentButtonPropsShared, } from "./SegmentButton.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/SegmentButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { SegmentButtonVariant } from "./SegmentButton.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/SegmentButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAErB,kCAA8B","sourcesContent":["export {\n SegmentButtonVariant,\n type SegmentButtonPropsShared,\n} from './SegmentButton.types';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SegmentGroup.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.cjs","sourceRoot":"","sources":["../../../src/types/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SegmentButtonVariant } from '../SegmentButton/SegmentButton.types';\n\n/**\n * SegmentGroup component shared props (ADR-0004).\n * Controlled-only: parent owns `value` and updates it from `onChange`.\n */\nexport type SegmentGroupPropsShared = {\n /**\n * Selected segment value; must match a child `SegmentButton` `value`.\n */\n value: string;\n /**\n * Called when the user selects a segment (via a participating `SegmentButton`).\n */\n onChange: (value: string) => void;\n /**\n * Optional default `variant` for segment buttons in this group. Each `SegmentButton` may still override with its own `variant` prop.\n */\n variant?: SegmentButtonVariant;\n};\n"]}
@@ -0,0 +1,20 @@
1
+ import type { SegmentButtonVariant } from "../SegmentButton/SegmentButton.types.cjs";
2
+ /**
3
+ * SegmentGroup component shared props (ADR-0004).
4
+ * Controlled-only: parent owns `value` and updates it from `onChange`.
5
+ */
6
+ export type SegmentGroupPropsShared = {
7
+ /**
8
+ * Selected segment value; must match a child `SegmentButton` `value`.
9
+ */
10
+ value: string;
11
+ /**
12
+ * Called when the user selects a segment (via a participating `SegmentButton`).
13
+ */
14
+ onChange: (value: string) => void;
15
+ /**
16
+ * Optional default `variant` for segment buttons in this group. Each `SegmentButton` may still override with its own `variant` prop.
17
+ */
18
+ variant?: SegmentButtonVariant;
19
+ };
20
+ //# sourceMappingURL=SegmentGroup.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.d.cts","sourceRoot":"","sources":["../../../src/types/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iDAA6C;AAEjF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { SegmentButtonVariant } from "../SegmentButton/SegmentButton.types.mjs";
2
+ /**
3
+ * SegmentGroup component shared props (ADR-0004).
4
+ * Controlled-only: parent owns `value` and updates it from `onChange`.
5
+ */
6
+ export type SegmentGroupPropsShared = {
7
+ /**
8
+ * Selected segment value; must match a child `SegmentButton` `value`.
9
+ */
10
+ value: string;
11
+ /**
12
+ * Called when the user selects a segment (via a participating `SegmentButton`).
13
+ */
14
+ onChange: (value: string) => void;
15
+ /**
16
+ * Optional default `variant` for segment buttons in this group. Each `SegmentButton` may still override with its own `variant` prop.
17
+ */
18
+ variant?: SegmentButtonVariant;
19
+ };
20
+ //# sourceMappingURL=SegmentGroup.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.d.mts","sourceRoot":"","sources":["../../../src/types/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iDAA6C;AAEjF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SegmentGroup.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentGroup.types.mjs","sourceRoot":"","sources":["../../../src/types/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SegmentButtonVariant } from '../SegmentButton/SegmentButton.types';\n\n/**\n * SegmentGroup component shared props (ADR-0004).\n * Controlled-only: parent owns `value` and updates it from `onChange`.\n */\nexport type SegmentGroupPropsShared = {\n /**\n * Selected segment value; must match a child `SegmentButton` `value`.\n */\n value: string;\n /**\n * Called when the user selects a segment (via a participating `SegmentButton`).\n */\n onChange: (value: string) => void;\n /**\n * Optional default `variant` for segment buttons in this group. Each `SegmentButton` may still override with its own `variant` prop.\n */\n variant?: SegmentButtonVariant;\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/SegmentGroup/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type SegmentGroupPropsShared } from './SegmentGroup.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { type SegmentGroupPropsShared } from "./SegmentGroup.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/SegmentGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAE,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export { type SegmentGroupPropsShared } from "./SegmentGroup.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/SegmentGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAE,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/SegmentGroup/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type SegmentGroupPropsShared } from './SegmentGroup.types';\n"]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectButtonVariant = exports.SelectButtonEndArrow = exports.SelectButtonSize = void 0;
4
+ const ButtonBase_types_1 = require("../ButtonBase/ButtonBase.types.cjs");
5
+ /**
6
+ * SelectButton size options (ADR-0003).
7
+ * Alias to ButtonBaseSize to keep values in sync.
8
+ */
9
+ exports.SelectButtonSize = ButtonBase_types_1.ButtonBaseSize;
10
+ /**
11
+ * SelectButton — trailing arrow direction (maps to platform arrow icons).
12
+ * Convert from enum to const object (ADR-0003).
13
+ */
14
+ exports.SelectButtonEndArrow = {
15
+ Up: 'up',
16
+ Down: 'down',
17
+ Left: 'left',
18
+ Right: 'right',
19
+ };
20
+ /**
21
+ * SelectButton visual variant (ADR-0003).
22
+ * `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary container styling.
23
+ */
24
+ exports.SelectButtonVariant = {
25
+ Primary: 'primary',
26
+ Secondary: 'secondary',
27
+ Tertiary: 'tertiary',
28
+ };
29
+ //# sourceMappingURL=SelectButton.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.cjs","sourceRoot":"","sources":["../../../src/types/SelectButton/SelectButton.types.ts"],"names":[],"mappings":";;;AAEA,yEAAgE;AAEhE;;;GAGG;AACU,QAAA,gBAAgB,GAAG,iCAAc,CAAC;AAG/C;;;GAGG;AACU,QAAA,oBAAoB,GAAG;IAClC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAIX;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ButtonBaseSize } from '../ButtonBase/ButtonBase.types';\n\n/**\n * SelectButton size options (ADR-0003).\n * Alias to ButtonBaseSize to keep values in sync.\n */\nexport const SelectButtonSize = ButtonBaseSize;\nexport type SelectButtonSize = ButtonBaseSize;\n\n/**\n * SelectButton — trailing arrow direction (maps to platform arrow icons).\n * Convert from enum to const object (ADR-0003).\n */\nexport const SelectButtonEndArrow = {\n Up: 'up',\n Down: 'down',\n Left: 'left',\n Right: 'right',\n} as const;\nexport type SelectButtonEndArrow =\n (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow];\n\n/**\n * SelectButton visual variant (ADR-0003).\n * `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary container styling.\n */\nexport const SelectButtonVariant = {\n Primary: 'primary',\n Secondary: 'secondary',\n Tertiary: 'tertiary',\n} as const;\nexport type SelectButtonVariant =\n (typeof SelectButtonVariant)[keyof typeof SelectButtonVariant];\n\n/**\n * SelectButton component shared props (ADR-0004).\n */\nexport type SelectButtonPropsShared = {\n /**\n * Label shown when `value` is `undefined` or `null`. Only those two are treated as “no selection”; other falsy values (for example `””`) still render as `value`.\n */\n placeholder: string;\n /**\n * Height size of the button. Maps 1:1 to ButtonBaseSize values.\n *\n * @default Sm\n */\n size?: SelectButtonSize;\n /**\n * Selected label text. When `undefined` or `null`, `placeholder` is rendered instead.\n */\n value?: string | null;\n /**\n * Visual variant: `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary row styling; `tertiary` uses alternative text and trailing arrow icon color.\n *\n * @default primary\n */\n variant?: SelectButtonVariant;\n /**\n * Optional node rendered before the label (for example an icon).\n */\n startAccessory?: ReactNode;\n /**\n * Maps to the trailing arrow `Icon` at the end of the row.\n * Defaults to `down` when neither `hideEndArrow` nor `endAccessory` is used.\n * When `endAccessory` is passed and this prop is omitted, `endAccessory` is shown instead of the arrow.\n * When both are passed, `endArrowDirection` takes precedence and `endAccessory` is ignored.\n *\n * @default down (when no `endAccessory`)\n */\n endArrowDirection?: SelectButtonEndArrow;\n /**\n * When `true`, the trailing arrow is not rendered (`endAccessory` may still render).\n *\n * @default false\n */\n hideEndArrow?: boolean;\n /**\n * Optional node at the end of the row when no trailing arrow is shown (for example a custom icon or badge).\n */\n endAccessory?: ReactNode;\n /**\n * When true, disables the root control and applies disabled presentation.\n *\n * @default false\n */\n isDisabled?: boolean;\n};\n"]}
@@ -0,0 +1,88 @@
1
+ import type { ReactNode } from "react";
2
+ import { ButtonBaseSize } from "../ButtonBase/ButtonBase.types.cjs";
3
+ /**
4
+ * SelectButton size options (ADR-0003).
5
+ * Alias to ButtonBaseSize to keep values in sync.
6
+ */
7
+ export declare const SelectButtonSize: {
8
+ readonly Sm: "sm";
9
+ readonly Md: "md";
10
+ readonly Lg: "lg";
11
+ };
12
+ export type SelectButtonSize = ButtonBaseSize;
13
+ /**
14
+ * SelectButton — trailing arrow direction (maps to platform arrow icons).
15
+ * Convert from enum to const object (ADR-0003).
16
+ */
17
+ export declare const SelectButtonEndArrow: {
18
+ readonly Up: "up";
19
+ readonly Down: "down";
20
+ readonly Left: "left";
21
+ readonly Right: "right";
22
+ };
23
+ export type SelectButtonEndArrow = (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow];
24
+ /**
25
+ * SelectButton visual variant (ADR-0003).
26
+ * `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary container styling.
27
+ */
28
+ export declare const SelectButtonVariant: {
29
+ readonly Primary: "primary";
30
+ readonly Secondary: "secondary";
31
+ readonly Tertiary: "tertiary";
32
+ };
33
+ export type SelectButtonVariant = (typeof SelectButtonVariant)[keyof typeof SelectButtonVariant];
34
+ /**
35
+ * SelectButton component shared props (ADR-0004).
36
+ */
37
+ export type SelectButtonPropsShared = {
38
+ /**
39
+ * Label shown when `value` is `undefined` or `null`. Only those two are treated as “no selection”; other falsy values (for example `””`) still render as `value`.
40
+ */
41
+ placeholder: string;
42
+ /**
43
+ * Height size of the button. Maps 1:1 to ButtonBaseSize values.
44
+ *
45
+ * @default Sm
46
+ */
47
+ size?: SelectButtonSize;
48
+ /**
49
+ * Selected label text. When `undefined` or `null`, `placeholder` is rendered instead.
50
+ */
51
+ value?: string | null;
52
+ /**
53
+ * Visual variant: `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary row styling; `tertiary` uses alternative text and trailing arrow icon color.
54
+ *
55
+ * @default primary
56
+ */
57
+ variant?: SelectButtonVariant;
58
+ /**
59
+ * Optional node rendered before the label (for example an icon).
60
+ */
61
+ startAccessory?: ReactNode;
62
+ /**
63
+ * Maps to the trailing arrow `Icon` at the end of the row.
64
+ * Defaults to `down` when neither `hideEndArrow` nor `endAccessory` is used.
65
+ * When `endAccessory` is passed and this prop is omitted, `endAccessory` is shown instead of the arrow.
66
+ * When both are passed, `endArrowDirection` takes precedence and `endAccessory` is ignored.
67
+ *
68
+ * @default down (when no `endAccessory`)
69
+ */
70
+ endArrowDirection?: SelectButtonEndArrow;
71
+ /**
72
+ * When `true`, the trailing arrow is not rendered (`endAccessory` may still render).
73
+ *
74
+ * @default false
75
+ */
76
+ hideEndArrow?: boolean;
77
+ /**
78
+ * Optional node at the end of the row when no trailing arrow is shown (for example a custom icon or badge).
79
+ */
80
+ endAccessory?: ReactNode;
81
+ /**
82
+ * When true, disables the root control and applies disabled presentation.
83
+ *
84
+ * @default false
85
+ */
86
+ isDisabled?: boolean;
87
+ };
88
+ //# sourceMappingURL=SelectButton.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.d.cts","sourceRoot":"","sources":["../../../src/types/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;CAAiB,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC"}
@@ -0,0 +1,88 @@
1
+ import type { ReactNode } from "react";
2
+ import { ButtonBaseSize } from "../ButtonBase/ButtonBase.types.mjs";
3
+ /**
4
+ * SelectButton size options (ADR-0003).
5
+ * Alias to ButtonBaseSize to keep values in sync.
6
+ */
7
+ export declare const SelectButtonSize: {
8
+ readonly Sm: "sm";
9
+ readonly Md: "md";
10
+ readonly Lg: "lg";
11
+ };
12
+ export type SelectButtonSize = ButtonBaseSize;
13
+ /**
14
+ * SelectButton — trailing arrow direction (maps to platform arrow icons).
15
+ * Convert from enum to const object (ADR-0003).
16
+ */
17
+ export declare const SelectButtonEndArrow: {
18
+ readonly Up: "up";
19
+ readonly Down: "down";
20
+ readonly Left: "left";
21
+ readonly Right: "right";
22
+ };
23
+ export type SelectButtonEndArrow = (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow];
24
+ /**
25
+ * SelectButton visual variant (ADR-0003).
26
+ * `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary container styling.
27
+ */
28
+ export declare const SelectButtonVariant: {
29
+ readonly Primary: "primary";
30
+ readonly Secondary: "secondary";
31
+ readonly Tertiary: "tertiary";
32
+ };
33
+ export type SelectButtonVariant = (typeof SelectButtonVariant)[keyof typeof SelectButtonVariant];
34
+ /**
35
+ * SelectButton component shared props (ADR-0004).
36
+ */
37
+ export type SelectButtonPropsShared = {
38
+ /**
39
+ * Label shown when `value` is `undefined` or `null`. Only those two are treated as “no selection”; other falsy values (for example `””`) still render as `value`.
40
+ */
41
+ placeholder: string;
42
+ /**
43
+ * Height size of the button. Maps 1:1 to ButtonBaseSize values.
44
+ *
45
+ * @default Sm
46
+ */
47
+ size?: SelectButtonSize;
48
+ /**
49
+ * Selected label text. When `undefined` or `null`, `placeholder` is rendered instead.
50
+ */
51
+ value?: string | null;
52
+ /**
53
+ * Visual variant: `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary row styling; `tertiary` uses alternative text and trailing arrow icon color.
54
+ *
55
+ * @default primary
56
+ */
57
+ variant?: SelectButtonVariant;
58
+ /**
59
+ * Optional node rendered before the label (for example an icon).
60
+ */
61
+ startAccessory?: ReactNode;
62
+ /**
63
+ * Maps to the trailing arrow `Icon` at the end of the row.
64
+ * Defaults to `down` when neither `hideEndArrow` nor `endAccessory` is used.
65
+ * When `endAccessory` is passed and this prop is omitted, `endAccessory` is shown instead of the arrow.
66
+ * When both are passed, `endArrowDirection` takes precedence and `endAccessory` is ignored.
67
+ *
68
+ * @default down (when no `endAccessory`)
69
+ */
70
+ endArrowDirection?: SelectButtonEndArrow;
71
+ /**
72
+ * When `true`, the trailing arrow is not rendered (`endAccessory` may still render).
73
+ *
74
+ * @default false
75
+ */
76
+ hideEndArrow?: boolean;
77
+ /**
78
+ * Optional node at the end of the row when no trailing arrow is shown (for example a custom icon or badge).
79
+ */
80
+ endAccessory?: ReactNode;
81
+ /**
82
+ * When true, disables the root control and applies disabled presentation.
83
+ *
84
+ * @default false
85
+ */
86
+ isDisabled?: boolean;
87
+ };
88
+ //# sourceMappingURL=SelectButton.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.d.mts","sourceRoot":"","sources":["../../../src/types/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;CAAiB,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { ButtonBaseSize } from "../ButtonBase/ButtonBase.types.mjs";
2
+ /**
3
+ * SelectButton size options (ADR-0003).
4
+ * Alias to ButtonBaseSize to keep values in sync.
5
+ */
6
+ export const SelectButtonSize = ButtonBaseSize;
7
+ /**
8
+ * SelectButton — trailing arrow direction (maps to platform arrow icons).
9
+ * Convert from enum to const object (ADR-0003).
10
+ */
11
+ export const SelectButtonEndArrow = {
12
+ Up: 'up',
13
+ Down: 'down',
14
+ Left: 'left',
15
+ Right: 'right',
16
+ };
17
+ /**
18
+ * SelectButton visual variant (ADR-0003).
19
+ * `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary container styling.
20
+ */
21
+ export const SelectButtonVariant = {
22
+ Primary: 'primary',
23
+ Secondary: 'secondary',
24
+ Tertiary: 'tertiary',
25
+ };
26
+ //# sourceMappingURL=SelectButton.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.types.mjs","sourceRoot":"","sources":["../../../src/types/SelectButton/SelectButton.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAG/C;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\nimport { ButtonBaseSize } from '../ButtonBase/ButtonBase.types';\n\n/**\n * SelectButton size options (ADR-0003).\n * Alias to ButtonBaseSize to keep values in sync.\n */\nexport const SelectButtonSize = ButtonBaseSize;\nexport type SelectButtonSize = ButtonBaseSize;\n\n/**\n * SelectButton — trailing arrow direction (maps to platform arrow icons).\n * Convert from enum to const object (ADR-0003).\n */\nexport const SelectButtonEndArrow = {\n Up: 'up',\n Down: 'down',\n Left: 'left',\n Right: 'right',\n} as const;\nexport type SelectButtonEndArrow =\n (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow];\n\n/**\n * SelectButton visual variant (ADR-0003).\n * `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary container styling.\n */\nexport const SelectButtonVariant = {\n Primary: 'primary',\n Secondary: 'secondary',\n Tertiary: 'tertiary',\n} as const;\nexport type SelectButtonVariant =\n (typeof SelectButtonVariant)[keyof typeof SelectButtonVariant];\n\n/**\n * SelectButton component shared props (ADR-0004).\n */\nexport type SelectButtonPropsShared = {\n /**\n * Label shown when `value` is `undefined` or `null`. Only those two are treated as “no selection”; other falsy values (for example `””`) still render as `value`.\n */\n placeholder: string;\n /**\n * Height size of the button. Maps 1:1 to ButtonBaseSize values.\n *\n * @default Sm\n */\n size?: SelectButtonSize;\n /**\n * Selected label text. When `undefined` or `null`, `placeholder` is rendered instead.\n */\n value?: string | null;\n /**\n * Visual variant: `primary` matches ButtonSecondary; `secondary` and `tertiary` match ButtonTertiary row styling; `tertiary` uses alternative text and trailing arrow icon color.\n *\n * @default primary\n */\n variant?: SelectButtonVariant;\n /**\n * Optional node rendered before the label (for example an icon).\n */\n startAccessory?: ReactNode;\n /**\n * Maps to the trailing arrow `Icon` at the end of the row.\n * Defaults to `down` when neither `hideEndArrow` nor `endAccessory` is used.\n * When `endAccessory` is passed and this prop is omitted, `endAccessory` is shown instead of the arrow.\n * When both are passed, `endArrowDirection` takes precedence and `endAccessory` is ignored.\n *\n * @default down (when no `endAccessory`)\n */\n endArrowDirection?: SelectButtonEndArrow;\n /**\n * When `true`, the trailing arrow is not rendered (`endAccessory` may still render).\n *\n * @default false\n */\n hideEndArrow?: boolean;\n /**\n * Optional node at the end of the row when no trailing arrow is shown (for example a custom icon or badge).\n */\n endAccessory?: ReactNode;\n /**\n * When true, disables the root control and applies disabled presentation.\n *\n * @default false\n */\n isDisabled?: boolean;\n};\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectButtonVariant = exports.SelectButtonEndArrow = exports.SelectButtonSize = void 0;
4
+ var SelectButton_types_1 = require("./SelectButton.types.cjs");
5
+ Object.defineProperty(exports, "SelectButtonSize", { enumerable: true, get: function () { return SelectButton_types_1.SelectButtonSize; } });
6
+ Object.defineProperty(exports, "SelectButtonEndArrow", { enumerable: true, get: function () { return SelectButton_types_1.SelectButtonEndArrow; } });
7
+ Object.defineProperty(exports, "SelectButtonVariant", { enumerable: true, get: function () { return SelectButton_types_1.SelectButtonVariant; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/SelectButton/index.ts"],"names":[],"mappings":";;;AAAA,+DAK8B;AAJ5B,sHAAA,gBAAgB,OAAA;AAChB,0HAAA,oBAAoB,OAAA;AACpB,yHAAA,mBAAmB,OAAA","sourcesContent":["export {\n SelectButtonSize,\n SelectButtonEndArrow,\n SelectButtonVariant,\n type SelectButtonPropsShared,\n} from './SelectButton.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { SelectButtonSize, SelectButtonEndArrow, SelectButtonVariant, type SelectButtonPropsShared, } from "./SelectButton.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/SelectButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,uBAAuB,GAC7B,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export { SelectButtonSize, SelectButtonEndArrow, SelectButtonVariant, type SelectButtonPropsShared, } from "./SelectButton.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/SelectButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,uBAAuB,GAC7B,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export { SelectButtonSize, SelectButtonEndArrow, SelectButtonVariant } from "./SelectButton.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/SelectButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EAEpB,iCAA6B","sourcesContent":["export {\n SelectButtonSize,\n SelectButtonEndArrow,\n SelectButtonVariant,\n type SelectButtonPropsShared,\n} from './SelectButton.types';\n"]}