@masumdev/rn-ui 0.1.7 → 0.2.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/Accordion.js +28 -13
- package/lib/commonjs/components/Accordion.js.map +1 -1
- package/lib/commonjs/components/Alert.js +229 -73
- package/lib/commonjs/components/Alert.js.map +1 -1
- package/lib/commonjs/components/AlertDialog.js +143 -87
- package/lib/commonjs/components/AlertDialog.js.map +1 -1
- package/lib/commonjs/components/Avatar.js +31 -28
- package/lib/commonjs/components/Avatar.js.map +1 -1
- package/lib/commonjs/components/Badge.js +18 -7
- package/lib/commonjs/components/Badge.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +63 -8
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/Breadcrumb.js +31 -9
- package/lib/commonjs/components/Breadcrumb.js.map +1 -1
- package/lib/commonjs/components/Button.js +22 -6
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/Calendar.js +113 -31
- package/lib/commonjs/components/Calendar.js.map +1 -1
- package/lib/commonjs/components/Card.js +8 -3
- package/lib/commonjs/components/Card.js.map +1 -1
- package/lib/commonjs/components/Carousel.js +67 -21
- package/lib/commonjs/components/Carousel.js.map +1 -1
- package/lib/commonjs/components/Checkbox.js +12 -7
- package/lib/commonjs/components/Checkbox.js.map +1 -1
- package/lib/commonjs/components/Collapsible.js +47 -36
- package/lib/commonjs/components/Collapsible.js.map +1 -1
- package/lib/commonjs/components/Combobox.js +110 -48
- package/lib/commonjs/components/Combobox.js.map +1 -1
- package/lib/commonjs/components/Command.js +121 -77
- package/lib/commonjs/components/Command.js.map +1 -1
- package/lib/commonjs/components/DropdownMenu.js +78 -25
- package/lib/commonjs/components/DropdownMenu.js.map +1 -1
- package/lib/commonjs/components/Empty.js +24 -10
- package/lib/commonjs/components/Empty.js.map +1 -1
- package/lib/commonjs/components/FormField.js +63 -13
- package/lib/commonjs/components/FormField.js.map +1 -1
- package/lib/commonjs/components/IconButton.js +22 -6
- package/lib/commonjs/components/IconButton.js.map +1 -1
- package/lib/commonjs/components/Input.js +11 -13
- package/lib/commonjs/components/Input.js.map +1 -1
- package/lib/commonjs/components/InputGroup.js +19 -10
- package/lib/commonjs/components/InputGroup.js.map +1 -1
- package/lib/commonjs/components/InputOTP.js +46 -15
- package/lib/commonjs/components/InputOTP.js.map +1 -1
- package/lib/commonjs/components/Popover.js +90 -23
- package/lib/commonjs/components/Popover.js.map +1 -1
- package/lib/commonjs/components/Progress.js +105 -6
- package/lib/commonjs/components/Progress.js.map +1 -1
- package/lib/commonjs/components/RadioGroup.js +109 -51
- package/lib/commonjs/components/RadioGroup.js.map +1 -1
- package/lib/commonjs/components/Rating.js +109 -95
- package/lib/commonjs/components/Rating.js.map +1 -1
- package/lib/commonjs/components/Select.js +109 -43
- package/lib/commonjs/components/Select.js.map +1 -1
- package/lib/commonjs/components/Sheet.js +217 -29
- package/lib/commonjs/components/Sheet.js.map +1 -1
- package/lib/commonjs/components/Stepper.js +119 -24
- package/lib/commonjs/components/Stepper.js.map +1 -1
- package/lib/commonjs/components/Switch.js +21 -11
- package/lib/commonjs/components/Switch.js.map +1 -1
- package/lib/commonjs/components/Tabs.js +159 -28
- package/lib/commonjs/components/Tabs.js.map +1 -1
- package/lib/commonjs/components/Timeline.js +35 -12
- package/lib/commonjs/components/Timeline.js.map +1 -1
- package/lib/commonjs/components/Toast.js +163 -38
- package/lib/commonjs/components/Toast.js.map +1 -1
- package/lib/commonjs/components/index.js +12 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/types.js +16 -0
- package/lib/commonjs/components/types.js.map +1 -1
- package/lib/commonjs/theme/tokens.js +7 -7
- package/lib/commonjs/theme/tokens.js.map +1 -1
- package/lib/commonjs/utils/haptics.js +42 -0
- package/lib/commonjs/utils/haptics.js.map +1 -0
- package/lib/commonjs/utils/index.js +7 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/components/Accordion.js +28 -13
- package/lib/module/components/Accordion.js.map +1 -1
- package/lib/module/components/Alert.js +229 -73
- package/lib/module/components/Alert.js.map +1 -1
- package/lib/module/components/AlertDialog.js +144 -88
- package/lib/module/components/AlertDialog.js.map +1 -1
- package/lib/module/components/Avatar.js +31 -28
- package/lib/module/components/Avatar.js.map +1 -1
- package/lib/module/components/Badge.js +18 -7
- package/lib/module/components/Badge.js.map +1 -1
- package/lib/module/components/BottomSheet.js +64 -4
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/Breadcrumb.js +31 -9
- package/lib/module/components/Breadcrumb.js.map +1 -1
- package/lib/module/components/Button.js +22 -6
- package/lib/module/components/Button.js.map +1 -1
- package/lib/module/components/Calendar.js +114 -32
- package/lib/module/components/Calendar.js.map +1 -1
- package/lib/module/components/Card.js +8 -3
- package/lib/module/components/Card.js.map +1 -1
- package/lib/module/components/Carousel.js +67 -21
- package/lib/module/components/Carousel.js.map +1 -1
- package/lib/module/components/Checkbox.js +12 -7
- package/lib/module/components/Checkbox.js.map +1 -1
- package/lib/module/components/Collapsible.js +49 -38
- package/lib/module/components/Collapsible.js.map +1 -1
- package/lib/module/components/Combobox.js +110 -48
- package/lib/module/components/Combobox.js.map +1 -1
- package/lib/module/components/Command.js +121 -77
- package/lib/module/components/Command.js.map +1 -1
- package/lib/module/components/DropdownMenu.js +79 -26
- package/lib/module/components/DropdownMenu.js.map +1 -1
- package/lib/module/components/Empty.js +24 -10
- package/lib/module/components/Empty.js.map +1 -1
- package/lib/module/components/FormField.js +63 -14
- package/lib/module/components/FormField.js.map +1 -1
- package/lib/module/components/IconButton.js +22 -6
- package/lib/module/components/IconButton.js.map +1 -1
- package/lib/module/components/Input.js +12 -14
- package/lib/module/components/Input.js.map +1 -1
- package/lib/module/components/InputGroup.js +19 -10
- package/lib/module/components/InputGroup.js.map +1 -1
- package/lib/module/components/InputOTP.js +46 -15
- package/lib/module/components/InputOTP.js.map +1 -1
- package/lib/module/components/Popover.js +90 -24
- package/lib/module/components/Popover.js.map +1 -1
- package/lib/module/components/Progress.js +106 -8
- package/lib/module/components/Progress.js.map +1 -1
- package/lib/module/components/RadioGroup.js +108 -51
- package/lib/module/components/RadioGroup.js.map +1 -1
- package/lib/module/components/Rating.js +109 -95
- package/lib/module/components/Rating.js.map +1 -1
- package/lib/module/components/Select.js +111 -45
- package/lib/module/components/Select.js.map +1 -1
- package/lib/module/components/Sheet.js +216 -24
- package/lib/module/components/Sheet.js.map +1 -1
- package/lib/module/components/Stepper.js +120 -25
- package/lib/module/components/Stepper.js.map +1 -1
- package/lib/module/components/Switch.js +21 -11
- package/lib/module/components/Switch.js.map +1 -1
- package/lib/module/components/Tabs.js +158 -29
- package/lib/module/components/Tabs.js.map +1 -1
- package/lib/module/components/Timeline.js +35 -12
- package/lib/module/components/Timeline.js.map +1 -1
- package/lib/module/components/Toast.js +164 -38
- package/lib/module/components/Toast.js.map +1 -1
- package/lib/module/components/index.js +2 -2
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/types.js +16 -0
- package/lib/module/components/types.js.map +1 -1
- package/lib/module/theme/tokens.js +7 -7
- package/lib/module/theme/tokens.js.map +1 -1
- package/lib/module/utils/haptics.js +38 -0
- package/lib/module/utils/haptics.js.map +1 -0
- package/lib/module/utils/index.js +1 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/components/Accordion.d.ts +6 -3
- package/lib/typescript/commonjs/components/Accordion.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Alert.d.ts +4 -4
- package/lib/typescript/commonjs/components/Alert.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/AlertDialog.d.ts +5 -3
- package/lib/typescript/commonjs/components/AlertDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Avatar.d.ts +9 -4
- package/lib/typescript/commonjs/components/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Badge.d.ts +4 -4
- package/lib/typescript/commonjs/components/Badge.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/BottomSheet.d.ts +13 -4
- package/lib/typescript/commonjs/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Breadcrumb.d.ts +6 -5
- package/lib/typescript/commonjs/components/Breadcrumb.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Button.d.ts +3 -3
- package/lib/typescript/commonjs/components/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Calendar.d.ts +9 -1
- package/lib/typescript/commonjs/components/Calendar.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Card.d.ts +3 -2
- package/lib/typescript/commonjs/components/Card.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Carousel.d.ts +4 -1
- package/lib/typescript/commonjs/components/Carousel.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Checkbox.d.ts +3 -3
- package/lib/typescript/commonjs/components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Collapsible.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Combobox.d.ts +11 -6
- package/lib/typescript/commonjs/components/Combobox.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Command.d.ts +3 -0
- package/lib/typescript/commonjs/components/Command.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/DropdownMenu.d.ts +4 -2
- package/lib/typescript/commonjs/components/DropdownMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Empty.d.ts +7 -4
- package/lib/typescript/commonjs/components/Empty.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/FormField.d.ts +12 -4
- package/lib/typescript/commonjs/components/FormField.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/IconButton.d.ts +3 -3
- package/lib/typescript/commonjs/components/IconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Input.d.ts +2 -1
- package/lib/typescript/commonjs/components/Input.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/InputGroup.d.ts +3 -2
- package/lib/typescript/commonjs/components/InputGroup.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/InputOTP.d.ts +9 -4
- package/lib/typescript/commonjs/components/InputOTP.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Popover.d.ts +1 -1
- package/lib/typescript/commonjs/components/Popover.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Progress.d.ts +13 -1
- package/lib/typescript/commonjs/components/Progress.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/RadioGroup.d.ts +3 -2
- package/lib/typescript/commonjs/components/RadioGroup.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Rating.d.ts +3 -23
- package/lib/typescript/commonjs/components/Rating.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Select.d.ts +5 -4
- package/lib/typescript/commonjs/components/Select.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Sheet.d.ts +25 -6
- package/lib/typescript/commonjs/components/Sheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Stepper.d.ts +5 -3
- package/lib/typescript/commonjs/components/Stepper.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Switch.d.ts +3 -3
- package/lib/typescript/commonjs/components/Switch.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Tabs.d.ts +21 -4
- package/lib/typescript/commonjs/components/Tabs.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Timeline.d.ts +9 -3
- package/lib/typescript/commonjs/components/Timeline.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/Toast.d.ts +3 -0
- package/lib/typescript/commonjs/components/Toast.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +5 -5
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/types.d.ts +35 -0
- package/lib/typescript/commonjs/components/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/haptics.d.ts +6 -0
- package/lib/typescript/commonjs/utils/haptics.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/components/Accordion.d.ts +6 -3
- package/lib/typescript/module/components/Accordion.d.ts.map +1 -1
- package/lib/typescript/module/components/Alert.d.ts +4 -4
- package/lib/typescript/module/components/Alert.d.ts.map +1 -1
- package/lib/typescript/module/components/AlertDialog.d.ts +5 -3
- package/lib/typescript/module/components/AlertDialog.d.ts.map +1 -1
- package/lib/typescript/module/components/Avatar.d.ts +9 -4
- package/lib/typescript/module/components/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/components/Badge.d.ts +4 -4
- package/lib/typescript/module/components/Badge.d.ts.map +1 -1
- package/lib/typescript/module/components/BottomSheet.d.ts +13 -4
- package/lib/typescript/module/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/components/Breadcrumb.d.ts +6 -5
- package/lib/typescript/module/components/Breadcrumb.d.ts.map +1 -1
- package/lib/typescript/module/components/Button.d.ts +3 -3
- package/lib/typescript/module/components/Button.d.ts.map +1 -1
- package/lib/typescript/module/components/Calendar.d.ts +9 -1
- package/lib/typescript/module/components/Calendar.d.ts.map +1 -1
- package/lib/typescript/module/components/Card.d.ts +3 -2
- package/lib/typescript/module/components/Card.d.ts.map +1 -1
- package/lib/typescript/module/components/Carousel.d.ts +4 -1
- package/lib/typescript/module/components/Carousel.d.ts.map +1 -1
- package/lib/typescript/module/components/Checkbox.d.ts +3 -3
- package/lib/typescript/module/components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/module/components/Collapsible.d.ts.map +1 -1
- package/lib/typescript/module/components/Combobox.d.ts +11 -6
- package/lib/typescript/module/components/Combobox.d.ts.map +1 -1
- package/lib/typescript/module/components/Command.d.ts +3 -0
- package/lib/typescript/module/components/Command.d.ts.map +1 -1
- package/lib/typescript/module/components/DropdownMenu.d.ts +4 -2
- package/lib/typescript/module/components/DropdownMenu.d.ts.map +1 -1
- package/lib/typescript/module/components/Empty.d.ts +7 -4
- package/lib/typescript/module/components/Empty.d.ts.map +1 -1
- package/lib/typescript/module/components/FormField.d.ts +12 -4
- package/lib/typescript/module/components/FormField.d.ts.map +1 -1
- package/lib/typescript/module/components/IconButton.d.ts +3 -3
- package/lib/typescript/module/components/IconButton.d.ts.map +1 -1
- package/lib/typescript/module/components/Input.d.ts +2 -1
- package/lib/typescript/module/components/Input.d.ts.map +1 -1
- package/lib/typescript/module/components/InputGroup.d.ts +3 -2
- package/lib/typescript/module/components/InputGroup.d.ts.map +1 -1
- package/lib/typescript/module/components/InputOTP.d.ts +9 -4
- package/lib/typescript/module/components/InputOTP.d.ts.map +1 -1
- package/lib/typescript/module/components/Popover.d.ts +1 -1
- package/lib/typescript/module/components/Popover.d.ts.map +1 -1
- package/lib/typescript/module/components/Progress.d.ts +13 -1
- package/lib/typescript/module/components/Progress.d.ts.map +1 -1
- package/lib/typescript/module/components/RadioGroup.d.ts +3 -2
- package/lib/typescript/module/components/RadioGroup.d.ts.map +1 -1
- package/lib/typescript/module/components/Rating.d.ts +3 -23
- package/lib/typescript/module/components/Rating.d.ts.map +1 -1
- package/lib/typescript/module/components/Select.d.ts +5 -4
- package/lib/typescript/module/components/Select.d.ts.map +1 -1
- package/lib/typescript/module/components/Sheet.d.ts +25 -6
- package/lib/typescript/module/components/Sheet.d.ts.map +1 -1
- package/lib/typescript/module/components/Stepper.d.ts +5 -3
- package/lib/typescript/module/components/Stepper.d.ts.map +1 -1
- package/lib/typescript/module/components/Switch.d.ts +3 -3
- package/lib/typescript/module/components/Switch.d.ts.map +1 -1
- package/lib/typescript/module/components/Tabs.d.ts +21 -4
- package/lib/typescript/module/components/Tabs.d.ts.map +1 -1
- package/lib/typescript/module/components/Timeline.d.ts +9 -3
- package/lib/typescript/module/components/Timeline.d.ts.map +1 -1
- package/lib/typescript/module/components/Toast.d.ts +3 -0
- package/lib/typescript/module/components/Toast.d.ts.map +1 -1
- package/lib/typescript/module/components/index.d.ts +5 -5
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/types.d.ts +35 -0
- package/lib/typescript/module/components/types.d.ts.map +1 -1
- package/lib/typescript/module/utils/haptics.d.ts +6 -0
- package/lib/typescript/module/utils/haptics.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +1 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../../src/components/Empty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../../src/components/Empty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD,MAAM,WAAW,UAAW,SAAQ,SAAS,EAAE,cAAc;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAgB,EAChB,KAAa,EACb,KAAK,EACL,GAAG,KAAK,EACT,EAAE,UAAU,qBAmCZ;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBAiBhE;AAED,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc;IAChE,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAQD,wBAAgB,UAAU,CAAC,EACzB,OAAmB,EACnB,IAAW,EACX,KAAa,EACb,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,qBA+BjB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,eAAe,qBAM9D;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,qBAAqB,qBAM1E;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAkBlE"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type StyleProp, type TextStyle, type ViewProps, type ViewStyle } from "react-native";
|
|
3
3
|
import { type LabelProps } from "./Label";
|
|
4
|
+
import { type RenderIcon, type BaseGlassProps } from "./types";
|
|
4
5
|
export interface FormFieldContextValue {
|
|
5
6
|
invalid: boolean;
|
|
6
7
|
disabled: boolean;
|
|
7
8
|
required: boolean;
|
|
9
|
+
error?: string;
|
|
8
10
|
}
|
|
9
11
|
export declare function useFormField(): FormFieldContextValue | null;
|
|
10
|
-
export interface FormFieldProps extends ViewProps {
|
|
12
|
+
export interface FormFieldProps extends ViewProps, BaseGlassProps {
|
|
11
13
|
invalid?: boolean;
|
|
12
14
|
disabled?: boolean;
|
|
13
15
|
required?: boolean;
|
|
16
|
+
error?: string;
|
|
17
|
+
shakeOnError?: boolean;
|
|
14
18
|
style?: StyleProp<ViewStyle>;
|
|
15
19
|
}
|
|
16
|
-
export declare function FormField({ invalid, disabled, required, style, ...props }: FormFieldProps): React.JSX.Element;
|
|
20
|
+
export declare function FormField({ invalid: explicitInvalid, disabled, required, error, shakeOnError, style, ...props }: FormFieldProps): React.JSX.Element;
|
|
17
21
|
export interface FormLabelProps extends LabelProps {
|
|
18
22
|
}
|
|
19
23
|
export declare function FormLabel(props: FormLabelProps): React.JSX.Element;
|
|
@@ -26,9 +30,13 @@ export interface FormDescriptionProps {
|
|
|
26
30
|
style?: StyleProp<TextStyle>;
|
|
27
31
|
}
|
|
28
32
|
export declare function FormDescription({ children, style }: FormDescriptionProps): React.JSX.Element;
|
|
29
|
-
export interface
|
|
33
|
+
export interface FormErrorProps {
|
|
30
34
|
children?: React.ReactNode;
|
|
35
|
+
icon?: RenderIcon;
|
|
31
36
|
style?: StyleProp<TextStyle>;
|
|
32
37
|
}
|
|
33
|
-
export declare function
|
|
38
|
+
export declare function FormError({ children, icon, style }: FormErrorProps): React.JSX.Element | null;
|
|
39
|
+
export interface FormMessageProps extends FormErrorProps {
|
|
40
|
+
}
|
|
41
|
+
export declare const FormMessage: typeof FormError;
|
|
34
42
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,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,gBAAgB,qBAYhE;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,oBAAoB,qBAMxE;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,4BAmBlE;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAC3D,eAAO,MAAM,WAAW,kBAAY,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
-
import { type RenderIcon, type ThemeColorName, type ToneProps, type VariantProps, type SizeProps, type ComponentTone } from "./types";
|
|
3
|
+
import { type RenderIcon, type ThemeColorName, type ToneProps, type VariantProps, type SizeProps, type BaseGlassProps, type BaseHapticProps, type BaseAnimatedProps, type ComponentTone } from "./types";
|
|
4
4
|
export type IconButtonVariant = "filled" | "outline" | "ghost" | "soft";
|
|
5
5
|
export type IconButtonSize = "sm" | "md" | "lg";
|
|
6
6
|
export type IconButtonTone = ComponentTone;
|
|
7
|
-
export interface IconButtonProps extends Omit<PressableProps, "children" | "style">, VariantProps<IconButtonVariant>, ToneProps<IconButtonTone>, SizeProps<IconButtonSize
|
|
7
|
+
export interface IconButtonProps extends Omit<PressableProps, "children" | "style">, VariantProps<IconButtonVariant>, ToneProps<IconButtonTone>, SizeProps<IconButtonSize>, BaseGlassProps, BaseHapticProps, BaseAnimatedProps {
|
|
8
8
|
icon: RenderIcon;
|
|
9
9
|
color?: ThemeColorName | string;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
badge?: number;
|
|
12
12
|
style?: StyleProp<ViewStyle>;
|
|
13
13
|
}
|
|
14
|
-
export declare function IconButton({ icon, variant, size, tone, color, loading, disabled, badge, style, ...props }: IconButtonProps): React.JSX.Element;
|
|
14
|
+
export declare function IconButton({ icon, variant, size, tone, color, loading, glass, haptic, animated, disabled, badge, onPress, style, ...props }: IconButtonProps): React.JSX.Element;
|
|
15
15
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC;AAE3C,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC,EAChD,YAAY,CAAC,iBAAiB,CAAC,EAC/B,SAAS,CAAC,cAAc,CAAC,EACzB,SAAS,CAAC,cAAc,CAAC,EACzB,cAAc,EACd,eAAe,EACf,iBAAiB;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAuBD,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAiB,EACjB,IAAW,EACX,IAAgB,EAChB,KAAK,EACL,OAAO,EACP,KAAa,EACb,MAAa,EACb,QAAe,EACf,QAAQ,EACR,KAAK,EACL,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,qBAuGjB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TextInput, type StyleProp, type TextInputProps, type TextStyle } from "react-native";
|
|
3
|
+
import type { BaseGlassProps } from "./types";
|
|
3
4
|
export type InputSize = "sm" | "md" | "lg";
|
|
4
5
|
export type InputType = "text" | "email" | "number" | "password" | "tel" | "url";
|
|
5
|
-
export interface InputProps extends Omit<TextInputProps, "style"
|
|
6
|
+
export interface InputProps extends Omit<TextInputProps, "style">, BaseGlassProps {
|
|
6
7
|
type?: InputType;
|
|
7
8
|
size?: InputSize;
|
|
8
9
|
invalid?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,EAET,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,EAET,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,OAAO,GACP,QAAQ,GACR,UAAU,GACV,KAAK,GACL,KAAK,CAAC;AAEV,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc;IAC/E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAwBD,eAAO,MAAM,KAAK,8EAoFhB,CAAC"}
|
|
@@ -2,16 +2,17 @@ import React from "react";
|
|
|
2
2
|
import { type StyleProp, type TextInput, type TextStyle, type ViewProps, type ViewStyle } from "react-native";
|
|
3
3
|
import { type ButtonProps, type ButtonVariant } from "./Button";
|
|
4
4
|
import { type InputProps } from "./Input";
|
|
5
|
+
import type { BaseGlassProps } from "./types";
|
|
5
6
|
export type InputGroupAddonAlign = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
6
7
|
export type InputGroupButtonSize = "xs" | "sm" | "icon-xs" | "icon-sm";
|
|
7
8
|
export type InputGroupOrientation = "inline" | "block";
|
|
8
|
-
export interface InputGroupProps extends ViewProps {
|
|
9
|
+
export interface InputGroupProps extends ViewProps, BaseGlassProps {
|
|
9
10
|
orientation?: InputGroupOrientation;
|
|
10
11
|
invalid?: boolean;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
style?: StyleProp<ViewStyle>;
|
|
13
14
|
}
|
|
14
|
-
export declare function InputGroup({ orientation, invalid, disabled, style, children, ...props }: InputGroupProps): React.JSX.Element;
|
|
15
|
+
export declare function InputGroup({ orientation, invalid, disabled, glass, style, children, ...props }: InputGroupProps): React.JSX.Element;
|
|
15
16
|
export interface InputGroupAddonProps extends ViewProps {
|
|
16
17
|
align?: InputGroupAddonAlign;
|
|
17
18
|
style?: StyleProp<ViewStyle>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/InputGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,aAAa,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/InputGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,aAAa,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;A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C,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,qBAkCrB;AAED,MAAM,WAAW,oBAAqB,SAAQ,UAAU;CAAG;AAE3D,eAAO,MAAM,eAAe,wFAmD1B,CAAC;AAEH,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,oBAAoB,EACpB,WAAW,CACZ;CAAG;AAEJ,eAAO,MAAM,kBAAkB,2FAoB7B,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type PressableProps, type StyleProp, type TextInputProps, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
import type { BaseGlassProps } from "./types";
|
|
4
|
+
export type InputOTPSize = "sm" | "md" | "lg";
|
|
3
5
|
export interface InputOTPSlotState {
|
|
4
6
|
char: string;
|
|
5
7
|
hasFakeCaret: boolean;
|
|
@@ -7,34 +9,37 @@ export interface InputOTPSlotState {
|
|
|
7
9
|
}
|
|
8
10
|
export interface InputOTPContextValue {
|
|
9
11
|
slots: InputOTPSlotState[];
|
|
12
|
+
size: InputOTPSize;
|
|
10
13
|
disabled: boolean;
|
|
11
14
|
invalid: boolean;
|
|
12
15
|
focused: boolean;
|
|
13
16
|
focus: () => void;
|
|
14
17
|
}
|
|
15
18
|
export declare const InputOTPContext: React.Context<InputOTPContextValue | null>;
|
|
16
|
-
export interface InputOTPProps extends Omit<PressableProps, "children" | "style"
|
|
19
|
+
export interface InputOTPProps extends Omit<PressableProps, "children" | "style">, BaseGlassProps {
|
|
17
20
|
children: React.ReactNode;
|
|
18
21
|
value?: string;
|
|
19
22
|
defaultValue?: string;
|
|
20
23
|
onChangeText?: (value: string) => void;
|
|
21
24
|
maxLength?: number;
|
|
25
|
+
size?: InputOTPSize;
|
|
22
26
|
disabled?: boolean;
|
|
23
27
|
invalid?: boolean;
|
|
24
28
|
autoFocus?: boolean;
|
|
25
29
|
textInputProps?: Omit<TextInputProps, "value" | "defaultValue" | "onChangeText" | "maxLength" | "editable">;
|
|
26
30
|
style?: StyleProp<ViewStyle>;
|
|
27
31
|
}
|
|
28
|
-
export declare function InputOTP({ children, value, defaultValue, onChangeText, maxLength, disabled, invalid, autoFocus, textInputProps, style, onPress, ...props }: InputOTPProps): React.JSX.Element;
|
|
32
|
+
export declare function InputOTP({ children, value, defaultValue, onChangeText, maxLength, size, disabled, invalid, glass, autoFocus, textInputProps, style, onPress, ...props }: InputOTPProps): React.JSX.Element;
|
|
29
33
|
export interface InputOTPGroupProps extends ViewProps {
|
|
30
34
|
style?: StyleProp<ViewStyle>;
|
|
31
35
|
}
|
|
32
36
|
export declare function InputOTPGroup({ style, ...props }: InputOTPGroupProps): React.JSX.Element;
|
|
33
|
-
export interface InputOTPSlotProps extends ViewProps {
|
|
37
|
+
export interface InputOTPSlotProps extends ViewProps, BaseGlassProps {
|
|
34
38
|
index: number;
|
|
39
|
+
size?: InputOTPSize;
|
|
35
40
|
style?: StyleProp<ViewStyle>;
|
|
36
41
|
}
|
|
37
|
-
export declare function InputOTPSlot({ index, style, ...props }: InputOTPSlotProps): React.JSX.Element;
|
|
42
|
+
export declare function InputOTPSlot({ index, size, glass, style, ...props }: InputOTPSlotProps): React.JSX.Element;
|
|
38
43
|
export interface InputOTPSeparatorProps extends ViewProps {
|
|
39
44
|
style?: StyleProp<ViewStyle>;
|
|
40
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputOTP.d.ts","sourceRoot":"","sources":["../../../../src/components/InputOTP.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"InputOTP.d.ts","s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AG,cAAc,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,CACrE,CAAC;IACF,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAMD,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,YAAiB,EACjB,YAAY,EACZ,SAAa,EACb,IAAW,EACX,QAAgB,EAChB,OAAe,EACf,KAAa,EACb,SAAS,EACT,cAAc,EACd,KAAK,EACL,OAAO,EACP,GAAG,KAAK,EACT,EAAE,aAAa,qBA4Gf;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,qBAkBpE;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,cAAc;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAWD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,KAAa,EACb,KAAK,EACL,GAAG,KAAK,EACT,EAAE,iBAAiB,qBAsDnB;AAuCD,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,qBA4BxB"}
|
|
@@ -10,7 +10,7 @@ export declare function Popover({ open, defaultOpen, onOpenChange, children, }:
|
|
|
10
10
|
export interface PopoverTriggerProps extends PressableProps {
|
|
11
11
|
triggerMode?: "press" | "longPress";
|
|
12
12
|
}
|
|
13
|
-
export declare function PopoverTrigger({ triggerMode, onPress, onLongPress, ...props }: PopoverTriggerProps): React.JSX.Element;
|
|
13
|
+
export declare function PopoverTrigger({ children, triggerMode, onPress, onLongPress, style, ...props }: PopoverTriggerProps): React.JSX.Element;
|
|
14
14
|
export interface PopoverContentProps {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
width?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAOtB,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AASD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,WAAmB,EACnB,YAAY,EACZ,QAAQ,GACT,EAAE,YAAY,qBAcd;AAED,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,WAAW,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CACrC;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,WAAqB,EACrB,OAAO,EACP,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,mBAAmB,qBAsCrB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAW,EACX,KAAK,GACN,EAAE,mBAAmB,4BAgFrB"}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
3
|
import type { ComponentTone, ToneProps } from "./types";
|
|
4
|
+
export type ProgressSize = "xs" | "sm" | "default" | "lg" | "xl";
|
|
4
5
|
export interface ProgressProps extends ViewProps, ToneProps<ComponentTone> {
|
|
5
6
|
value?: number;
|
|
6
7
|
max?: number;
|
|
8
|
+
size?: ProgressSize;
|
|
7
9
|
animated?: boolean;
|
|
10
|
+
indeterminate?: boolean;
|
|
8
11
|
style?: StyleProp<ViewStyle>;
|
|
9
12
|
indicatorStyle?: StyleProp<ViewStyle>;
|
|
10
13
|
}
|
|
11
|
-
export declare function Progress({ value, max, tone, animated, style, indicatorStyle, ...props }: ProgressProps): React.JSX.Element;
|
|
14
|
+
export declare function Progress({ value, max, tone, size, animated, indeterminate, style, indicatorStyle, ...props }: ProgressProps): React.JSX.Element;
|
|
15
|
+
export interface CircularProgressProps extends ToneProps<ComponentTone> {
|
|
16
|
+
value?: number;
|
|
17
|
+
size?: number;
|
|
18
|
+
strokeWidth?: number;
|
|
19
|
+
showValue?: boolean;
|
|
20
|
+
strokeLinecap?: "round" | "square" | "butt";
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
22
|
+
}
|
|
23
|
+
export declare function CircularProgress({ value, size, strokeWidth, tone, showValue, strokeLinecap, style, }: CircularProgressProps): React.JSX.Element;
|
|
12
24
|
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../../src/components/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"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EACT,IAAS,EACT,WAAe,EACf,IAAgB,EAChB,SAAgB,EAChB,aAAuB,EACvB,KAAK,GACN,EAAE,qBAAqB,qBAmFvB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type PressableProps, type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
import type { BaseGlassProps, BaseHapticProps, BaseAnimatedProps } from "./types";
|
|
3
4
|
export interface RadioGroupContextValue {
|
|
4
5
|
value?: string;
|
|
5
6
|
disabled: boolean;
|
|
@@ -13,12 +14,12 @@ export interface RadioGroupProps extends ViewProps {
|
|
|
13
14
|
style?: StyleProp<ViewStyle>;
|
|
14
15
|
}
|
|
15
16
|
export declare function RadioGroup({ value, defaultValue, disabled, onValueChange, style, ...props }: RadioGroupProps): React.JSX.Element;
|
|
16
|
-
export interface RadioGroupItemProps extends Omit<PressableProps, "style"
|
|
17
|
+
export interface RadioGroupItemProps extends Omit<PressableProps, "style">, BaseGlassProps, BaseHapticProps, BaseAnimatedProps {
|
|
17
18
|
value: string;
|
|
18
19
|
label?: React.ReactNode;
|
|
19
20
|
description?: React.ReactNode;
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
style?: StyleProp<ViewStyle>;
|
|
22
23
|
}
|
|
23
|
-
export declare function RadioGroupItem({ value, label, description, disabled, style, ...props }: RadioGroupItemProps): React.JSX.Element;
|
|
24
|
+
export declare function RadioGroupItem({ value, label, description, disabled, glass, haptic, animated, style, onPress, ...props }: RadioGroupItemProps): React.JSX.Element;
|
|
24
25
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EAC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AED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAgB,EAChB,KAAa,EACb,MAAa,EACb,QAAe,EACf,KAAK,EACL,OAAO,EACP,GAAG,KAAK,EACT,EAAE,mBAAmB,qBAoJrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
-
import { type RenderIcon } from "./types";
|
|
3
|
+
import { type RenderIcon, type BaseGlassProps, type BaseHapticProps } from "./types";
|
|
4
4
|
export type RatingShape = "star" | "heart" | "thumb" | "fire" | "smile" | "shield";
|
|
5
5
|
export type RatingPrecision = "full" | "half" | "exact" | number;
|
|
6
6
|
export type RatingSize = "sm" | "md" | "lg" | "xl" | number;
|
|
@@ -14,49 +14,29 @@ export interface RatingItemInfo {
|
|
|
14
14
|
emptyColor: string;
|
|
15
15
|
size: number;
|
|
16
16
|
}
|
|
17
|
-
export interface RatingProps extends Omit<ViewProps, "style"
|
|
18
|
-
/** Controlled value (0 to max) */
|
|
17
|
+
export interface RatingProps extends Omit<ViewProps, "style">, BaseGlassProps, BaseHapticProps {
|
|
19
18
|
value?: number;
|
|
20
|
-
/** Uncontrolled initial value (default: 0) */
|
|
21
19
|
defaultValue?: number;
|
|
22
|
-
/** Maximum number of items/stars (default: 5) */
|
|
23
20
|
max?: number;
|
|
24
|
-
/** Rating step precision: 'full' (1), 'half' (0.5), 'exact' (0.1), or custom float number */
|
|
25
21
|
precision?: RatingPrecision;
|
|
26
|
-
/** Preset icon shape: 'star' | 'heart' | 'thumb' | 'fire' | 'smile' | 'shield' (default: 'star') */
|
|
27
22
|
shape?: RatingShape;
|
|
28
|
-
/** Preset size: 'sm' (16) | 'md' (24) | 'lg' (32) | 'xl' (40) or custom pixel number */
|
|
29
23
|
size?: RatingSize;
|
|
30
|
-
/** Spacing between items (default: 4) */
|
|
31
24
|
gap?: number;
|
|
32
|
-
/** Tone color when active/filled (default: 'warning' for star, 'danger' for heart, etc.) */
|
|
33
25
|
tone?: RatingTone;
|
|
34
|
-
/** Custom fill color (overrides tone) */
|
|
35
26
|
color?: string;
|
|
36
|
-
/** Custom unfilled color (overrides theme textMuted default) */
|
|
37
27
|
emptyColor?: string;
|
|
38
|
-
/** Read-only display mode without gesture interaction */
|
|
39
28
|
readOnly?: boolean;
|
|
40
|
-
/** Disabled state */
|
|
41
29
|
disabled?: boolean;
|
|
42
|
-
/** Allow resetting value to 0 when pressing the current value (default: true) */
|
|
43
30
|
allowClear?: boolean;
|
|
44
|
-
/** Show numeric label beside rating (default: false) */
|
|
45
31
|
showValue?: boolean;
|
|
46
|
-
/** Format function for numeric value label */
|
|
47
32
|
valueFormat?: (value: number, max: number) => string;
|
|
48
|
-
/** Custom item renderer for full custom icons per state */
|
|
49
33
|
renderItem?: (info: RatingItemInfo) => React.ReactNode;
|
|
50
|
-
/** Custom RenderIcon definition for all items */
|
|
51
34
|
icon?: RenderIcon;
|
|
52
|
-
/** Callback emitted on rating change */
|
|
53
35
|
onValueChange?: (value: number) => void;
|
|
54
|
-
/** Callback emitted when sliding/gesturing starts */
|
|
55
36
|
onSlidingStart?: (value: number) => void;
|
|
56
|
-
/** Callback emitted when sliding/gesturing ends */
|
|
57
37
|
onSlidingComplete?: (value: number) => void;
|
|
58
38
|
style?: StyleProp<ViewStyle>;
|
|
59
39
|
itemStyle?: StyleProp<ViewStyle>;
|
|
60
40
|
}
|
|
61
|
-
export declare function Rating({ value, defaultValue, max, precision, shape, size, gap, tone, color, emptyColor, readOnly, disabled, allowClear, showValue, valueFormat, renderItem, icon, onValueChange, onSlidingStart, onSlidingComplete, style, itemStyle, onLayout, ...props }: RatingProps): React.JSX.Element;
|
|
41
|
+
export declare function Rating({ value, defaultValue, max, precision, shape, size, gap, tone, color, emptyColor, readOnly, disabled, allowClear, showValue, haptic, valueFormat, renderItem, icon, onValueChange, onSlidingStart, onSlidingComplete, style, itemStyle, onLayout, ...props }: RatingProps): React.JSX.Element;
|
|
62
42
|
//# sourceMappingURL=Rating.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../../src/components/Rating.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../../src/components/Rating.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAetB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAE5D,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,MAAM,CAAC;AAEX,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WACf,SAAQ,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,QAAgB,EAChB,QAAgB,EAChB,UAAiB,EACjB,SAAiB,EACjB,MAAa,EACb,WAAW,EACX,UAAU,EACV,IAAI,EACJ,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,qBAwKb"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
-
import { type RenderIcon } from "./types";
|
|
3
|
+
import { type RenderIcon, type BaseGlassProps, type BaseHapticProps, type SizeProps, type VariantProps } from "./types";
|
|
4
|
+
export type SelectVariant = "outline" | "filled" | "soft";
|
|
5
|
+
export type SelectSize = "sm" | "md" | "lg";
|
|
4
6
|
export interface SelectOption {
|
|
5
7
|
value: string;
|
|
6
8
|
label: string;
|
|
7
9
|
description?: string;
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export interface SelectProps {
|
|
12
|
+
export interface SelectProps extends BaseGlassProps, BaseHapticProps, VariantProps<SelectVariant>, SizeProps<SelectSize> {
|
|
11
13
|
value?: string;
|
|
12
14
|
defaultValue?: string;
|
|
13
15
|
options: SelectOption[];
|
|
14
16
|
placeholder?: string;
|
|
15
17
|
disabled?: boolean;
|
|
16
|
-
title?: string;
|
|
17
18
|
onValueChange?: (value: string) => void;
|
|
18
19
|
chevronIcon?: RenderIcon;
|
|
19
20
|
checkIcon?: RenderIcon;
|
|
20
21
|
style?: StyleProp<ViewStyle>;
|
|
21
22
|
}
|
|
22
|
-
export declare function Select({ value, defaultValue, options, placeholder, disabled,
|
|
23
|
+
export declare function Select({ value, defaultValue, options, placeholder, variant, size, disabled, glass, haptic, onValueChange, chevronIcon, checkIcon, style, }: SelectProps): React.JSX.Element;
|
|
23
24
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WACf,SAAQ,cAAc,EACpB,eAAe,EACf,YAAY,CAAC,aAAa,CAAC,EAC3B,SAAS,CAAC,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAgBD,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,YAAY,EACZ,OAAO,EACP,WAA6B,EAC7B,OAAmB,EACnB,IAAW,EACX,QAAgB,EAChB,KAAa,EACb,MAAa,EACb,aAAa,EACb,WAAW,EACX,SAAS,EACT,KAAK,GACN,EAAE,WAAW,qBAiMb"}
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { type StyleProp, type TextStyle, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
|
|
2
|
+
import { View, type ModalProps, type StyleProp, type TextStyle, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon, type BaseGlassProps, type BaseHapticProps } from "./types";
|
|
4
|
+
export interface SheetProps extends BaseGlassProps, BaseHapticProps {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
closeIcon?: RenderIcon;
|
|
11
|
+
dismissOnBackdropPress?: boolean;
|
|
12
|
+
animated?: boolean;
|
|
13
|
+
animationDuration?: number;
|
|
14
|
+
modalProps?: Omit<ModalProps, "visible" | "transparent" | "animationType" | "onRequestClose">;
|
|
15
|
+
overlayStyle?: StyleProp<ViewStyle>;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
18
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
19
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
20
|
+
}
|
|
21
|
+
export declare function Sheet({ visible, onClose, title, description, children, glass, haptic, closeIcon, dismissOnBackdropPress, animated, animationDuration, modalProps, overlayStyle, style, contentStyle, titleStyle, descriptionStyle, }: SheetProps): React.JSX.Element | null;
|
|
22
|
+
export declare const SheetContent: typeof View;
|
|
6
23
|
export interface SheetHeaderProps extends ViewProps {
|
|
7
24
|
style?: StyleProp<ViewStyle>;
|
|
25
|
+
children?: React.ReactNode;
|
|
8
26
|
}
|
|
9
|
-
export declare function SheetHeader({ style,
|
|
27
|
+
export declare function SheetHeader({ style, children }: SheetHeaderProps): React.JSX.Element;
|
|
10
28
|
export interface SheetTitleProps {
|
|
11
29
|
children?: React.ReactNode;
|
|
12
30
|
style?: StyleProp<TextStyle>;
|
|
@@ -19,6 +37,7 @@ export interface SheetDescriptionProps {
|
|
|
19
37
|
export declare function SheetDescription({ children, style }: SheetDescriptionProps): React.JSX.Element;
|
|
20
38
|
export interface SheetFooterProps extends ViewProps {
|
|
21
39
|
style?: StyleProp<ViewStyle>;
|
|
40
|
+
children?: React.ReactNode;
|
|
22
41
|
}
|
|
23
|
-
export declare function SheetFooter({ style,
|
|
42
|
+
export declare function SheetFooter({ style, children }: SheetFooterProps): React.JSX.Element;
|
|
24
43
|
//# sourceMappingURL=Sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAGL,IAAI,EACJ,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAatB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,eAAe;IACjE,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAA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AAC;CAC9B;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,eAAe,qBAM9D;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,qBAAqB,qBAM1E;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,qBAiBhE"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
-
import { type RenderIcon } from "./types";
|
|
4
|
-
export
|
|
3
|
+
import { type RenderIcon, type BaseGlassProps, type BaseHapticProps, type SizeProps, type VariantProps } from "./types";
|
|
4
|
+
export type StepperVariant = "input" | "soft" | "outline";
|
|
5
|
+
export type StepperSize = "sm" | "md" | "lg";
|
|
6
|
+
export interface StepperProps extends ViewProps, BaseGlassProps, BaseHapticProps, VariantProps<StepperVariant>, SizeProps<StepperSize> {
|
|
5
7
|
value?: number;
|
|
6
8
|
defaultValue?: number;
|
|
7
9
|
min?: number;
|
|
@@ -13,5 +15,5 @@ export interface StepperProps extends ViewProps {
|
|
|
13
15
|
incrementIcon?: RenderIcon;
|
|
14
16
|
style?: StyleProp<ViewStyle>;
|
|
15
17
|
}
|
|
16
|
-
export declare function Stepper({ value, defaultValue, min, max, step, disabled, onValueChange, decrementIcon, incrementIcon, style, ...props }: StepperProps): React.JSX.Element;
|
|
18
|
+
export declare function Stepper({ value, defaultValue, min, max, step, variant, size, disabled, glass, haptic, onValueChange, decrementIcon, incrementIcon, style, ...props }: StepperProps): React.JSX.Element;
|
|
17
19
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YACf,SAAQ,SAAS,EACf,cAAc,EACd,eAAe,EACf,YAAY,CAAC,cAAc,CAAC,EAC5B,SAAS,CAAC,WAAW,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAyDD,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,YAAgB,EAChB,GAAO,EACP,GAAS,EACT,IAAQ,EACR,OAAiB,EACjB,IAAW,EACX,QAAgB,EAChB,KAAa,EACb,MAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,KAAK,EACL,GAAG,KAAK,EACT,EAAE,YAAY,qBAmJd"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type GestureResponderEvent, type PressableProps, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
-
import { type RenderIcon } from "./types";
|
|
3
|
+
import { type RenderIcon, type BaseGlassProps, type BaseHapticProps } from "./types";
|
|
4
4
|
export type SwitchSize = "sm" | "md" | "lg";
|
|
5
5
|
export type SwitchTone = "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "info";
|
|
6
6
|
export interface SwitchRenderThumbParams {
|
|
@@ -11,7 +11,7 @@ export interface SwitchRenderThumbParams {
|
|
|
11
11
|
size: number;
|
|
12
12
|
}
|
|
13
13
|
export type SwitchThumbContent = React.ReactNode | ((params: SwitchRenderThumbParams) => React.ReactNode);
|
|
14
|
-
export interface SwitchProps extends Omit<PressableProps, "onPress" | "style" | "children"
|
|
14
|
+
export interface SwitchProps extends Omit<PressableProps, "onPress" | "style" | "children">, BaseGlassProps, BaseHapticProps {
|
|
15
15
|
value?: boolean;
|
|
16
16
|
defaultValue?: boolean;
|
|
17
17
|
onValueChange?: (value: boolean) => void;
|
|
@@ -30,5 +30,5 @@ export interface SwitchProps extends Omit<PressableProps, "onPress" | "style" |
|
|
|
30
30
|
renderThumb?: (params: SwitchRenderThumbParams) => React.ReactNode;
|
|
31
31
|
onPress?: (event: GestureResponderEvent) => void;
|
|
32
32
|
}
|
|
33
|
-
export declare function Switch({ value, defaultValue, onValueChange, disabled, invalid, size, tone, style, trackStyle, thumbStyle, activeIcon, inactiveIcon, thumbContent, activeThumbContent, inactiveThumbContent, renderThumb, onPress, onPressIn, onPressOut, accessibilityLabel, ...props }: SwitchProps): React.JSX.Element;
|
|
33
|
+
export declare function Switch({ value, defaultValue, onValueChange, disabled, invalid, size, tone, glass, haptic, style, trackStyle, thumbStyle, activeIcon, inactiveIcon, thumbContent, activeThumbContent, inactiveThumbContent, renderThumb, onPress, onPressIn, onPressOut, accessibilityLabel, ...props }: SwitchProps): React.JSX.Element;
|
|
34
34
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAWtB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,CAAC;AAEX,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CA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UAAU,EACV,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,WAAW,qBA2Lb"}
|
|
@@ -1,26 +1,43 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type PressableProps, type StyleProp, type ViewProps, type ViewStyle } from "react-native";
|
|
3
|
+
import { type RenderIcon, type BaseAnimatedProps, type BaseGlassProps, type BaseHapticProps, type SizeProps, type VariantProps } from "./types";
|
|
4
|
+
export type TabsVariant = "segmented" | "pills" | "underline" | "soft";
|
|
5
|
+
export type TabsSize = "sm" | "md" | "lg";
|
|
6
|
+
export interface TabNodeLayout {
|
|
7
|
+
x: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
3
11
|
export interface TabsContextValue {
|
|
4
12
|
value?: string;
|
|
5
13
|
onValueChange?: (value: string) => void;
|
|
14
|
+
variant: TabsVariant;
|
|
15
|
+
size: TabsSize;
|
|
16
|
+
glass: boolean;
|
|
17
|
+
haptic: boolean;
|
|
18
|
+
animated: boolean;
|
|
19
|
+
registerTabNode: (value: string, layout: TabNodeLayout) => void;
|
|
20
|
+
tabNodes: Record<string, TabNodeLayout>;
|
|
6
21
|
}
|
|
7
|
-
export
|
|
22
|
+
export declare function useTabsContext(): TabsContextValue;
|
|
23
|
+
export interface TabsProps extends ViewProps, BaseGlassProps, BaseHapticProps, BaseAnimatedProps, VariantProps<TabsVariant>, SizeProps<TabsSize> {
|
|
8
24
|
value?: string;
|
|
9
25
|
defaultValue?: string;
|
|
10
26
|
onValueChange?: (value: string) => void;
|
|
11
27
|
style?: StyleProp<ViewStyle>;
|
|
12
28
|
}
|
|
13
|
-
export declare function Tabs({ value, defaultValue, onValueChange, style, ...props }: TabsProps): React.JSX.Element;
|
|
29
|
+
export declare function Tabs({ value, defaultValue, variant, size, glass, haptic, animated, onValueChange, style, ...props }: TabsProps): React.JSX.Element;
|
|
14
30
|
export interface TabsListProps extends ViewProps {
|
|
15
31
|
style?: StyleProp<ViewStyle>;
|
|
16
32
|
}
|
|
17
|
-
export declare function TabsList({ style, ...props }: TabsListProps): React.JSX.Element;
|
|
33
|
+
export declare function TabsList({ style, children, ...props }: TabsListProps): React.JSX.Element;
|
|
18
34
|
export interface TabsTriggerProps extends Omit<PressableProps, "style"> {
|
|
19
35
|
value: string;
|
|
36
|
+
icon?: RenderIcon;
|
|
20
37
|
children?: React.ReactNode;
|
|
21
38
|
style?: StyleProp<ViewStyle>;
|
|
22
39
|
}
|
|
23
|
-
export declare function TabsTrigger({ value, children, style, disabled, ...props }: TabsTriggerProps): React.JSX.Element;
|
|
40
|
+
export declare function TabsTrigger({ value, icon, children, style, disabled, ...props }: TabsTriggerProps): React.JSX.Element;
|
|
24
41
|
export interface TabsContentProps extends ViewProps {
|
|
25
42
|
value: string;
|
|
26
43
|
forceMount?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAUtB,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,MAAM,CAAC;AACvE,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