@metamask/design-system-react-native 0.7.0 → 0.8.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.
Files changed (114) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/dist/components/BadgeStatus/BadgeStatus.cjs +2 -2
  3. package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
  4. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs +8 -8
  5. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs.map +1 -1
  6. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts +1 -1
  7. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts.map +1 -1
  8. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts +1 -1
  9. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts.map +1 -1
  10. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs +1 -1
  11. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs.map +1 -1
  12. package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
  13. package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
  14. package/dist/components/BadgeStatus/BadgeStatus.mjs +1 -1
  15. package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
  16. package/dist/components/BadgeStatus/BadgeStatus.types.cjs.map +1 -1
  17. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +5 -29
  18. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  19. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +5 -29
  20. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  21. package/dist/components/BadgeStatus/BadgeStatus.types.mjs.map +1 -1
  22. package/dist/components/BadgeStatus/index.cjs +4 -4
  23. package/dist/components/BadgeStatus/index.cjs.map +1 -1
  24. package/dist/components/BadgeStatus/index.d.cts +1 -1
  25. package/dist/components/BadgeStatus/index.d.cts.map +1 -1
  26. package/dist/components/BadgeStatus/index.d.mts +1 -1
  27. package/dist/components/BadgeStatus/index.d.mts.map +1 -1
  28. package/dist/components/BadgeStatus/index.mjs +1 -1
  29. package/dist/components/BadgeStatus/index.mjs.map +1 -1
  30. package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.cjs +1 -1
  31. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -0
  32. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts.map +1 -0
  33. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts.map +1 -0
  34. package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.mjs +1 -1
  35. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -0
  36. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs.map +1 -0
  37. package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.types.d.cts +1 -1
  38. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -0
  39. package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.types.d.mts +1 -1
  40. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -0
  41. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs.map +1 -0
  42. package/dist/components/BottomSheetFooter/index.cjs.map +1 -0
  43. package/dist/components/BottomSheetFooter/index.d.cts.map +1 -0
  44. package/dist/components/BottomSheetFooter/index.d.mts.map +1 -0
  45. package/dist/components/BottomSheetFooter/index.mjs.map +1 -0
  46. package/dist/components/RadioButton/RadioButton.cjs +58 -0
  47. package/dist/components/RadioButton/RadioButton.cjs.map +1 -0
  48. package/dist/components/RadioButton/RadioButton.constants.cjs +12 -0
  49. package/dist/components/RadioButton/RadioButton.constants.cjs.map +1 -0
  50. package/dist/components/RadioButton/RadioButton.constants.d.cts +3 -0
  51. package/dist/components/RadioButton/RadioButton.constants.d.cts.map +1 -0
  52. package/dist/components/RadioButton/RadioButton.constants.d.mts +3 -0
  53. package/dist/components/RadioButton/RadioButton.constants.d.mts.map +1 -0
  54. package/dist/components/RadioButton/RadioButton.constants.mjs +9 -0
  55. package/dist/components/RadioButton/RadioButton.constants.mjs.map +1 -0
  56. package/dist/components/RadioButton/RadioButton.d.cts +4 -0
  57. package/dist/components/RadioButton/RadioButton.d.cts.map +1 -0
  58. package/dist/components/RadioButton/RadioButton.d.mts +4 -0
  59. package/dist/components/RadioButton/RadioButton.d.mts.map +1 -0
  60. package/dist/components/RadioButton/RadioButton.mjs +58 -0
  61. package/dist/components/RadioButton/RadioButton.mjs.map +1 -0
  62. package/dist/components/RadioButton/RadioButton.types.cjs +3 -0
  63. package/dist/components/RadioButton/RadioButton.types.cjs.map +1 -0
  64. package/dist/components/RadioButton/RadioButton.types.d.cts +64 -0
  65. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -0
  66. package/dist/components/RadioButton/RadioButton.types.d.mts +64 -0
  67. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -0
  68. package/dist/components/RadioButton/RadioButton.types.mjs +2 -0
  69. package/dist/components/RadioButton/RadioButton.types.mjs.map +1 -0
  70. package/dist/components/RadioButton/index.cjs +6 -0
  71. package/dist/components/RadioButton/index.cjs.map +1 -0
  72. package/dist/components/RadioButton/index.d.cts +3 -0
  73. package/dist/components/RadioButton/index.d.cts.map +1 -0
  74. package/dist/components/RadioButton/index.d.mts +3 -0
  75. package/dist/components/RadioButton/index.d.mts.map +1 -0
  76. package/dist/components/RadioButton/index.mjs +2 -0
  77. package/dist/components/RadioButton/index.mjs.map +1 -0
  78. package/dist/components/index.cjs +4 -2
  79. package/dist/components/index.cjs.map +1 -1
  80. package/dist/components/index.d.cts +4 -2
  81. package/dist/components/index.d.cts.map +1 -1
  82. package/dist/components/index.d.mts +4 -2
  83. package/dist/components/index.d.mts.map +1 -1
  84. package/dist/components/index.mjs +2 -1
  85. package/dist/components/index.mjs.map +1 -1
  86. package/dist/types/index.cjs +1 -26
  87. package/dist/types/index.cjs.map +1 -1
  88. package/dist/types/index.d.cts +0 -23
  89. package/dist/types/index.d.cts.map +1 -1
  90. package/dist/types/index.d.mts +0 -23
  91. package/dist/types/index.d.mts.map +1 -1
  92. package/dist/types/index.mjs +0 -25
  93. package/dist/types/index.mjs.map +1 -1
  94. package/package.json +2 -2
  95. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.cjs.map +0 -1
  96. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.d.cts.map +0 -1
  97. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.d.mts.map +0 -1
  98. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.mjs.map +0 -1
  99. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.cjs.map +0 -1
  100. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +0 -1
  101. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +0 -1
  102. package/dist/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.mjs.map +0 -1
  103. package/dist/components/BottomSheets/BottomSheetFooter/index.cjs.map +0 -1
  104. package/dist/components/BottomSheets/BottomSheetFooter/index.d.cts.map +0 -1
  105. package/dist/components/BottomSheets/BottomSheetFooter/index.d.mts.map +0 -1
  106. package/dist/components/BottomSheets/BottomSheetFooter/index.mjs.map +0 -1
  107. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.d.cts +0 -0
  108. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.d.mts +0 -0
  109. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.types.cjs +0 -0
  110. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/BottomSheetFooter.types.mjs +0 -0
  111. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/index.cjs +0 -0
  112. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/index.d.cts +0 -0
  113. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/index.d.mts +0 -0
  114. /package/dist/components/{BottomSheets/BottomSheetFooter → BottomSheetFooter}/index.mjs +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/design-system-react-native",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Design System React Native",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -48,7 +48,7 @@
