@bacon-pos/ui 0.11.0 → 0.16.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/lib/commonjs/components/CodeInput/CodeInput.js +28 -9
- package/lib/commonjs/components/CodeInput/CodeInput.js.map +1 -1
- package/lib/commonjs/components/CodeInput/CodeInput.stories.js +28 -1
- package/lib/commonjs/components/CodeInput/CodeInput.stories.js.map +1 -1
- package/lib/commonjs/components/CodeInput/CodeInput.test.js +16 -0
- package/lib/commonjs/components/CodeInput/CodeInput.test.js.map +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +116 -71
- package/lib/commonjs/components/Dialog/Dialog.js.map +1 -1
- package/lib/commonjs/components/Dialog/StepDialog.js +111 -0
- package/lib/commonjs/components/Dialog/StepDialog.js.map +1 -0
- package/lib/commonjs/components/Dialog/StepDialog.stories.js +157 -0
- package/lib/commonjs/components/Dialog/StepDialog.stories.js.map +1 -0
- package/lib/commonjs/components/Dialog/StepDialog.test.js +118 -0
- package/lib/commonjs/components/Dialog/StepDialog.test.js.map +1 -0
- package/lib/commonjs/components/Dialog/index.js +7 -0
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Icon/icons.generated.js +9 -1
- package/lib/commonjs/components/Icon/icons.generated.js.map +1 -1
- package/lib/commonjs/components/List/List.js +45 -0
- package/lib/commonjs/components/List/List.js.map +1 -0
- package/lib/commonjs/components/List/List.stories.js +215 -0
- package/lib/commonjs/components/List/List.stories.js.map +1 -0
- package/lib/commonjs/components/List/List.test.js +94 -0
- package/lib/commonjs/components/List/List.test.js.map +1 -0
- package/lib/commonjs/components/List/ListItem.js +210 -0
- package/lib/commonjs/components/List/ListItem.js.map +1 -0
- package/lib/commonjs/components/List/index.js +20 -0
- package/lib/commonjs/components/List/index.js.map +1 -0
- package/lib/commonjs/components/Menu/Menu.js +11 -3
- package/lib/commonjs/components/Menu/Menu.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +4 -3
- package/lib/commonjs/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/commonjs/components/SegmentedButton/SegmentedButton.js +217 -0
- package/lib/commonjs/components/SegmentedButton/SegmentedButton.js.map +1 -0
- package/lib/commonjs/components/SegmentedButton/SegmentedButton.stories.js +215 -0
- package/lib/commonjs/components/SegmentedButton/SegmentedButton.stories.js.map +1 -0
- package/lib/commonjs/components/SegmentedButton/SegmentedButton.test.js +97 -0
- package/lib/commonjs/components/SegmentedButton/SegmentedButton.test.js.map +1 -0
- package/lib/commonjs/components/SegmentedButton/index.js +13 -0
- package/lib/commonjs/components/SegmentedButton/index.js.map +1 -0
- package/lib/commonjs/components/Sidebar/Sidebar.js +20 -3
- package/lib/commonjs/components/Sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/components/Sidebar/Sidebar.stories.js +17 -1
- package/lib/commonjs/components/Sidebar/Sidebar.stories.js.map +1 -1
- package/lib/commonjs/components/Table/Table.js +69 -6
- package/lib/commonjs/components/Table/Table.js.map +1 -1
- package/lib/commonjs/components/Table/Table.stories.js +118 -1
- package/lib/commonjs/components/Table/Table.stories.js.map +1 -1
- package/lib/commonjs/components/Table/Table.test.js +58 -0
- package/lib/commonjs/components/Table/Table.test.js.map +1 -1
- package/lib/commonjs/components/_internal/ModalHostContext.js +21 -0
- package/lib/commonjs/components/_internal/ModalHostContext.js.map +1 -0
- package/lib/commonjs/components/index.js +37 -15
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/module/components/CodeInput/CodeInput.js +28 -9
- package/lib/module/components/CodeInput/CodeInput.js.map +1 -1
- package/lib/module/components/CodeInput/CodeInput.stories.js +27 -0
- package/lib/module/components/CodeInput/CodeInput.stories.js.map +1 -1
- package/lib/module/components/CodeInput/CodeInput.test.js +16 -0
- package/lib/module/components/CodeInput/CodeInput.test.js.map +1 -1
- package/lib/module/components/Dialog/Dialog.js +116 -71
- package/lib/module/components/Dialog/Dialog.js.map +1 -1
- package/lib/module/components/Dialog/StepDialog.js +107 -0
- package/lib/module/components/Dialog/StepDialog.js.map +1 -0
- package/lib/module/components/Dialog/StepDialog.stories.js +153 -0
- package/lib/module/components/Dialog/StepDialog.stories.js.map +1 -0
- package/lib/module/components/Dialog/StepDialog.test.js +117 -0
- package/lib/module/components/Dialog/StepDialog.test.js.map +1 -0
- package/lib/module/components/Dialog/index.js +1 -0
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Icon/icons.generated.js +9 -1
- package/lib/module/components/Icon/icons.generated.js.map +1 -1
- package/lib/module/components/List/List.js +41 -0
- package/lib/module/components/List/List.js.map +1 -0
- package/lib/module/components/List/List.stories.js +211 -0
- package/lib/module/components/List/List.stories.js.map +1 -0
- package/lib/module/components/List/List.test.js +94 -0
- package/lib/module/components/List/List.test.js.map +1 -0
- package/lib/module/components/List/ListItem.js +206 -0
- package/lib/module/components/List/ListItem.js.map +1 -0
- package/lib/module/components/List/index.js +5 -0
- package/lib/module/components/List/index.js.map +1 -0
- package/lib/module/components/Menu/Menu.js +12 -4
- package/lib/module/components/Menu/Menu.js.map +1 -1
- package/lib/module/components/ProgressBar/ProgressBar.js +4 -3
- package/lib/module/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/module/components/SegmentedButton/SegmentedButton.js +213 -0
- package/lib/module/components/SegmentedButton/SegmentedButton.js.map +1 -0
- package/lib/module/components/SegmentedButton/SegmentedButton.stories.js +211 -0
- package/lib/module/components/SegmentedButton/SegmentedButton.stories.js.map +1 -0
- package/lib/module/components/SegmentedButton/SegmentedButton.test.js +96 -0
- package/lib/module/components/SegmentedButton/SegmentedButton.test.js.map +1 -0
- package/lib/module/components/SegmentedButton/index.js +4 -0
- package/lib/module/components/SegmentedButton/index.js.map +1 -0
- package/lib/module/components/Sidebar/Sidebar.js +20 -3
- package/lib/module/components/Sidebar/Sidebar.js.map +1 -1
- package/lib/module/components/Sidebar/Sidebar.stories.js +16 -0
- package/lib/module/components/Sidebar/Sidebar.stories.js.map +1 -1
- package/lib/module/components/Table/Table.js +70 -7
- package/lib/module/components/Table/Table.js.map +1 -1
- package/lib/module/components/Table/Table.stories.js +117 -0
- package/lib/module/components/Table/Table.stories.js.map +1 -1
- package/lib/module/components/Table/Table.test.js +58 -0
- package/lib/module/components/Table/Table.test.js.map +1 -1
- package/lib/module/components/_internal/ModalHostContext.js +17 -0
- package/lib/module/components/_internal/ModalHostContext.js.map +1 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/typescript/commonjs/components/CodeInput/CodeInput.d.ts +5 -1
- package/lib/typescript/commonjs/components/CodeInput/CodeInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +13 -1
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Dialog/StepDialog.d.ts +63 -0
- package/lib/typescript/commonjs/components/Dialog/StepDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Dialog/index.d.ts +1 -0
- package/lib/typescript/commonjs/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Icon/icons.generated.d.ts +8 -0
- package/lib/typescript/commonjs/components/Icon/icons.generated.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/List/List.d.ts +22 -0
- package/lib/typescript/commonjs/components/List/List.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/List/ListItem.d.ts +61 -0
- package/lib/typescript/commonjs/components/List/ListItem.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/List/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/List/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +4 -2
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +3 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/SegmentedButton/SegmentedButton.d.ts +68 -0
- package/lib/typescript/commonjs/components/SegmentedButton/SegmentedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/SegmentedButton/index.d.ts +2 -0
- package/lib/typescript/commonjs/components/SegmentedButton/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Table/Table.d.ts +25 -3
- package/lib/typescript/commonjs/components/Table/Table.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/_internal/ModalHostContext.d.ts +11 -0
- package/lib/typescript/commonjs/components/_internal/ModalHostContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +2 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/CodeInput/CodeInput.d.ts +5 -1
- package/lib/typescript/module/components/CodeInput/CodeInput.d.ts.map +1 -1
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +13 -1
- package/lib/typescript/module/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/components/Dialog/StepDialog.d.ts +63 -0
- package/lib/typescript/module/components/Dialog/StepDialog.d.ts.map +1 -0
- package/lib/typescript/module/components/Dialog/index.d.ts +1 -0
- package/lib/typescript/module/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/module/components/Icon/icons.generated.d.ts +8 -0
- package/lib/typescript/module/components/Icon/icons.generated.d.ts.map +1 -1
- package/lib/typescript/module/components/List/List.d.ts +22 -0
- package/lib/typescript/module/components/List/List.d.ts.map +1 -0
- package/lib/typescript/module/components/List/ListItem.d.ts +61 -0
- package/lib/typescript/module/components/List/ListItem.d.ts.map +1 -0
- package/lib/typescript/module/components/List/index.d.ts +5 -0
- package/lib/typescript/module/components/List/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Menu/Menu.d.ts +4 -2
- package/lib/typescript/module/components/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +3 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/lib/typescript/module/components/SegmentedButton/SegmentedButton.d.ts +68 -0
- package/lib/typescript/module/components/SegmentedButton/SegmentedButton.d.ts.map +1 -0
- package/lib/typescript/module/components/SegmentedButton/index.d.ts +2 -0
- package/lib/typescript/module/components/SegmentedButton/index.d.ts.map +1 -0
- package/lib/typescript/module/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/components/Table/Table.d.ts +25 -3
- package/lib/typescript/module/components/Table/Table.d.ts.map +1 -1
- package/lib/typescript/module/components/_internal/ModalHostContext.d.ts +11 -0
- package/lib/typescript/module/components/_internal/ModalHostContext.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +2 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/package.json +16 -14
- package/src/components/CodeInput/CodeInput.tsx +46 -14
- package/src/components/Dialog/Dialog.tsx +92 -31
- package/src/components/Dialog/StepDialog.tsx +173 -0
- package/src/components/Dialog/index.ts +1 -0
- package/src/components/Icon/icons.generated.ts +9 -1
- package/src/components/List/List.tsx +45 -0
- package/src/components/List/ListItem.tsx +214 -0
- package/src/components/List/index.ts +4 -0
- package/src/components/Menu/Menu.tsx +15 -6
- package/src/components/ProgressBar/ProgressBar.tsx +6 -3
- package/src/components/SegmentedButton/SegmentedButton.tsx +269 -0
- package/src/components/SegmentedButton/index.ts +7 -0
- package/src/components/Sidebar/Sidebar.tsx +18 -10
- package/src/components/Table/Table.tsx +93 -8
- package/src/components/_internal/ModalHostContext.tsx +15 -0
- package/src/components/index.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAOL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
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Z,mBAAmB,EACnB,iBAAiB,EACjB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,OAAc,EACd,SAAS,EACT,cAAc,EACd,OAAe,EACf,cAA0B,EAC1B,WAA4B,EAC5B,YAAgB,EAChB,KAAK,EACL,gBAAsB,EACtB,KAAK,GACN,EAAE,UAAU,CAAC,CAAC,CAAC,2CAwcf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True when the subtree is rendered inside a full-screen (statusBarTranslucent)
|
|
3
|
+
* Modal host — e.g. `Dialog`, or a `Menu` overlay. Anchored menus use this to
|
|
4
|
+
* skip the status-bar coordinate compensation: inside such a host, a trigger
|
|
5
|
+
* measured with `measureInWindow` is already in full-screen coordinates that
|
|
6
|
+
* match the menu's own Modal, so adding the status bar height would push the
|
|
7
|
+
* menu down (a visible gap). Outside a host, the compensation is still applied.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ModalHostContext: import("react").Context<boolean>;
|
|
10
|
+
export declare function useInsideModalHost(): boolean;
|
|
11
|
+
//# sourceMappingURL=ModalHostContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalHostContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/_internal/ModalHostContext.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,kCAAuB,CAAC;AAErD,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C"}
|
|
@@ -16,11 +16,13 @@ export * from './IconButton';
|
|
|
16
16
|
export * from './Input';
|
|
17
17
|
export * from './Keypad';
|
|
18
18
|
export * from './LinkButton';
|
|
19
|
+
export * from './List';
|
|
19
20
|
export * from './Menu';
|
|
20
21
|
export * from './ProductCard';
|
|
21
22
|
export * from './ProgressBar';
|
|
22
23
|
export * from './QuantityStepper';
|
|
23
24
|
export * from './Radio';
|
|
25
|
+
export * from './SegmentedButton';
|
|
24
26
|
export * from './Select';
|
|
25
27
|
export * from './Sidebar';
|
|
26
28
|
export * from './Spinner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAE3B,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAE3B,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -14,6 +14,10 @@ export interface CodeInputProps {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** Focus on mount. */
|
|
16
16
|
autoFocus?: boolean;
|
|
17
|
+
/** Mark the field invalid — turns the cells red. Pass a string to show it as a message below. */
|
|
18
|
+
error?: boolean | string;
|
|
19
|
+
/** Helper/message text below the cells. Replaced by the error message when `error` is a string. */
|
|
20
|
+
helperText?: string;
|
|
17
21
|
/** Show an eye toggle to reveal/hide the entered digits. */
|
|
18
22
|
revealable?: boolean;
|
|
19
23
|
/** Controlled reveal state. Omit for uncontrolled (toggled by the eye). */
|
|
@@ -37,5 +41,5 @@ export interface CodeInputProps {
|
|
|
37
41
|
* and the visible digits (position configurable). Controlled via
|
|
38
42
|
* `value` / `onChangeText`.
|
|
39
43
|
*/
|
|
40
|
-
export declare function CodeInput({ value, onChangeText, length, onComplete, disabled, autoFocus, revealable, revealed: revealedProp, onRevealChange, revealPosition, accessibilityLabel, revealLabel, hideLabel, style, }: CodeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function CodeInput({ value, onChangeText, length, onComplete, disabled, autoFocus, error, helperText, revealable, revealed: revealedProp, onRevealChange, revealPosition, accessibilityLabel, revealLabel, hideLabel, style, }: CodeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
41
45
|
//# sourceMappingURL=CodeInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/CodeInput/CodeInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB,qEAAqE;AACrE,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2DAA2D;IAC3D,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KA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7C,sDAAsD;IACtD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAwDD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,YAAY,EACZ,MAAU,EACV,UAAU,EACV,QAAgB,EAChB,SAAiB,EACjB,KAAK,EACL,UAAU,EACV,UAAkB,EAClB,QAAQ,EAAE,YAAY,EACtB,cAAc,EACd,cAAwB,EACxB,kBAA2B,EAC3B,WAAyB,EACzB,SAAuB,EACvB,KAAK,GACN,EAAE,cAAc,2CAoGhB"}
|
|
@@ -26,6 +26,18 @@ export interface DialogProps {
|
|
|
26
26
|
title: string;
|
|
27
27
|
/** Optional subtitle. */
|
|
28
28
|
subtitle?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Show a round back button to the left of the title and wire its press here.
|
|
31
|
+
* Used for multi-step flows (see `StepDialog`). Omit for a plain dialog.
|
|
32
|
+
*/
|
|
33
|
+
onBack?: () => void;
|
|
34
|
+
/** Accessibility label for the back button. Defaults to "Back". */
|
|
35
|
+
backAccessibilityLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Content pinned in the footer, above the action buttons (e.g. a step
|
|
38
|
+
* progress bar). Centered. Shows the footer region even without actions.
|
|
39
|
+
*/
|
|
40
|
+
footerAccessory?: ReactNode;
|
|
29
41
|
/** Any content — from text to a full form. */
|
|
30
42
|
children?: ReactNode;
|
|
31
43
|
/** Primary/secondary action buttons (right side). Keep total buttons ≤ 3. */
|
|
@@ -75,5 +87,5 @@ export interface DialogProps {
|
|
|
75
87
|
* screens instead of scrolling inside the card. Footer composes the
|
|
76
88
|
* design-system `Button`.
|
|
77
89
|
*/
|
|
78
|
-
export declare function Dialog({ visible, onClose, title, subtitle, children, actions, cancel, showClose, closeDestructive, dismissOnBackdrop, scrollMode, stickyHeader, stickyFooter, padding, contentSpacing, radius, maxWidth, width, fullscreen, maxHeightRatio, scrollbarColor, style, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
export declare function Dialog({ visible, onClose, title, subtitle, onBack, backAccessibilityLabel, footerAccessory, children, actions, cancel, showClose, closeDestructive, dismissOnBackdrop, scrollMode, stickyHeader, stickyFooter, padding, contentSpacing, radius, maxWidth, width, fullscreen, maxHeightRatio, scrollbarColor, style, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
79
91
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EASL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EASL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAO9D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,O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AqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,OAAO,EACP,KAAK,EACL,QAAQ,EACR,MAAM,EACN,sBAA+B,EAC/B,eAAe,EACf,QAAQ,EACR,OAAY,EACZ,MAAM,EACN,SAAgB,EAChB,gBAAwB,EACxB,iBAAyB,EACzB,UAAoB,EACpB,YAAmB,EACnB,YAAmB,EACnB,OAAY,EACZ,cAAmB,EACnB,MAAW,EACX,QAAc,EACd,KAAK,EACL,UAAkB,EAClB,cAAoB,EACpB,cAAc,EACd,KAAK,GACN,EAAE,WAAW,2CA+Nb"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type DialogProps } from './Dialog';
|
|
3
|
+
export interface StepDialogStep {
|
|
4
|
+
/** Header title for this step. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Optional subtitle under the title. */
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** The step body. */
|
|
9
|
+
content: ReactNode;
|
|
10
|
+
/** Primary button label. Defaults to "Continue" (or `finishLabel` on the last step). */
|
|
11
|
+
nextLabel?: string;
|
|
12
|
+
/** Disable the primary button — e.g. until this step is valid. */
|
|
13
|
+
nextDisabled?: boolean;
|
|
14
|
+
/** Show a spinner on the primary button (e.g. while submitting). */
|
|
15
|
+
nextLoading?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Run when the primary button is pressed on this step. Return (or resolve to)
|
|
18
|
+
* `false` to stay on the step — e.g. when validation fails. Anything else
|
|
19
|
+
* advances to the next step (or finishes on the last one).
|
|
20
|
+
*/
|
|
21
|
+
onNext?: () => boolean | void | Promise<boolean | void>;
|
|
22
|
+
}
|
|
23
|
+
export interface StepDialogProps extends Omit<DialogProps, 'title' | 'subtitle' | 'children' | 'actions' | 'cancel' | 'onBack' | 'footerAccessory'> {
|
|
24
|
+
/** The ordered steps of the flow. */
|
|
25
|
+
steps: StepDialogStep[];
|
|
26
|
+
/** Controlled step index. Omit for uncontrolled. */
|
|
27
|
+
step?: number;
|
|
28
|
+
/** Initial step index (uncontrolled). Defaults to 0. Resets to this on close. */
|
|
29
|
+
defaultStep?: number;
|
|
30
|
+
/** Notified whenever the step changes. */
|
|
31
|
+
onStepChange?: (index: number) => void;
|
|
32
|
+
/** Called after the last step's `onNext` resolves (unless it returned `false`). */
|
|
33
|
+
onFinish?: () => void;
|
|
34
|
+
/** Primary label on the last step. Defaults to "Finish". */
|
|
35
|
+
finishLabel?: string;
|
|
36
|
+
/** Secondary label used to go back on steps after the first. Defaults to "Back". */
|
|
37
|
+
backLabel?: string;
|
|
38
|
+
/** Secondary label on the first step (closes the dialog). Defaults to "Cancel". */
|
|
39
|
+
cancelLabel?: string;
|
|
40
|
+
/** Show the round back button in the header from step 2 onward. Defaults to true. */
|
|
41
|
+
showHeaderBack?: boolean;
|
|
42
|
+
/** Show the footer secondary button (Back / Cancel). Defaults to true. */
|
|
43
|
+
showFooterBack?: boolean;
|
|
44
|
+
/** Show the progress bar in the footer. Defaults to true. */
|
|
45
|
+
showProgress?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Width of the progress bar within the footer (centered). A number is px; a
|
|
48
|
+
* string is any RN dimension (e.g. `'62%'`). Defaults to `'62%'` — the narrower,
|
|
49
|
+
* centered bar from Figma (≈ 500 / 820 of the content width).
|
|
50
|
+
*/
|
|
51
|
+
progressWidth?: number | `${number}%`;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* StepDialog — a multi-step (wizard) flow built on `Dialog`. Give it an array of
|
|
55
|
+
* `steps`; it tracks the current one, renders a round back button in the header
|
|
56
|
+
* from step 2 onward, a thin progress bar in the footer, and a
|
|
57
|
+
* secondary (Back / Cancel) + primary (Continue / Finish) button pair. A step's
|
|
58
|
+
* `onNext` can return `false` (sync or async) to block advancing after failed
|
|
59
|
+
* validation. Controlled via `step`/`onStepChange` or fully uncontrolled.
|
|
60
|
+
* Forwards all other `Dialog` props (width, fullscreen, scrollMode, …).
|
|
61
|
+
*/
|
|
62
|
+
export declare function StepDialog({ steps, step, defaultStep, onStepChange, onFinish, finishLabel, backLabel, cancelLabel, showHeaderBack, showFooterBack, showProgress, progressWidth, visible, onClose, ...dialogProps }: StepDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
63
|
+
//# sourceMappingURL=StepDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/StepDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,WAAW,EACX,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,CACxF;IACD,qCAAqC;IACrC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qFAAqF;IACrF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC;CACvC;AAID;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,WAAe,EACf,YAAY,EACZ,QAAQ,EACR,WAAsB,EACtB,SAAkB,EAClB,WAAsB,EACtB,cAAqB,EACrB,cAAqB,EACrB,YAAmB,EACnB,aAAqB,EACrB,OAAO,EACP,OAAO,EACP,GAAG,WAAW,EACf,EAAE,eAAe,kDAqFjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -31,6 +31,7 @@ export declare const icons: {
|
|
|
31
31
|
"checkmark-circle": string;
|
|
32
32
|
"chevron-down": string;
|
|
33
33
|
"chevron-down-20": string;
|
|
34
|
+
"chevron-forward": string;
|
|
34
35
|
circle: string;
|
|
35
36
|
"circle-arrow-up-right-round": string;
|
|
36
37
|
city: string;
|
|
@@ -44,6 +45,7 @@ export declare const icons: {
|
|
|
44
45
|
"computer-add": string;
|
|
45
46
|
"computer-check": string;
|
|
46
47
|
"computer-settings": string;
|
|
48
|
+
connect: string;
|
|
47
49
|
"copy-01": string;
|
|
48
50
|
"credit-card": string;
|
|
49
51
|
"dashboard-square": string;
|
|
@@ -52,6 +54,7 @@ export declare const icons: {
|
|
|
52
54
|
discount: string;
|
|
53
55
|
"discount-2": string;
|
|
54
56
|
dish: string;
|
|
57
|
+
"dish-02": string;
|
|
55
58
|
"dish-20": string;
|
|
56
59
|
dislike: string;
|
|
57
60
|
"dollar-circle": string;
|
|
@@ -64,6 +67,7 @@ export declare const icons: {
|
|
|
64
67
|
"eye-hide": string;
|
|
65
68
|
"eye-off": string;
|
|
66
69
|
file: string;
|
|
70
|
+
"file-search": string;
|
|
67
71
|
filter: string;
|
|
68
72
|
"filter-20": string;
|
|
69
73
|
forbidden: string;
|
|
@@ -73,6 +77,7 @@ export declare const icons: {
|
|
|
73
77
|
identification: string;
|
|
74
78
|
info: string;
|
|
75
79
|
"information-square": string;
|
|
80
|
+
"insert-center-image": string;
|
|
76
81
|
investigation: string;
|
|
77
82
|
language: string;
|
|
78
83
|
"language-2": string;
|
|
@@ -82,6 +87,7 @@ export declare const icons: {
|
|
|
82
87
|
layout3: string;
|
|
83
88
|
layout4: string;
|
|
84
89
|
like: string;
|
|
90
|
+
limitation: string;
|
|
85
91
|
location: string;
|
|
86
92
|
"location-2": string;
|
|
87
93
|
lock: string;
|
|
@@ -99,6 +105,7 @@ export declare const icons: {
|
|
|
99
105
|
"no-coffee": string;
|
|
100
106
|
"no-photo": string;
|
|
101
107
|
notaco: string;
|
|
108
|
+
note: string;
|
|
102
109
|
notebook: string;
|
|
103
110
|
pause: string;
|
|
104
111
|
"pause-20": string;
|
|
@@ -114,6 +121,7 @@ export declare const icons: {
|
|
|
114
121
|
"plus-20": string;
|
|
115
122
|
"plus-circle": string;
|
|
116
123
|
printer: string;
|
|
124
|
+
"printer-off": string;
|
|
117
125
|
receipt: string;
|
|
118
126
|
"receipt-20": string;
|
|
119
127
|
reload: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.generated.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/icons.generated.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"icons.generated.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icon/icons.generated.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqLgB,CAAC;AAEnC,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
export interface ListProps {
|
|
4
|
+
/** `ListItem`s (or any rows). */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Hairline divider between items (never after the last). Defaults to true. */
|
|
7
|
+
showDividers?: boolean;
|
|
8
|
+
/** Horizontal inset for the dividers, to align with the items' content padding. Defaults to 12. */
|
|
9
|
+
dividerInset?: number;
|
|
10
|
+
/** Fixed width. Omit to fill the parent. */
|
|
11
|
+
width?: number;
|
|
12
|
+
/** Fill the parent width. Defaults to true. */
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List — a container for `ListItem`s that draws consistent hairline dividers
|
|
18
|
+
* between rows (never after the last). Fills its parent by default or takes a
|
|
19
|
+
* fixed `width`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function List({ children, showDividers, dividerInset, width, fullWidth, style }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpE,MAAM,WAAW,SAAS;IACxB,iCAAiC;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mGAAmG;IACnG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,YAAmB,EAAE,YAAiB,EAAE,KAAK,EAAE,SAAgB,EAAE,KAAK,EAAE,EAAE,SAAS,2CAqBnH"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { FontWeightToken, TypographyVariant } from '../../theme/typography';
|
|
4
|
+
import type { IconName } from '../Icon/icons.generated';
|
|
5
|
+
export type ListItemSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
export interface ListItemProps {
|
|
7
|
+
/** Primary text. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Secondary line below the title (string or node). */
|
|
10
|
+
subtitle?: ReactNode;
|
|
11
|
+
/** Small muted line above the title. */
|
|
12
|
+
overline?: string;
|
|
13
|
+
/** Icon rendered inline with the title (settings style). */
|
|
14
|
+
icon?: IconName;
|
|
15
|
+
/** Leading column before the text (e.g. an `Avatar`). */
|
|
16
|
+
leading?: ReactNode;
|
|
17
|
+
/** Trailing content (overrides `chevron`). */
|
|
18
|
+
trailing?: ReactNode;
|
|
19
|
+
/** Show a trailing forward chevron (navigable rows). */
|
|
20
|
+
chevron?: boolean;
|
|
21
|
+
/** Badge shown inline in the subtitle row. */
|
|
22
|
+
badge?: ReactNode;
|
|
23
|
+
/** Size preset — scales the title typography and spacing. Defaults to `md`. */
|
|
24
|
+
size?: ListItemSize;
|
|
25
|
+
/** Vertical alignment of leading/trailing vs text. Defaults to `center`. */
|
|
26
|
+
align?: 'top' | 'center';
|
|
27
|
+
/** Bottom divider on the item itself. Defaults to false (a `List` owns dividers). */
|
|
28
|
+
divider?: boolean;
|
|
29
|
+
/** Highlight as selected. */
|
|
30
|
+
selected?: boolean;
|
|
31
|
+
/** Dim and block the row. */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/** Make the row pressable (adds hover/active states). */
|
|
34
|
+
onPress?: () => void;
|
|
35
|
+
/** Overrides. */
|
|
36
|
+
titleColor?: string;
|
|
37
|
+
subtitleColor?: string;
|
|
38
|
+
overlineColor?: string;
|
|
39
|
+
titleVariant?: TypographyVariant;
|
|
40
|
+
titleWeight?: FontWeightToken;
|
|
41
|
+
paddingVertical?: number;
|
|
42
|
+
paddingHorizontal?: number;
|
|
43
|
+
/** Gap between the leading column and the text. */
|
|
44
|
+
gap?: number;
|
|
45
|
+
/** Fixed width. Omit to fill the parent. */
|
|
46
|
+
width?: number;
|
|
47
|
+
/** Fill the parent width. Defaults to true. */
|
|
48
|
+
fullWidth?: boolean;
|
|
49
|
+
style?: StyleProp<ViewStyle>;
|
|
50
|
+
accessibilityLabel?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* ListItem — a flexible list row (Figma "List items"). Anatomy: an optional
|
|
54
|
+
* leading column (avatar/custom) or an inline title `icon`, an overline / title /
|
|
55
|
+
* subtitle text block, an inline `badge`, and a trailing slot or forward
|
|
56
|
+
* `chevron`. `size` (sm/md/lg) scales the title and spacing; press adds
|
|
57
|
+
* hover/active states. Fills its parent by default or takes a fixed `width`.
|
|
58
|
+
* Usually wrapped in `List`, which manages the dividers.
|
|
59
|
+
*/
|
|
60
|
+
export declare function ListItem({ title, subtitle, overline, icon, leading, trailing, chevron, badge, size, align, divider, selected, disabled, onPress, titleColor, subtitleColor, overlineColor, titleVariant, titleWeight, paddingVertical, paddingHorizontal, gap, width, fullWidth, style, accessibilityLabel, }: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAmB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc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M,CAAC;IAC3B,mDAAmD;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAWD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,OAAe,EACf,KAAK,EACL,IAAW,EACX,KAAgB,EAChB,OAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,OAAO,EACP,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAsB,EACtB,GAAG,EACH,KAAK,EACL,SAAgB,EAChB,KAAK,EACL,kBAAkB,GACnB,EAAE,aAAa,2CA6Gf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -42,8 +42,10 @@ export interface MenuProps {
|
|
|
42
42
|
insets?: EdgeInsets;
|
|
43
43
|
/**
|
|
44
44
|
* Offset between window coordinates (where the trigger is measured) and the
|
|
45
|
-
* full-screen Modal the menu paints into.
|
|
46
|
-
*
|
|
45
|
+
* full-screen Modal the menu paints into. When omitted it defaults to the
|
|
46
|
+
* Android status bar height, or 0 when rendered inside a full-screen Modal host
|
|
47
|
+
* (e.g. `Dialog`) or on iOS / web. Pass an explicit value to override (e.g. 0
|
|
48
|
+
* when the host runs edge-to-edge / immersive).
|
|
47
49
|
*/
|
|
48
50
|
statusBarHeight?: number;
|
|
49
51
|
/** Controlled open state. Omit for uncontrolled. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAUL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3D,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,kFAAkF;AAClF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,uDAAuD;IACvD,aAAa,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,SAAS,CAAC;IACtD;;;;OAIG;IACH,QAAQ,EACJ,SAAS,GACT,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;IAC7F,gFAAgF;IAChF,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iGAAiG;IACjG,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gDAAgD;IAChD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6FAA6F;IAC7F,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAcD;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,EACnB,aAAa,EACb,QAAQ,EACR,YAAyD,EACzD,UAAoD,EACpD,MAAU,EACV,OAAc,EACd,MAAoB,EACpB,eAAe,EACf,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,aAAiB,EACjB,YAAY,GACb,EAAE,SAAS,2CAqIX"}
|
|
@@ -20,6 +20,8 @@ export interface ProgressBarProps {
|
|
|
20
20
|
trackColor?: string;
|
|
21
21
|
/** Track border color. Defaults to `border.default`. */
|
|
22
22
|
borderColor?: string;
|
|
23
|
+
/** Draw the track border (and inner inset). Set false for a flat, thin bar. Defaults to true. */
|
|
24
|
+
bordered?: boolean;
|
|
23
25
|
/** Animate width changes. Defaults to true. */
|
|
24
26
|
animated?: boolean;
|
|
25
27
|
/** Override the container style. */
|
|
@@ -33,5 +35,5 @@ export interface ProgressBarProps {
|
|
|
33
35
|
* row underneath shows a customizable `label` (default "Downloading...") on the
|
|
34
36
|
* left and the percentage on the right. Colors, height and width are tokens/props.
|
|
35
37
|
*/
|
|
36
|
-
export declare function ProgressBar({ progress, label, showSupporting, showValue, formatValue, height, width, color, trackColor, borderColor, animated, style, accessibilityLabel, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare function ProgressBar({ progress, label, showSupporting, showValue, formatValue, height, width, color, trackColor, borderColor, bordered, animated, style, accessibilityLabel, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
37
39
|
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAItF,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,KAAwB,EACxB,cAAqB,EACrB,SAAgB,EAChB,WAAW,EACX,MAAW,EACX,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAe,EACf,KAAK,EACL,kBAAkB,GACnB,EAAE,gBAAgB,2CA8ElB"}
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAItF,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iGAAiG;IACjG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,KAAwB,EACxB,cAAqB,EACrB,SAAgB,EAChB,WAAW,EACX,MAAW,EACX,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAe,EACf,QAAe,EACf,KAAK,EACL,kBAAkB,GACnB,EAAE,gBAAgB,2CA8ElB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { IconName } from '../Icon/icons.generated';
|
|
3
|
+
export type SegmentedButtonSize = 'sm' | 'md';
|
|
4
|
+
/** `default` = soft-rounded rectangle; `round` = fully rounded (pill). */
|
|
5
|
+
export type SegmentedButtonShape = 'default' | 'round';
|
|
6
|
+
export interface SegmentedOption {
|
|
7
|
+
/** Visible label. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Unique value reported on change. */
|
|
10
|
+
value: string;
|
|
11
|
+
/** Optional icon shown next to the label. */
|
|
12
|
+
icon?: IconName;
|
|
13
|
+
/** Icon side. Defaults to `left`. */
|
|
14
|
+
iconPosition?: 'left' | 'right';
|
|
15
|
+
/** Disable just this segment. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface SegmentedButtonProps {
|
|
19
|
+
/** The segments. Two or more recommended; any count is supported. */
|
|
20
|
+
options: SegmentedOption[];
|
|
21
|
+
/** Selected value (controlled). */
|
|
22
|
+
value?: string;
|
|
23
|
+
/** Initial selected value (uncontrolled). Defaults to the first option. */
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/** Change handler. */
|
|
26
|
+
onChange?: (value: string) => void;
|
|
27
|
+
/** Size: `sm` (16px text) or `md` (18px text, default). */
|
|
28
|
+
size?: SegmentedButtonSize;
|
|
29
|
+
/** Corner style: `default` (rounded rect) or `round` (pill). Defaults to `default`. */
|
|
30
|
+
shape?: SegmentedButtonShape;
|
|
31
|
+
/** Override the track corner radius in px (segments follow). Wins over `shape`. */
|
|
32
|
+
radius?: number;
|
|
33
|
+
/** Stretch to the container; segments share the width equally. */
|
|
34
|
+
fullWidth?: boolean;
|
|
35
|
+
/** Fixed track width in px (overrides `fullWidth`). */
|
|
36
|
+
width?: number;
|
|
37
|
+
/** Disable the whole control. */
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/** Show the track border. Defaults to true. */
|
|
40
|
+
bordered?: boolean;
|
|
41
|
+
/** Track background color. Defaults to `background.muted`. */
|
|
42
|
+
trackColor?: string;
|
|
43
|
+
/** Selected segment background. Defaults to `action.inverse` (dark). */
|
|
44
|
+
selectedColor?: string;
|
|
45
|
+
/** Selected segment text/icon color. Defaults to `action.inverseForeground`. */
|
|
46
|
+
selectedTextColor?: string;
|
|
47
|
+
/** Unselected text/icon color. Defaults to `text.secondary`. */
|
|
48
|
+
textColor?: string;
|
|
49
|
+
/** Icon size override. Defaults to the size preset. */
|
|
50
|
+
iconSize?: number;
|
|
51
|
+
/** Slide the selected highlight between segments. Defaults to true. */
|
|
52
|
+
animated?: boolean;
|
|
53
|
+
/** Override the track container style. */
|
|
54
|
+
style?: StyleProp<ViewStyle>;
|
|
55
|
+
/** Accessibility label for the group. */
|
|
56
|
+
accessibilityLabel?: string;
|
|
57
|
+
testID?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* SegmentedButton — faithful to the Bacon POS Figma "Segmented button". A single
|
|
61
|
+
* connected control of 2+ options where exactly one is selected: the active
|
|
62
|
+
* segment fills dark with inverse text; the rest are transparent with secondary
|
|
63
|
+
* text, all inside a rounded track. Supports `sm`/`md` sizes, `default`/`round`
|
|
64
|
+
* shapes (or a custom `radius`), hug / `fullWidth` / fixed `width` layouts, icons,
|
|
65
|
+
* per-segment disabling, and color overrides. Controlled or uncontrolled.
|
|
66
|
+
*/
|
|
67
|
+
export declare function SegmentedButton({ options, value, defaultValue, onChange, size, shape, radius, fullWidth, width, disabled, bordered, trackColor, selectedColor, selectedTextColor, textColor, iconSize, animated, style, accessibilityLabel, testID, }: SegmentedButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
//# sourceMappingURL=SegmentedButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/SegmentedButton/SegmentedButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,0EAA0E;AAC1E,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,qEAAqE;IACrE,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,uFAAuF;IACvF,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkBD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAW,EACX,KAAiB,EACjB,MAAM,EACN,SAAiB,EACjB,KAAK,EACL,QAAgB,EAChB,QAAe,EACf,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,KAAK,EACL,kBAAkB,EAClB,MAAM,GACP,EAAE,oBAAoB,2CAkJtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SegmentedButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,mBAAmB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WAAW,EAAE,CAAC;IACtB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjC,iDAAiD;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,8CAA8C;IAC9C,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,kEAAkE;IAClE,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAgGD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAU,EACV,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,SAAS,EAAE,aAAa,EACxB,gBAAwB,EACxB,iBAAiB,EACjB,UAAiB,EACjB,IAAI,EACJ,MAAM,EACN,aAAmB,EACnB,cAAoB,EACpB,cAAc,EACd,KAAK,GACN,EAAE,YAAY,2CAgJd"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon/icons.generated';
|
|
3
4
|
export type ColumnAlign = 'left' | 'center' | 'right';
|
|
5
|
+
/** A structured row action (inline icon, or a row in the overflow "More" menu). */
|
|
6
|
+
export interface TableAction {
|
|
7
|
+
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
icon: IconName;
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
/** Render in the error color (red icon inline, red row in the menu). */
|
|
12
|
+
destructive?: boolean;
|
|
13
|
+
/** Dim and block the action. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Icon color override (ignored when `destructive`). */
|
|
16
|
+
color?: string;
|
|
17
|
+
}
|
|
4
18
|
export type SortDirection = 'asc' | 'desc';
|
|
5
19
|
export interface TableSort {
|
|
6
20
|
key: string;
|
|
@@ -41,9 +55,17 @@ export interface TableProps<T> {
|
|
|
41
55
|
expandedKeys?: string[];
|
|
42
56
|
defaultExpandedKeys?: string[];
|
|
43
57
|
onExpandedChange?: (keys: string[]) => void;
|
|
44
|
-
/** Trailing per-row actions (e.g.
|
|
58
|
+
/** Trailing per-row actions, free-form (e.g. custom buttons) — mutually exclusive with `expandable`. */
|
|
45
59
|
renderActions?: (row: T, index: number) => ReactNode;
|
|
46
|
-
/**
|
|
60
|
+
/** Structured per-row actions: the first `maxInlineActions` render as inline icons, the rest collapse into a "More" menu. */
|
|
61
|
+
actions?: (row: T, index: number) => TableAction[];
|
|
62
|
+
/** How many actions render inline before overflowing into the More menu. Defaults to 2. */
|
|
63
|
+
maxInlineActions?: number;
|
|
64
|
+
/** Icon for the overflow menu trigger. Defaults to `more`. */
|
|
65
|
+
moreIcon?: IconName;
|
|
66
|
+
/** Width of the overflow More menu. */
|
|
67
|
+
actionsMenuWidth?: number;
|
|
68
|
+
/** Width reserved for the actions column. Defaults to fit the actions. */
|
|
47
69
|
actionsWidth?: number;
|
|
48
70
|
/** Row selection via checkboxes. */
|
|
49
71
|
selectable?: boolean;
|
|
@@ -81,5 +103,5 @@ export interface TableProps<T> {
|
|
|
81
103
|
* with an elegant scrolling body (`maxHeight`), loading and empty states, and a
|
|
82
104
|
* card fallback below `mobileBreakpoint`.
|
|
83
105
|
*/
|
|
84
|
-
export declare function Table<T>({ columns, data, keyExtractor, onRowPress, expandable, renderExpanded, expansionMode, expandedKeys, defaultExpandedKeys, onExpandedChange, renderActions, actionsWidth, selectable, selectedKeys, defaultSelectedKeys, onSelectionChange, sort, defaultSort, onSortChange, rounded, maxHeight, scrollbarColor, loading, loadingVariant, loadingText, skeletonRows, empty, mobileBreakpoint, style, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
export declare function Table<T>({ columns, data, keyExtractor, onRowPress, expandable, renderExpanded, expansionMode, expandedKeys, defaultExpandedKeys, onExpandedChange, renderActions, actions, maxInlineActions, moreIcon, actionsMenuWidth, actionsWidth, selectable, selectedKeys, defaultSelectedKeys, onSelectionChange, sort, defaultSort, onSortChange, rounded, maxHeight, scrollbarColor, loading, loadingVariant, loadingText, skeletonRows, empty, mobileBreakpoint, style, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
85
107
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAOL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAOL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAMxD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,mFAAmF;AACnF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,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAEzC,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mFAAmF;IACnF,cAAc,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACxC,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAeD;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,EACvB,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,UAAkB,EAClB,cAAc,EACd,aAAwB,EACxB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,gBAAoB,EACpB,QAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,UAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,OAAc,EACd,SAAS,EACT,cAAc,EACd,OAAe,EACf,cAA0B,EAC1B,WAA4B,EAC5B,YAAgB,EAChB,KAAK,EACL,gBAAsB,EACtB,KAAK,GACN,EAAE,UAAU,CAAC,CAAC,CAAC,2CAwcf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True when the subtree is rendered inside a full-screen (statusBarTranslucent)
|
|
3
|
+
* Modal host — e.g. `Dialog`, or a `Menu` overlay. Anchored menus use this to
|
|
4
|
+
* skip the status-bar coordinate compensation: inside such a host, a trigger
|
|
5
|
+
* measured with `measureInWindow` is already in full-screen coordinates that
|
|
6
|
+
* match the menu's own Modal, so adding the status bar height would push the
|
|
7
|
+
* menu down (a visible gap). Outside a host, the compensation is still applied.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ModalHostContext: import("react").Context<boolean>;
|
|
10
|
+
export declare function useInsideModalHost(): boolean;
|
|
11
|
+
//# sourceMappingURL=ModalHostContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalHostContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/_internal/ModalHostContext.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,kCAAuB,CAAC;AAErD,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C"}
|