48
48
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
49
49
  },
50
50
  "dependencies": {
51
- "@metamask/design-system-shared": "^0.1.3",
51
+ "@metamask/design-system-shared": "^0.2.0",
52
52
  "fast-text-encoding": "^1.0.6",
53
53
  "react-native-jazzicon": "^0.1.2"
54
54
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.cjs","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAEpC,yBAAyB;AACzB,mDAAqD;AAIrD,2EAA6D;AAEtD,MAAM,iBAAiB,GAAqC,CAAC,EAClE,KAAK,EACL,WAAW,EACX,gBAAgB,GAAG,0CAAgB,CAAC,UAAU,EAC9C,kBAAkB,EAClB,oBAAoB,EACpB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,YAAY,GAAG,gBAAgB,KAAK,0CAAgB,CAAC,UAAU,CAAC;IACtE,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC;IACjE,MAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,cAAc,GAClB,OAAO,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE/D,IAAI,CAAC,kBAAkB,IAAI,CAAC,oBAAoB,EAAE;QAChD,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EACtC,WAAW,EACX,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,oBAAoB,IAAI,CACvB,CAAC,eAAM,CACL,IAAI,oBAAoB,CAAC,CACzB,OAAO,CAAC,CAAC,sBAAa,CAAC,SAAS,CAAC,CACjC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAC/D,CACH,CACD;MAAA,CAAC,kBAAkB,IAAI,CACrB,CAAC,eAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,OAAO,CAAC,CAAC,sBAAa,CAAC,OAAO,CAAC,CAC/B,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,cAAc,IAAI,QAAQ,CAAC;gBACrD,kBAAkB,CAAC,KAAK;aACzB,CAAC,EACF,CACH,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAlDW,QAAA,iBAAiB,qBAkD5B","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\n// External dependencies.\nimport { Button, ButtonVariant } from '../../Button';\n\n// Internal dependencies.\nimport type { BottomSheetFooterProps } from './BottomSheetFooter.types';\nimport { ButtonsAlignment } from './BottomSheetFooter.types';\n\nexport const BottomSheetFooter: React.FC<BottomSheetFooterProps> = ({\n style,\n twClassName,\n buttonsAlignment = ButtonsAlignment.Horizontal,\n primaryButtonProps,\n secondaryButtonProps,\n ...props\n}) => {\n const tw = useTailwind();\n const isHorizontal = buttonsAlignment === ButtonsAlignment.Horizontal;\n const buttonBaseClass = isHorizontal ? 'flex-1' : 'self-stretch';\n const gapClass = isHorizontal ? 'ml-4' : 'mt-4';\n const hasBothButtons =\n Boolean(primaryButtonProps) && Boolean(secondaryButtonProps);\n\n if (!primaryButtonProps && !secondaryButtonProps) {\n return null;\n }\n\n return (\n <View\n style={[\n tw.style(\n isHorizontal ? 'flex-row' : 'flex-col',\n 'px-2 py-1',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {secondaryButtonProps && (\n <Button\n {...secondaryButtonProps}\n variant={ButtonVariant.Secondary}\n style={[tw.style(buttonBaseClass), secondaryButtonProps.style]}\n />\n )}\n {primaryButtonProps && (\n <Button\n {...primaryButtonProps}\n variant={ButtonVariant.Primary}\n style={[\n tw.style(buttonBaseClass, hasBothButtons && gapClass),\n primaryButtonProps.style,\n ]}\n />\n )}\n </View>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.d.cts","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,sCAAkC;AAGxE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAkD9D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.d.mts","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,sCAAkC;AAGxE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAkD9D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.mjs","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,yBAAyB;AACzB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,+BAAqB;AAIrD,OAAO,EAAE,gBAAgB,EAAE,sCAAkC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAClE,KAAK,EACL,WAAW,EACX,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,EAC9C,kBAAkB,EAClB,oBAAoB,EACpB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,gBAAgB,KAAK,gBAAgB,CAAC,UAAU,CAAC;IACtE,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC;IACjE,MAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,cAAc,GAClB,OAAO,CAAC,kBAAkB,CAAC,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE/D,IAAI,CAAC,kBAAkB,IAAI,CAAC,oBAAoB,EAAE;QAChD,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EACtC,WAAW,EACX,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,oBAAoB,IAAI,CACvB,CAAC,MAAM,CACL,IAAI,oBAAoB,CAAC,CACzB,OAAO,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CACjC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,EAC/D,CACH,CACD;MAAA,CAAC,kBAAkB,IAAI,CACrB,CAAC,MAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,OAAO,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAC/B,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,cAAc,IAAI,QAAQ,CAAC;gBACrD,kBAAkB,CAAC,KAAK;aACzB,CAAC,EACF,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\n// External dependencies.\nimport { Button, ButtonVariant } from '../../Button';\n\n// Internal dependencies.\nimport type { BottomSheetFooterProps } from './BottomSheetFooter.types';\nimport { ButtonsAlignment } from './BottomSheetFooter.types';\n\nexport const BottomSheetFooter: React.FC<BottomSheetFooterProps> = ({\n style,\n twClassName,\n buttonsAlignment = ButtonsAlignment.Horizontal,\n primaryButtonProps,\n secondaryButtonProps,\n ...props\n}) => {\n const tw = useTailwind();\n const isHorizontal = buttonsAlignment === ButtonsAlignment.Horizontal;\n const buttonBaseClass = isHorizontal ? 'flex-1' : 'self-stretch';\n const gapClass = isHorizontal ? 'ml-4' : 'mt-4';\n const hasBothButtons =\n Boolean(primaryButtonProps) && Boolean(secondaryButtonProps);\n\n if (!primaryButtonProps && !secondaryButtonProps) {\n return null;\n }\n\n return (\n <View\n style={[\n tw.style(\n isHorizontal ? 'flex-row' : 'flex-col',\n 'px-2 py-1',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {secondaryButtonProps && (\n <Button\n {...secondaryButtonProps}\n variant={ButtonVariant.Secondary}\n style={[tw.style(buttonBaseClass), secondaryButtonProps.style]}\n />\n )}\n {primaryButtonProps && (\n <Button\n {...primaryButtonProps}\n variant={ButtonVariant.Primary}\n style={[\n tw.style(buttonBaseClass, hasBothButtons && gapClass),\n primaryButtonProps.style,\n ]}\n />\n )}\n </View>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.types.cjs","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACH,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B","sourcesContent":["// Third party dependencies.\nimport type { ViewProps } from 'react-native';\n\n// External dependencies.\nimport type { ButtonProps } from '../../Button/Button.types';\n\n/**\n * Buttons alignment options for the BottomSheetFooter.\n */\nexport enum ButtonsAlignment {\n Horizontal = 'Horizontal',\n Vertical = 'Vertical',\n}\n\n/**\n * Button props for BottomSheetFooter with variant enforced by the component.\n */\nexport type BottomSheetFooterButtonProps = Omit<ButtonProps, 'variant'>;\n\n/**\n * BottomSheetFooter component props.\n */\nexport type BottomSheetFooterProps = {\n /**\n * Optional prop to control the alignment of the buttons.\n *\n * @default ButtonsAlignment.Horizontal\n */\n buttonsAlignment?: ButtonsAlignment;\n /**\n * Optional props for the primary action button.\n * Renders with ButtonVariant.Primary automatically.\n * Appears second (rightmost in horizontal layout, bottom in vertical layout).\n */\n primaryButtonProps?: BottomSheetFooterButtonProps;\n /**\n * Optional props for the secondary action button.\n * Renders with ButtonVariant.Secondary automatically.\n * Appears first (leftmost in horizontal layout, top in vertical layout).\n */\n secondaryButtonProps?: BottomSheetFooterButtonProps;\n /**\n * Tailwind CSS classes for the footer container.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.types.d.cts","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,sCAAkC;AAE7D;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,4BAA4B,CAAC;IAClD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,4BAA4B,CAAC;IACpD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.types.d.mts","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,sCAAkC;AAE7D;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,4BAA4B,CAAC;IAClD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,4BAA4B,CAAC;IACpD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BottomSheetFooter.types.mjs","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/BottomSheetFooter.types.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,6CAAyB,CAAA;IACzB,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B","sourcesContent":["// Third party dependencies.\nimport type { ViewProps } from 'react-native';\n\n// External dependencies.\nimport type { ButtonProps } from '../../Button/Button.types';\n\n/**\n * Buttons alignment options for the BottomSheetFooter.\n */\nexport enum ButtonsAlignment {\n Horizontal = 'Horizontal',\n Vertical = 'Vertical',\n}\n\n/**\n * Button props for BottomSheetFooter with variant enforced by the component.\n */\nexport type BottomSheetFooterButtonProps = Omit<ButtonProps, 'variant'>;\n\n/**\n * BottomSheetFooter component props.\n */\nexport type BottomSheetFooterProps = {\n /**\n * Optional prop to control the alignment of the buttons.\n *\n * @default ButtonsAlignment.Horizontal\n */\n buttonsAlignment?: ButtonsAlignment;\n /**\n * Optional props for the primary action button.\n * Renders with ButtonVariant.Primary automatically.\n * Appears second (rightmost in horizontal layout, bottom in vertical layout).\n */\n primaryButtonProps?: BottomSheetFooterButtonProps;\n /**\n * Optional props for the secondary action button.\n * Renders with ButtonVariant.Secondary automatically.\n * Appears first (leftmost in horizontal layout, top in vertical layout).\n */\n secondaryButtonProps?: BottomSheetFooterButtonProps;\n /**\n * Tailwind CSS classes for the footer container.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/index.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,yEAA6D;AAApD,2HAAA,gBAAgB,OAAA","sourcesContent":["export { BottomSheetFooter } from './BottomSheetFooter';\nexport { ButtonsAlignment } from './BottomSheetFooter.types';\nexport type {\n BottomSheetFooterProps,\n BottomSheetFooterButtonProps,\n} from './BottomSheetFooter.types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gCAA4B;AACxD,OAAO,EAAE,gBAAgB,EAAE,sCAAkC;AAC7D,YAAY,EACV,sBAAsB,EACtB,4BAA4B,GAC7B,sCAAkC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gCAA4B;AACxD,OAAO,EAAE,gBAAgB,EAAE,sCAAkC;AAC7D,YAAY,EACV,sBAAsB,EACtB,4BAA4B,GAC7B,sCAAkC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/components/BottomSheets/BottomSheetFooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gCAA4B;AACxD,OAAO,EAAE,gBAAgB,EAAE,sCAAkC","sourcesContent":["export { BottomSheetFooter } from './BottomSheetFooter';\nexport { ButtonsAlignment } from './BottomSheetFooter.types';\nexport type {\n BottomSheetFooterProps,\n BottomSheetFooterButtonProps,\n} from './BottomSheetFooter.types';\n"]}