@cdx-ui/components 0.0.1-alpha.9 → 0.0.1-beta.2
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/README.md +53 -2
- package/lib/commonjs/components/AlertDialog/index.js +117 -0
- package/lib/commonjs/components/AlertDialog/index.js.map +1 -0
- package/lib/commonjs/components/Avatar/index.js +156 -0
- package/lib/commonjs/components/Avatar/index.js.map +1 -0
- package/lib/commonjs/components/Avatar/styles.js +80 -0
- package/lib/commonjs/components/Avatar/styles.js.map +1 -0
- package/lib/commonjs/components/BottomSheet/index.js +248 -0
- package/lib/commonjs/components/BottomSheet/index.js.map +1 -0
- package/lib/commonjs/components/BottomSheet/styles.js +61 -0
- package/lib/commonjs/components/BottomSheet/styles.js.map +1 -0
- package/lib/commonjs/components/Box/Box.js +1 -0
- package/lib/commonjs/components/Box/Box.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +20 -9
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +182 -163
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/Card/index.js +104 -0
- package/lib/commonjs/components/Card/index.js.map +1 -0
- package/lib/commonjs/components/Card/styles.js +28 -0
- package/lib/commonjs/components/Card/styles.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +18 -11
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +17 -16
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +103 -0
- package/lib/commonjs/components/Chip/index.js.map +1 -0
- package/lib/commonjs/components/Chip/styles.js +52 -0
- package/lib/commonjs/components/Chip/styles.js.map +1 -0
- package/lib/commonjs/components/Dialog/index.js +275 -0
- package/lib/commonjs/components/Dialog/index.js.map +1 -0
- package/lib/commonjs/components/Dialog/styles.js +63 -0
- package/lib/commonjs/components/Dialog/styles.js.map +1 -0
- package/lib/commonjs/components/Field/FieldLabel.js +33 -0
- package/lib/commonjs/components/Field/FieldLabel.js.map +1 -0
- package/lib/commonjs/components/Field/FieldLabel.web.js +22 -0
- package/lib/commonjs/components/Field/FieldLabel.web.js.map +1 -0
- package/lib/commonjs/components/Field/index.js +158 -0
- package/lib/commonjs/components/Field/index.js.map +1 -0
- package/lib/commonjs/components/Field/styles.js +16 -0
- package/lib/commonjs/components/Field/styles.js.map +1 -0
- package/lib/commonjs/components/Form/FormRoot.js +25 -0
- package/lib/commonjs/components/Form/FormRoot.js.map +1 -0
- package/lib/commonjs/components/Form/FormRoot.web.js +17 -0
- package/lib/commonjs/components/Form/FormRoot.web.js.map +1 -0
- package/lib/commonjs/components/Form/index.js +48 -0
- package/lib/commonjs/components/Form/index.js.map +1 -0
- package/lib/commonjs/components/Form/styles.js +9 -0
- package/lib/commonjs/components/Form/styles.js.map +1 -0
- package/lib/commonjs/components/Heading/index.js +35 -0
- package/lib/commonjs/components/Heading/index.js.map +1 -0
- package/lib/commonjs/components/Heading/styles.js +23 -0
- package/lib/commonjs/components/Heading/styles.js.map +1 -0
- package/lib/commonjs/components/Icon/index.js +61 -0
- package/lib/commonjs/components/Icon/index.js.map +1 -0
- package/lib/commonjs/components/IconButton/index.js +75 -0
- package/lib/commonjs/components/IconButton/index.js.map +1 -0
- package/lib/commonjs/components/IconButton/styles.js +44 -0
- package/lib/commonjs/components/IconButton/styles.js.map +1 -0
- package/lib/commonjs/components/Image/Image.js +69 -0
- package/lib/commonjs/components/Image/Image.js.map +1 -0
- package/lib/commonjs/components/Image/index.js +13 -0
- package/lib/commonjs/components/Image/index.js.map +1 -0
- package/lib/commonjs/components/Input/BaseInput.android.js +20 -0
- package/lib/commonjs/components/Input/BaseInput.android.js.map +1 -0
- package/lib/commonjs/components/Input/index.js +10 -16
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Input/styles.js +17 -30
- package/lib/commonjs/components/Input/styles.js.map +1 -1
- package/lib/commonjs/components/Link/index.js +94 -0
- package/lib/commonjs/components/Link/index.js.map +1 -0
- package/lib/commonjs/components/Link/styles.js +14 -0
- package/lib/commonjs/components/Link/styles.js.map +1 -0
- package/lib/commonjs/components/OtpInput/index.js +83 -0
- package/lib/commonjs/components/OtpInput/index.js.map +1 -0
- package/lib/commonjs/components/OtpInput/styles.js +48 -0
- package/lib/commonjs/components/OtpInput/styles.js.map +1 -0
- package/lib/commonjs/components/ProgressBar/index.js +45 -0
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
- package/lib/commonjs/components/ProgressBar/styles.js +10 -0
- package/lib/commonjs/components/ProgressBar/styles.js.map +1 -0
- package/lib/commonjs/components/ProgressSegmented/index.js +62 -0
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -0
- package/lib/commonjs/components/ProgressSegmented/styles.js +21 -0
- package/lib/commonjs/components/ProgressSegmented/styles.js.map +1 -0
- package/lib/commonjs/components/Select/SelectTriggerHost.js +10 -0
- package/lib/commonjs/components/Select/SelectTriggerHost.js.map +1 -0
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js +98 -0
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -0
- package/lib/commonjs/components/Select/index.js +13 -13
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/Select/styles.js +29 -53
- package/lib/commonjs/components/Select/styles.js.map +1 -1
- package/lib/commonjs/components/Stack/HStack.js +8 -21
- package/lib/commonjs/components/Stack/HStack.js.map +1 -1
- package/lib/commonjs/components/Stack/VStack.js +8 -21
- package/lib/commonjs/components/Stack/VStack.js.map +1 -1
- package/lib/commonjs/components/Stack/styles.js +44 -0
- package/lib/commonjs/components/Stack/styles.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +18 -9
- package/lib/commonjs/components/Text/index.js.map +1 -1
- package/lib/commonjs/components/Text/styles.js +23 -0
- package/lib/commonjs/components/Text/styles.js.map +1 -0
- package/lib/commonjs/components/VirtualizedList/index.js +19 -0
- package/lib/commonjs/components/VirtualizedList/index.js.map +1 -0
- package/lib/commonjs/components/index.js +204 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/index.js +40 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles/index.js +17 -0
- package/lib/commonjs/styles/index.js.map +1 -0
- package/lib/commonjs/styles/primitives.js +123 -0
- package/lib/commonjs/styles/primitives.js.map +1 -0
- package/lib/module/components/AlertDialog/index.js +112 -0
- package/lib/module/components/AlertDialog/index.js.map +1 -0
- package/lib/module/components/Avatar/index.js +152 -0
- package/lib/module/components/Avatar/index.js.map +1 -0
- package/lib/module/components/Avatar/styles.js +77 -0
- package/lib/module/components/Avatar/styles.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +242 -0
- package/lib/module/components/BottomSheet/index.js.map +1 -0
- package/lib/module/components/BottomSheet/styles.js +58 -0
- package/lib/module/components/BottomSheet/styles.js.map +1 -0
- package/lib/module/components/Box/Box.js +1 -0
- package/lib/module/components/Box/Box.js.map +1 -1
- package/lib/module/components/Button/index.js +21 -10
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/styles.js +181 -162
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/Card/index.js +100 -0
- package/lib/module/components/Card/index.js.map +1 -0
- package/lib/module/components/Card/styles.js +25 -0
- package/lib/module/components/Card/styles.js.map +1 -0
- package/lib/module/components/Checkbox/index.js +19 -12
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +17 -16
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +99 -0
- package/lib/module/components/Chip/index.js.map +1 -0
- package/lib/module/components/Chip/styles.js +48 -0
- package/lib/module/components/Chip/styles.js.map +1 -0
- package/lib/module/components/Dialog/index.js +267 -0
- package/lib/module/components/Dialog/index.js.map +1 -0
- package/lib/module/components/Dialog/styles.js +60 -0
- package/lib/module/components/Dialog/styles.js.map +1 -0
- package/lib/module/components/Field/FieldLabel.js +29 -0
- package/lib/module/components/Field/FieldLabel.js.map +1 -0
- package/lib/module/components/Field/FieldLabel.web.js +17 -0
- package/lib/module/components/Field/FieldLabel.web.js.map +1 -0
- package/lib/module/components/Field/index.js +155 -0
- package/lib/module/components/Field/index.js.map +1 -0
- package/lib/module/components/Field/styles.js +12 -0
- package/lib/module/components/Field/styles.js.map +1 -0
- package/lib/module/components/Form/FormRoot.js +21 -0
- package/lib/module/components/Form/FormRoot.js.map +1 -0
- package/lib/module/components/Form/FormRoot.web.js +12 -0
- package/lib/module/components/Form/FormRoot.web.js.map +1 -0
- package/lib/module/components/Form/index.js +44 -0
- package/lib/module/components/Form/index.js.map +1 -0
- package/lib/module/components/Form/styles.js +5 -0
- package/lib/module/components/Form/styles.js.map +1 -0
- package/lib/module/components/Heading/index.js +31 -0
- package/lib/module/components/Heading/index.js.map +1 -0
- package/lib/module/components/Heading/styles.js +19 -0
- package/lib/module/components/Heading/styles.js.map +1 -0
- package/lib/module/components/Icon/index.js +57 -0
- package/lib/module/components/Icon/index.js.map +1 -0
- package/lib/module/components/IconButton/index.js +71 -0
- package/lib/module/components/IconButton/index.js.map +1 -0
- package/lib/module/components/IconButton/styles.js +40 -0
- package/lib/module/components/IconButton/styles.js.map +1 -0
- package/lib/module/components/Image/Image.js +67 -0
- package/lib/module/components/Image/Image.js.map +1 -0
- package/lib/module/components/Image/index.js +4 -0
- package/lib/module/components/Image/index.js.map +1 -0
- package/lib/module/components/Input/BaseInput.android.js +16 -0
- package/lib/module/components/Input/BaseInput.android.js.map +1 -0
- package/lib/module/components/Input/index.js +10 -16
- package/lib/module/components/Input/index.js.map +1 -1
- package/lib/module/components/Input/styles.js +17 -30
- package/lib/module/components/Input/styles.js.map +1 -1
- package/lib/module/components/Link/index.js +85 -0
- package/lib/module/components/Link/index.js.map +1 -0
- package/lib/module/components/Link/styles.js +11 -0
- package/lib/module/components/Link/styles.js.map +1 -0
- package/lib/module/components/OtpInput/index.js +79 -0
- package/lib/module/components/OtpInput/index.js.map +1 -0
- package/lib/module/components/OtpInput/styles.js +44 -0
- package/lib/module/components/OtpInput/styles.js.map +1 -0
- package/lib/module/components/ProgressBar/index.js +41 -0
- package/lib/module/components/ProgressBar/index.js.map +1 -0
- package/lib/module/components/ProgressBar/styles.js +6 -0
- package/lib/module/components/ProgressBar/styles.js.map +1 -0
- package/lib/module/components/ProgressSegmented/index.js +58 -0
- package/lib/module/components/ProgressSegmented/index.js.map +1 -0
- package/lib/module/components/ProgressSegmented/styles.js +17 -0
- package/lib/module/components/ProgressSegmented/styles.js.map +1 -0
- package/lib/module/components/Select/SelectTriggerHost.js +7 -0
- package/lib/module/components/Select/SelectTriggerHost.js.map +1 -0
- package/lib/module/components/Select/SelectTriggerHost.web.js +93 -0
- package/lib/module/components/Select/SelectTriggerHost.web.js.map +1 -0
- package/lib/module/components/Select/index.js +14 -14
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/Select/styles.js +29 -53
- package/lib/module/components/Select/styles.js.map +1 -1
- package/lib/module/components/Stack/HStack.js +8 -21
- package/lib/module/components/Stack/HStack.js.map +1 -1
- package/lib/module/components/Stack/VStack.js +8 -21
- package/lib/module/components/Stack/VStack.js.map +1 -1
- package/lib/module/components/Stack/styles.js +40 -0
- package/lib/module/components/Stack/styles.js.map +1 -0
- package/lib/module/components/Text/index.js +19 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/Text/styles.js +19 -0
- package/lib/module/components/Text/styles.js.map +1 -0
- package/lib/module/components/VirtualizedList/index.js +15 -0
- package/lib/module/components/VirtualizedList/index.js.map +1 -0
- package/lib/module/components/index.js +17 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles/index.js +4 -0
- package/lib/module/styles/index.js.map +1 -0
- package/lib/module/styles/primitives.js +119 -0
- package/lib/module/styles/primitives.js.map +1 -0
- package/lib/typescript/components/AlertDialog/index.d.ts +30 -0
- package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -0
- package/lib/typescript/components/Avatar/index.d.ts +40 -0
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -0
- package/lib/typescript/components/Avatar/styles.d.ts +16 -0
- package/lib/typescript/components/Avatar/styles.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet/index.d.ts +61 -0
- package/lib/typescript/components/BottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet/styles.d.ts +16 -0
- package/lib/typescript/components/BottomSheet/styles.d.ts.map +1 -0
- package/lib/typescript/components/Box/Box.d.ts +1 -0
- package/lib/typescript/components/Box/Box.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +6 -3
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +11 -8
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/Card/index.d.ts +30 -0
- package/lib/typescript/components/Card/index.d.ts.map +1 -0
- package/lib/typescript/components/Card/styles.d.ts +6 -0
- package/lib/typescript/components/Card/styles.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/index.d.ts +7 -5
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/styles.d.ts +4 -4
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +27 -0
- package/lib/typescript/components/Chip/index.d.ts.map +1 -0
- package/lib/typescript/components/Chip/styles.d.ts +12 -0
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -0
- package/lib/typescript/components/Dialog/index.d.ts +61 -0
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -0
- package/lib/typescript/components/Dialog/styles.d.ts +14 -0
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -0
- package/lib/typescript/components/Field/FieldLabel.d.ts +18 -0
- package/lib/typescript/components/Field/FieldLabel.d.ts.map +1 -0
- package/lib/typescript/components/Field/FieldLabel.web.d.ts +16 -0
- package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -0
- package/lib/typescript/components/Field/index.d.ts +26 -0
- package/lib/typescript/components/Field/index.d.ts.map +1 -0
- package/lib/typescript/components/Field/styles.d.ts +16 -0
- package/lib/typescript/components/Field/styles.d.ts.map +1 -0
- package/lib/typescript/components/Form/FormRoot.d.ts +14 -0
- package/lib/typescript/components/Form/FormRoot.d.ts.map +1 -0
- package/lib/typescript/components/Form/FormRoot.web.d.ts +10 -0
- package/lib/typescript/components/Form/FormRoot.web.d.ts.map +1 -0
- package/lib/typescript/components/Form/index.d.ts +7 -0
- package/lib/typescript/components/Form/index.d.ts.map +1 -0
- package/lib/typescript/components/Form/styles.d.ts +2 -0
- package/lib/typescript/components/Form/styles.d.ts.map +1 -0
- package/lib/typescript/components/Heading/index.d.ts +10 -0
- package/lib/typescript/components/Heading/index.d.ts.map +1 -0
- package/lib/typescript/components/Heading/styles.d.ts +6 -0
- package/lib/typescript/components/Heading/styles.d.ts.map +1 -0
- package/lib/typescript/components/Icon/index.d.ts +27 -0
- package/lib/typescript/components/Icon/index.d.ts.map +1 -0
- package/lib/typescript/components/IconButton/index.d.ts +15 -0
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -0
- package/lib/typescript/components/IconButton/styles.d.ts +11 -0
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Image/Image.d.ts +47 -0
- package/lib/typescript/components/Image/Image.d.ts.map +1 -0
- package/lib/typescript/components/Image/index.d.ts +2 -0
- package/lib/typescript/components/Image/index.d.ts.map +1 -0
- package/lib/typescript/components/Input/BaseInput.android.d.ts +3 -0
- package/lib/typescript/components/Input/BaseInput.android.d.ts.map +1 -0
- package/lib/typescript/components/Input/index.d.ts +7 -5
- package/lib/typescript/components/Input/index.d.ts.map +1 -1
- package/lib/typescript/components/Input/styles.d.ts +5 -7
- package/lib/typescript/components/Input/styles.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +26 -0
- package/lib/typescript/components/Link/index.d.ts.map +1 -0
- package/lib/typescript/components/Link/styles.d.ts +6 -0
- package/lib/typescript/components/Link/styles.d.ts.map +1 -0
- package/lib/typescript/components/OtpInput/index.d.ts +11 -0
- package/lib/typescript/components/OtpInput/index.d.ts.map +1 -0
- package/lib/typescript/components/OtpInput/styles.d.ts +14 -0
- package/lib/typescript/components/OtpInput/styles.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar/index.d.ts +17 -0
- package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar/styles.d.ts +5 -0
- package/lib/typescript/components/ProgressBar/styles.d.ts.map +1 -0
- package/lib/typescript/components/ProgressSegmented/index.d.ts +15 -0
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressSegmented/styles.d.ts +8 -0
- package/lib/typescript/components/ProgressSegmented/styles.d.ts.map +1 -0
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts +3 -0
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +1 -0
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +13 -0
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -0
- package/lib/typescript/components/Select/index.d.ts +7 -4
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/styles.d.ts +6 -8
- package/lib/typescript/components/Select/styles.d.ts.map +1 -1
- package/lib/typescript/components/Stack/HStack.d.ts +1 -12
- package/lib/typescript/components/Stack/HStack.d.ts.map +1 -1
- package/lib/typescript/components/Stack/VStack.d.ts +1 -12
- package/lib/typescript/components/Stack/VStack.d.ts.map +1 -1
- package/lib/typescript/components/Stack/styles.d.ts +23 -0
- package/lib/typescript/components/Stack/styles.d.ts.map +1 -0
- package/lib/typescript/components/Switch/index.d.ts +0 -1
- package/lib/typescript/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/components/Text/index.d.ts +9 -1
- package/lib/typescript/components/Text/index.d.ts.map +1 -1
- package/lib/typescript/components/Text/styles.d.ts +6 -0
- package/lib/typescript/components/Text/styles.d.ts.map +1 -0
- package/lib/typescript/components/VirtualizedList/index.d.ts +8 -0
- package/lib/typescript/components/VirtualizedList/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +17 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/styles/index.d.ts +2 -0
- package/lib/typescript/styles/index.d.ts.map +1 -0
- package/lib/typescript/styles/primitives.d.ts +85 -0
- package/lib/typescript/styles/primitives.d.ts.map +1 -0
- package/package.json +15 -6
- package/src/components/AlertDialog/index.tsx +124 -0
- package/src/components/Avatar/index.tsx +172 -0
- package/src/components/Avatar/styles.ts +83 -0
- package/src/components/BottomSheet/index.tsx +316 -0
- package/src/components/BottomSheet/styles.ts +79 -0
- package/src/components/Box/Box.tsx +1 -0
- package/src/components/Button/index.tsx +14 -9
- package/src/components/Button/styles.ts +159 -209
- package/src/components/Card/index.tsx +115 -0
- package/src/components/Card/styles.ts +41 -0
- package/src/components/Checkbox/index.tsx +15 -23
- package/src/components/Checkbox/styles.ts +33 -24
- package/src/components/Chip/index.tsx +91 -0
- package/src/components/Chip/styles.ts +52 -0
- package/src/components/Dialog/index.tsx +304 -0
- package/src/components/Dialog/styles.ts +88 -0
- package/src/components/Field/FieldLabel.tsx +33 -0
- package/src/components/Field/FieldLabel.web.tsx +25 -0
- package/src/components/Field/index.tsx +171 -0
- package/src/components/Field/styles.ts +32 -0
- package/src/components/Form/FormRoot.tsx +20 -0
- package/src/components/Form/FormRoot.web.tsx +12 -0
- package/src/components/Form/index.tsx +38 -0
- package/src/components/Form/styles.ts +3 -0
- package/src/components/Heading/index.tsx +36 -0
- package/src/components/Heading/styles.tsx +25 -0
- package/src/components/Icon/index.tsx +54 -0
- package/src/components/IconButton/index.tsx +92 -0
- package/src/components/IconButton/styles.ts +59 -0
- package/src/components/Image/Image.tsx +77 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/Input/BaseInput.android.tsx +13 -0
- package/src/components/Input/index.tsx +9 -22
- package/src/components/Input/styles.ts +36 -40
- package/src/components/Link/index.tsx +83 -0
- package/src/components/Link/styles.ts +21 -0
- package/src/components/OtpInput/index.tsx +79 -0
- package/src/components/OtpInput/styles.ts +45 -0
- package/src/components/ProgressBar/index.tsx +53 -0
- package/src/components/ProgressBar/styles.ts +9 -0
- package/src/components/ProgressSegmented/index.tsx +81 -0
- package/src/components/ProgressSegmented/styles.ts +20 -0
- package/src/components/Select/SelectTriggerHost.tsx +4 -0
- package/src/components/Select/SelectTriggerHost.web.tsx +136 -0
- package/src/components/Select/index.tsx +14 -14
- package/src/components/Select/styles.ts +68 -75
- package/src/components/Stack/HStack.tsx +8 -19
- package/src/components/Stack/VStack.tsx +8 -23
- package/src/components/Stack/styles.ts +42 -0
- package/src/components/Switch/index.tsx +0 -2
- package/src/components/Text/index.tsx +16 -0
- package/src/components/Text/styles.tsx +25 -0
- package/src/components/VirtualizedList/index.tsx +19 -0
- package/src/components/index.ts +17 -0
- package/src/index.ts +3 -0
- package/src/styles/index.ts +1 -0
- package/src/styles/primitives.ts +107 -0
- package/lib/commonjs/components/Text/Text.js +0 -30
- package/lib/commonjs/components/Text/Text.js.map +0 -1
- package/lib/module/components/Text/Text.js +0 -26
- package/lib/module/components/Text/Text.js.map +0 -1
- package/lib/typescript/components/Text/Text.d.ts +0 -11
- package/lib/typescript/components/Text/Text.d.ts.map +0 -1
- package/src/components/Text/Text.tsx +0 -58
- package/src/components/Text/index.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","ActivityIndicator","Pressable","Text","View","createButton","cn","useStyleContext","withStyleContext","buttonGroupVariants","buttonRootVariants","buttonSpinnerVariants","buttonTextVariants","jsx","_jsx","SCOPE","Root","useButtonStyleContext","ButtonPrimitive","Group","Spinner","
|
|
1
|
+
{"version":3,"names":["forwardRef","ActivityIndicator","Pressable","Text","View","createButton","cn","useStyleContext","withStyleContext","Icon","buttonGroupVariants","buttonIconVariants","buttonRootVariants","buttonSpinnerVariants","buttonTextVariants","jsx","_jsx","SCOPE","Root","useButtonStyleContext","ButtonPrimitive","Group","Spinner","ButtonRoot","variant","color","size","fullWidth","className","children","style","props","ref","computedClassName","context","displayName","ButtonLabel","ButtonGroup","flexDirection","isAttached","groupClassName","ButtonIcon","as","ButtonSpinner","colorClassName","computedColorClassName","Button","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAA2C,OAAO;AACrE,SACEC,iBAAiB,EACjBC,SAAS,EACTC,IAAI,EACJC,IAAI,QAKC,cAAc;AACrB,SAASC,YAAY,QAA2B,oBAAoB;AACpE,SAASC,EAAE,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,eAAe;AACrE,SAASC,IAAI,QAAmB,SAAS;AACzC,SAGEC,mBAAmB,EACnBC,kBAAkB,EAClBC,kBAAkB,EAClBC,qBAAqB,EACrBC,kBAAkB,QACb,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElB,MAAMC,KAAK,GAAG,QAAQ;AAEtB,MAAMC,IAAI,GAAGV,gBAAgB,CAACN,SAAS,EAAEe,KAAK,CAAC;AAE/C,MAAME,qBAAqB,GAAGA,CAAA,KAAMZ,eAAe,CAACU,KAAK,CAAuB;AAEhF,MAAMG,eAAe,GAAGf,YAAY,CAAC;EACnCa,IAAI;EACJf,IAAI;EACJkB,KAAK,EAAEjB,IAAI;EACXkB,OAAO,EAAErB,iBAAiB;EAC1BQ,IAAI,EAAEL;AACR,CAAC,CAAC;;AAEF;AACA;AACA;;AAOA,MAAMmB,UAAU,gBAAGvB,UAAU,CAC3B,CACE;EACEwB,OAAO,GAAG,QAAQ;EAClBC,KAAK,GAAG,QAAQ;EAChBC,IAAI,GAAG,SAAS;EAChBC,S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vC,EAAE,CAACO,qBAAqB,CAAC;IAAEW,OAAO;IAAEC;EAAM,CAAC,CAAC,EAAEmB,cAAc,CAAC;EAE5F,oBACE5B,IAAA,CAACI,eAAe,CAACE,OAAO;IACtBU,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEA,SAAU;IACrBgB,cAAc,EAAEC,sBAAuB;IACvCf,KAAK,EAAEA,KAAM;IAAA,GACTC;EAAK,CACV,CAAC;AAEN,CACF,CAAC;AAEDY,aAAa,CAACR,WAAW,GAAG,gBAAgB;AAS5C,OAAO,MAAMW,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACzB,UAAU,EAAE;EAC9C0B,KAAK,EAAEb,WAAW;EAClBf,KAAK,EAAEgB,WAAW;EAClB5B,IAAI,EAAEgC,UAAU;EAChBnB,OAAO,EAAEqB;AACX,CAAC,CAA4B","ignoreList":[]}
|
|
@@ -2,278 +2,286 @@
|
|
|
2
2
|
|
|
3
3
|
import { Platform } from 'react-native';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/primitives';
|
|
5
6
|
|
|
6
|
-
// TODO:
|
|
7
|
-
// TODO: Create cva wrapper
|
|
7
|
+
// TODO: Validate that `dark:` syntax works with Uniwind `ScopedTheme`
|
|
8
8
|
|
|
9
|
-
export const buttonRootVariants = cva(['flex-row items-center justify-center', 'rounded-
|
|
10
|
-
// TODO: Transition not working on mobile
|
|
11
|
-
'data-[disabled=true]:opacity-60 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:pointer-events-none', 'web:data-[focus-visible=true]:ring-3'], {
|
|
9
|
+
export const buttonRootVariants = cva(['flex-row items-center justify-center', 'rounded-[var(--border-radius-button)]', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', TRANSITION_COLORS, 'data-[disabled=true]:opacity-[--opacity-disabled]', DISABLED_CURSOR, 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-[--color-stroke-focus] web:data-[focus-visible=true]:ring-offset-2'], {
|
|
12
10
|
variants: {
|
|
13
11
|
variant: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
outline: ['bg-transparent
|
|
17
|
-
ghost: ['bg-transparent'
|
|
12
|
+
strong: ['border-b-1 border-black/75'],
|
|
13
|
+
// TODO: Replace with token
|
|
14
|
+
outline: ['bg-transparent', 'border border-stroke-primary'],
|
|
15
|
+
ghost: ['bg-transparent']
|
|
18
16
|
},
|
|
19
17
|
color: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
action: [],
|
|
19
|
+
danger: [],
|
|
20
|
+
warning: [],
|
|
21
|
+
success: [],
|
|
22
|
+
info: []
|
|
24
23
|
},
|
|
25
24
|
size: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
lg: 'h-12 px-6 gap-2.5'
|
|
25
|
+
default: 'h-10 px-4 gap-2',
|
|
26
|
+
small: 'h-8 px-3 gap-1.5'
|
|
29
27
|
},
|
|
30
28
|
fullWidth: {
|
|
31
29
|
true: 'w-full',
|
|
32
30
|
false: ''
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
|
-
compoundVariants: [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
variant: 'solid',
|
|
44
|
-
color: 'secondary',
|
|
45
|
-
className: ['bg-amber-500', Platform.select({
|
|
46
|
-
default: 'data-[active=true]:bg-amber-700',
|
|
47
|
-
web: 'data-[hover=true]:bg-amber-600 data-[active=true]:data-[hover=true]:bg-amber-700'
|
|
48
|
-
})]
|
|
49
|
-
}, {
|
|
50
|
-
variant: 'solid',
|
|
51
|
-
color: 'success',
|
|
52
|
-
className: ['bg-green-500', Platform.select({
|
|
53
|
-
default: 'data-[active=true]:bg-green-700',
|
|
54
|
-
web: 'data-[hover=true]:bg-green-600 data-[active=true]:data-[hover=true]:bg-green-700'
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
// ── strong × color (filled surface) ──────────────────────────────
|
|
35
|
+
{
|
|
36
|
+
variant: 'strong',
|
|
37
|
+
color: 'action',
|
|
38
|
+
className: ['bg-surface-action-strong', Platform.select({
|
|
39
|
+
default: 'data-[active=true]:bg-surface-action-strong-active',
|
|
40
|
+
web: 'data-[hover=true]:bg-surface-action-strong-hover data-[active=true]:data-[hover=true]:bg-surface-action-strong-active'
|
|
55
41
|
})]
|
|
56
42
|
}, {
|
|
57
|
-
variant: '
|
|
43
|
+
variant: 'strong',
|
|
58
44
|
color: 'danger',
|
|
59
|
-
className: ['bg-
|
|
60
|
-
default: 'data-[active=true]:bg-
|
|
61
|
-
web: 'data-[hover=true]:bg-
|
|
45
|
+
className: ['bg-surface-danger-strong', Platform.select({
|
|
46
|
+
default: 'data-[active=true]:bg-surface-danger-strong-active',
|
|
47
|
+
web: 'data-[hover=true]:bg-surface-danger-strong-hover data-[active=true]:data-[hover=true]:bg-surface-danger-strong-active'
|
|
62
48
|
})]
|
|
63
49
|
}, {
|
|
64
|
-
variant: '
|
|
65
|
-
color: '
|
|
66
|
-
className: ['bg-
|
|
67
|
-
default: 'data-[active=true]:bg-
|
|
68
|
-
web: 'data-[hover=true]:bg-
|
|
50
|
+
variant: 'strong',
|
|
51
|
+
color: 'warning',
|
|
52
|
+
className: ['bg-surface-warning-strong', Platform.select({
|
|
53
|
+
default: 'data-[active=true]:bg-amber-600',
|
|
54
|
+
web: 'data-[hover=true]:bg-amber-500 data-[active=true]:data-[hover=true]:bg-amber-600'
|
|
69
55
|
})]
|
|
70
56
|
}, {
|
|
71
|
-
variant: '
|
|
72
|
-
color: 'secondary',
|
|
73
|
-
className: ['bg-amber-200', Platform.select({
|
|
74
|
-
default: 'data-[active=true]:bg-amber-300',
|
|
75
|
-
web: 'data-[hover=true]:bg-amber-300 data-[active=true]:data-[hover=true]:bg-amber-400'
|
|
76
|
-
})]
|
|
77
|
-
}, {
|
|
78
|
-
variant: 'subtle',
|
|
57
|
+
variant: 'strong',
|
|
79
58
|
color: 'success',
|
|
80
|
-
className: ['bg-
|
|
81
|
-
default: 'data-[active=true]:bg-green-
|
|
82
|
-
web: 'data-[hover=true]:bg-green-
|
|
59
|
+
className: ['bg-surface-success-strong', Platform.select({
|
|
60
|
+
default: 'data-[active=true]:bg-green-800',
|
|
61
|
+
web: 'data-[hover=true]:bg-green-700 data-[active=true]:data-[hover=true]:bg-green-800'
|
|
83
62
|
})]
|
|
84
63
|
}, {
|
|
85
|
-
variant: '
|
|
86
|
-
color: '
|
|
87
|
-
className: ['bg-
|
|
88
|
-
default: 'data-[active=true]:bg-
|
|
89
|
-
web: 'data-[hover=true]:bg-
|
|
64
|
+
variant: 'strong',
|
|
65
|
+
color: 'info',
|
|
66
|
+
className: ['bg-surface-info-strong', Platform.select({
|
|
67
|
+
default: 'data-[active=true]:bg-sky-700',
|
|
68
|
+
web: 'data-[hover=true]:bg-sky-600 data-[active=true]:data-[hover=true]:bg-sky-700'
|
|
69
|
+
})]
|
|
70
|
+
},
|
|
71
|
+
// ── outline × color (border + hover/active surface) ─────────────
|
|
72
|
+
{
|
|
73
|
+
variant: 'outline',
|
|
74
|
+
color: 'action',
|
|
75
|
+
className: ['border-stroke-action', Platform.select({
|
|
76
|
+
default: 'data-[active=true]:bg-surface-action-subtle-active',
|
|
77
|
+
web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-subtle-active'
|
|
90
78
|
})]
|
|
91
79
|
}, {
|
|
92
80
|
variant: 'outline',
|
|
93
|
-
color: '
|
|
94
|
-
className: ['border-
|
|
95
|
-
default: 'data-[active=true]:
|
|
96
|
-
web: 'data-[hover=true]:
|
|
81
|
+
color: 'danger',
|
|
82
|
+
className: ['border-stroke-danger', Platform.select({
|
|
83
|
+
default: 'data-[active=true]:bg-surface-danger-subtle-active',
|
|
84
|
+
web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-subtle-active'
|
|
97
85
|
})]
|
|
98
86
|
}, {
|
|
99
87
|
variant: 'outline',
|
|
100
|
-
color: '
|
|
101
|
-
className: ['border-
|
|
102
|
-
default: 'data-[active=true]:
|
|
103
|
-
web: 'data-[hover=true]:
|
|
88
|
+
color: 'warning',
|
|
89
|
+
className: ['border-stroke-warning', Platform.select({
|
|
90
|
+
default: 'data-[active=true]:bg-surface-warning-subtle',
|
|
91
|
+
web: 'data-[hover=true]:bg-surface-warning-tint data-[active=true]:data-[hover=true]:bg-surface-warning-subtle'
|
|
104
92
|
})]
|
|
105
93
|
}, {
|
|
106
94
|
variant: 'outline',
|
|
107
95
|
color: 'success',
|
|
108
|
-
className: ['border-
|
|
109
|
-
default: 'data-[active=true]:
|
|
110
|
-
web: 'data-[hover=true]:
|
|
96
|
+
className: ['border-stroke-success', Platform.select({
|
|
97
|
+
default: 'data-[active=true]:bg-surface-success-subtle',
|
|
98
|
+
web: 'data-[hover=true]:bg-surface-success-tint data-[active=true]:data-[hover=true]:bg-surface-success-subtle'
|
|
111
99
|
})]
|
|
112
100
|
}, {
|
|
113
101
|
variant: 'outline',
|
|
114
|
-
color: '
|
|
115
|
-
className: ['border-
|
|
116
|
-
default: 'data-[active=true]:
|
|
117
|
-
web: 'data-[hover=true]:
|
|
102
|
+
color: 'info',
|
|
103
|
+
className: ['border-stroke-info', Platform.select({
|
|
104
|
+
default: 'data-[active=true]:bg-surface-info-subtle',
|
|
105
|
+
web: 'data-[hover=true]:bg-surface-info-tint data-[active=true]:data-[hover=true]:bg-surface-info-subtle'
|
|
106
|
+
})]
|
|
107
|
+
},
|
|
108
|
+
// ── ghost × color (hover/active surface fills) ──────────────────
|
|
109
|
+
{
|
|
110
|
+
variant: 'ghost',
|
|
111
|
+
color: 'action',
|
|
112
|
+
className: [Platform.select({
|
|
113
|
+
default: 'data-[active=true]:bg-surface-action-subtle-active',
|
|
114
|
+
web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-subtle-active'
|
|
118
115
|
})]
|
|
119
116
|
}, {
|
|
120
117
|
variant: 'ghost',
|
|
121
|
-
color: '
|
|
122
|
-
className: [
|
|
123
|
-
default: 'data-[active=true]:bg-
|
|
124
|
-
web: 'data-[hover=true]:bg-
|
|
118
|
+
color: 'danger',
|
|
119
|
+
className: [Platform.select({
|
|
120
|
+
default: 'data-[active=true]:bg-surface-danger-subtle-active',
|
|
121
|
+
web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-subtle-active'
|
|
125
122
|
})]
|
|
126
123
|
}, {
|
|
127
124
|
variant: 'ghost',
|
|
128
|
-
color: '
|
|
129
|
-
className: [
|
|
130
|
-
default: 'data-[active=true]:bg-
|
|
131
|
-
web: 'data-[hover=true]:bg-
|
|
125
|
+
color: 'warning',
|
|
126
|
+
className: [Platform.select({
|
|
127
|
+
default: 'data-[active=true]:bg-surface-warning-subtle',
|
|
128
|
+
web: 'data-[hover=true]:bg-surface-warning-tint data-[active=true]:data-[hover=true]:bg-surface-warning-subtle'
|
|
132
129
|
})]
|
|
133
130
|
}, {
|
|
134
131
|
variant: 'ghost',
|
|
135
132
|
color: 'success',
|
|
136
|
-
className: [
|
|
137
|
-
default: 'data-[active=true]:bg-
|
|
138
|
-
web: 'data-[hover=true]:bg-
|
|
133
|
+
className: [Platform.select({
|
|
134
|
+
default: 'data-[active=true]:bg-surface-success-subtle',
|
|
135
|
+
web: 'data-[hover=true]:bg-surface-success-tint data-[active=true]:data-[hover=true]:bg-surface-success-subtle'
|
|
139
136
|
})]
|
|
140
137
|
}, {
|
|
141
138
|
variant: 'ghost',
|
|
142
|
-
color: '
|
|
143
|
-
className: [
|
|
144
|
-
default: 'data-[active=true]:bg-
|
|
145
|
-
web: 'data-[hover=true]:bg-
|
|
139
|
+
color: 'info',
|
|
140
|
+
className: [Platform.select({
|
|
141
|
+
default: 'data-[active=true]:bg-surface-info-subtle',
|
|
142
|
+
web: 'data-[hover=true]:bg-surface-info-tint data-[active=true]:data-[hover=true]:bg-surface-info-subtle'
|
|
146
143
|
})]
|
|
147
144
|
}],
|
|
148
145
|
defaultVariants: {
|
|
149
|
-
variant: '
|
|
150
|
-
color: '
|
|
151
|
-
size: '
|
|
146
|
+
variant: 'strong',
|
|
147
|
+
color: 'action',
|
|
148
|
+
size: 'default',
|
|
152
149
|
fullWidth: false
|
|
153
150
|
}
|
|
154
151
|
});
|
|
155
152
|
export const buttonTextVariants = cva(['font-medium', 'text-center'], {
|
|
156
153
|
variants: {
|
|
157
154
|
variant: {
|
|
158
|
-
|
|
159
|
-
subtle: [],
|
|
155
|
+
strong: [],
|
|
160
156
|
outline: [],
|
|
161
157
|
ghost: []
|
|
162
158
|
},
|
|
163
159
|
color: {
|
|
164
|
-
|
|
165
|
-
|
|
160
|
+
action: [],
|
|
161
|
+
danger: [],
|
|
162
|
+
warning: [],
|
|
166
163
|
success: [],
|
|
167
|
-
|
|
164
|
+
info: []
|
|
168
165
|
},
|
|
169
166
|
size: {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
lg: 'text-lg'
|
|
167
|
+
default: 'text-base',
|
|
168
|
+
small: 'text-sm'
|
|
173
169
|
}
|
|
174
170
|
},
|
|
175
|
-
compoundVariants: [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
171
|
+
compoundVariants: [
|
|
172
|
+
// ── strong × color (filled foreground text) ──────────────────────
|
|
173
|
+
{
|
|
174
|
+
variant: 'strong',
|
|
175
|
+
color: 'action',
|
|
176
|
+
className: 'text-content-action-on-strong'
|
|
179
177
|
}, {
|
|
180
|
-
variant: '
|
|
181
|
-
color: '
|
|
182
|
-
className: 'text-
|
|
178
|
+
variant: 'strong',
|
|
179
|
+
color: 'danger',
|
|
180
|
+
className: 'text-content-danger-on-strong'
|
|
183
181
|
}, {
|
|
184
|
-
variant: '
|
|
182
|
+
variant: 'strong',
|
|
183
|
+
color: 'warning',
|
|
184
|
+
className: 'text-content-warning-on-strong'
|
|
185
|
+
}, {
|
|
186
|
+
variant: 'strong',
|
|
185
187
|
color: 'success',
|
|
186
|
-
className: 'text-
|
|
188
|
+
className: 'text-content-success-on-strong'
|
|
187
189
|
}, {
|
|
188
|
-
variant: '
|
|
189
|
-
color: '
|
|
190
|
-
className: 'text-
|
|
190
|
+
variant: 'strong',
|
|
191
|
+
color: 'info',
|
|
192
|
+
className: 'text-content-info-on-strong'
|
|
193
|
+
},
|
|
194
|
+
// ── outline/ghost × color (transparent foreground text) ──────────
|
|
195
|
+
{
|
|
196
|
+
variant: ['outline', 'ghost'],
|
|
197
|
+
color: 'action',
|
|
198
|
+
className: 'text-content-action'
|
|
191
199
|
}, {
|
|
192
200
|
variant: ['outline', 'ghost'],
|
|
193
|
-
color: '
|
|
194
|
-
className:
|
|
195
|
-
default: 'data-[active=true]:text-blue-700',
|
|
196
|
-
web: 'data-[hover=true]:text-blue-600 data-[active=true]:data-[hover=true]:text-blue-700'
|
|
197
|
-
})]
|
|
201
|
+
color: 'danger',
|
|
202
|
+
className: 'text-content-danger'
|
|
198
203
|
}, {
|
|
199
204
|
variant: ['outline', 'ghost'],
|
|
200
|
-
color: '
|
|
201
|
-
className:
|
|
202
|
-
default: 'data-[active=true]:text-amber-800',
|
|
203
|
-
web: 'data-[hover=true]:text-amber-700 data-[active=true]:data-[hover=true]:text-amber-800'
|
|
204
|
-
})]
|
|
205
|
+
color: 'warning',
|
|
206
|
+
className: 'text-content-warning'
|
|
205
207
|
}, {
|
|
206
208
|
variant: ['outline', 'ghost'],
|
|
207
209
|
color: 'success',
|
|
208
|
-
className:
|
|
209
|
-
default: 'data-[active=true]:text-green-800',
|
|
210
|
-
web: 'data-[hover=true]:text-green-700 data-[active=true]:data-[hover=true]:text-green-800'
|
|
211
|
-
})]
|
|
210
|
+
className: 'text-content-success'
|
|
212
211
|
}, {
|
|
213
212
|
variant: ['outline', 'ghost'],
|
|
214
|
-
color: '
|
|
215
|
-
className:
|
|
216
|
-
default: 'data-[active=true]:text-red-700',
|
|
217
|
-
web: 'data-[hover=true]:text-red-600 data-[active=true]:data-[hover=true]:text-red-700'
|
|
218
|
-
})]
|
|
213
|
+
color: 'info',
|
|
214
|
+
className: 'text-content-info'
|
|
219
215
|
}],
|
|
220
216
|
defaultVariants: {
|
|
221
|
-
variant: '
|
|
222
|
-
color: '
|
|
223
|
-
size: '
|
|
217
|
+
variant: 'strong',
|
|
218
|
+
color: 'action',
|
|
219
|
+
size: 'default'
|
|
224
220
|
}
|
|
225
221
|
});
|
|
226
222
|
export const buttonSpinnerVariants = cva([], {
|
|
227
223
|
variants: {
|
|
228
224
|
variant: {
|
|
229
|
-
|
|
230
|
-
subtle: [],
|
|
225
|
+
strong: [],
|
|
231
226
|
outline: [],
|
|
232
227
|
ghost: []
|
|
233
228
|
},
|
|
234
229
|
color: {
|
|
235
|
-
|
|
236
|
-
|
|
230
|
+
action: [],
|
|
231
|
+
danger: [],
|
|
232
|
+
warning: [],
|
|
237
233
|
success: [],
|
|
238
|
-
|
|
234
|
+
info: []
|
|
239
235
|
}
|
|
240
236
|
},
|
|
241
|
-
compoundVariants: [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
237
|
+
compoundVariants: [
|
|
238
|
+
// ── strong × color ───────────────────────────────────────────────
|
|
239
|
+
{
|
|
240
|
+
variant: 'strong',
|
|
241
|
+
color: 'action',
|
|
242
|
+
className: 'accent-[var(--color-content-action-on-strong)]'
|
|
245
243
|
}, {
|
|
246
|
-
variant: '
|
|
247
|
-
color: '
|
|
248
|
-
className: 'accent-
|
|
244
|
+
variant: 'strong',
|
|
245
|
+
color: 'danger',
|
|
246
|
+
className: 'accent-[var(--color-content-danger-on-strong)]'
|
|
249
247
|
}, {
|
|
250
|
-
variant: '
|
|
248
|
+
variant: 'strong',
|
|
249
|
+
color: 'warning',
|
|
250
|
+
className: 'accent-[var(--color-content-warning-on-strong)]'
|
|
251
|
+
}, {
|
|
252
|
+
variant: 'strong',
|
|
251
253
|
color: 'success',
|
|
252
|
-
className: 'accent-
|
|
254
|
+
className: 'accent-[var(--color-content-success-on-strong)]'
|
|
253
255
|
}, {
|
|
254
|
-
variant: '
|
|
255
|
-
color: '
|
|
256
|
-
className: 'accent-
|
|
256
|
+
variant: 'strong',
|
|
257
|
+
color: 'info',
|
|
258
|
+
className: 'accent-[var(--color-content-info-on-strong)]'
|
|
259
|
+
},
|
|
260
|
+
// ── outline/ghost × color ────────────────────────────────────────
|
|
261
|
+
{
|
|
262
|
+
variant: ['outline', 'ghost'],
|
|
263
|
+
color: 'action',
|
|
264
|
+
className: 'accent-[var(--color-content-action)]'
|
|
257
265
|
}, {
|
|
258
266
|
variant: ['outline', 'ghost'],
|
|
259
|
-
color: '
|
|
260
|
-
className: 'accent-
|
|
267
|
+
color: 'danger',
|
|
268
|
+
className: 'accent-[var(--color-content-danger)]'
|
|
261
269
|
}, {
|
|
262
270
|
variant: ['outline', 'ghost'],
|
|
263
|
-
color: '
|
|
264
|
-
className: 'accent-
|
|
271
|
+
color: 'warning',
|
|
272
|
+
className: 'accent-[var(--color-content-warning)]'
|
|
265
273
|
}, {
|
|
266
274
|
variant: ['outline', 'ghost'],
|
|
267
275
|
color: 'success',
|
|
268
|
-
className: 'accent-
|
|
276
|
+
className: 'accent-[var(--color-content-success)]'
|
|
269
277
|
}, {
|
|
270
278
|
variant: ['outline', 'ghost'],
|
|
271
|
-
color: '
|
|
272
|
-
className: 'accent-
|
|
279
|
+
color: 'info',
|
|
280
|
+
className: 'accent-[var(--color-content-info)]'
|
|
273
281
|
}],
|
|
274
282
|
defaultVariants: {
|
|
275
|
-
variant: '
|
|
276
|
-
color: '
|
|
283
|
+
variant: 'strong',
|
|
284
|
+
color: 'action'
|
|
277
285
|
}
|
|
278
286
|
});
|
|
279
287
|
export const buttonGroupVariants = cva([], {
|
|
@@ -306,4 +314,15 @@ export const buttonGroupVariants = cva([], {
|
|
|
306
314
|
isAttached: false
|
|
307
315
|
}
|
|
308
316
|
});
|
|
317
|
+
export const buttonIconVariants = cva([], {
|
|
318
|
+
variants: {
|
|
319
|
+
size: {
|
|
320
|
+
default: 'size-5',
|
|
321
|
+
small: 'size-4'
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
defaultVariants: {
|
|
325
|
+
size: 'default'
|
|
326
|
+
}
|
|
327
|
+
});
|
|
309
328
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","cva","buttonRootVariants","variants","variant","
|
|
1
|
+
{"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","buttonRootVariants","variants","variant","strong","outline","ghost","color","action","danger","warning","success","info","size","default","small","fullWidth","true","false","compoundVariants","className","select","web","defaultVariants","buttonTextVariants","buttonSpinnerVariants","buttonGroupVariants","flexDirection","row","column","isAttached","buttonIconVariants"],"sourceRoot":"../../../../src","sources":["components/Button/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,yBAAyB;;AAE5E;;AAEA,OAAO,MAAMC,kBAAkB,GAAGH,GAAG,CACnC,CACE,sCAAsC,EACtC,uCAAuC,EACvC,wEAAwE,EACxEE,iBAAiB,EACjB,mDAAmD,EACnDD,eAAe,EACf,4IAA4I,CAC7I,EACD;EACEG,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,MAAM,EAAE,CAAC,4BAA4B,CAAC;MAAE;MACxCC,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;MAC3DC,KAAK,EAAE,CAAC,gBAAgB;IAC1B,CAAC;IACDC,KAAK,EAAE;MACLC,MAAM,EAAE,EAAE;MACVC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,EAAE;MACXC,OAAO,EAAE,EAAE;MACXC,IAAI,EAAE;IACR,CAAC;IACDC,IAAI,EAAE;MACJC,OAAO,EAAE,iBAAiB;MAC1BC,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B,OAAO,EAAE,QAAQ;IACjBI,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMmB,mBAAmB,GAAG5B,GAAG,CAAC,EAAE,EAAE;EACzCI,QAAQ,EAAE;IACRyB,aAAa,EAAE;MACbC,GAAG,EAAE/B,QAAQ,CAACwB,MAAM,CAAC;QAAEC,GAAG,EAAE,UAAU;QAAER,OAAO,EAAE;MAAG,CAAC,CAAC;MACtDe,MAAM,EAAEhC,QAAQ,CAACwB,MAAM,CAAC;QAAEC,GAAG,EAAE,UAAU;QAAER,OAAO,EAAE;MAAG,CAAC,CAAC;MACzD,aAAa,EAAEjB,QAAQ,CAACwB,MAAM,CAAC;QAAEC,GAAG,EAAE,kBAAkB;QAAER,OAAO,EAAE;MAAG,CAAC,CAAC;MACxE,gBAAgB,EAAEjB,QAAQ,CAACwB,MAAM,CAAC;QAAEC,GAAG,EAAE,kBAAkB;QAAER,OAAO,EAAE;MAAG,CAAC;IAC5E,CAAC;IACDgB,UAAU,EAAE;MACVb,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE;IACT;EACF,CAAC;EACDK,eAAe,EAAE;IACfI,aAAa,EAAE,KAAK;IACpBG,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,OAAO,MAAMC,kBAAkB,GAAGjC,GAAG,CAAC,EAAE,EAAE;EACxCI,QAAQ,EAAE;IACRW,IAAI,EAAE;MACJC,OAAO,EAAE,QAAQ;MACjBC,KAAK,EAAE;IACT;EACF,CAAC;EACDQ,eAAe,EAAE;IACfV,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { cn } from '@cdx-ui/utils';
|
|
6
|
+
import { cardContentVariants, cardFooterVariants, cardHeaderVariants, cardRootVariants } from './styles';
|
|
7
|
+
|
|
8
|
+
// =============================================================================
|
|
9
|
+
// STYLED ROOT COMPONENT
|
|
10
|
+
// =============================================================================
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const CardRoot = /*#__PURE__*/forwardRef(({
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
style,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
18
|
+
const computedClassName = cn(cardRootVariants(), className);
|
|
19
|
+
return /*#__PURE__*/_jsx(View, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
className: computedClassName,
|
|
22
|
+
style: style,
|
|
23
|
+
...props,
|
|
24
|
+
children: children
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
CardRoot.displayName = 'Card';
|
|
28
|
+
|
|
29
|
+
// =============================================================================
|
|
30
|
+
// STYLED HEADER COMPONENT
|
|
31
|
+
// =============================================================================
|
|
32
|
+
|
|
33
|
+
const CardHeader = /*#__PURE__*/forwardRef(({
|
|
34
|
+
className,
|
|
35
|
+
children,
|
|
36
|
+
style,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) => {
|
|
39
|
+
const computedClassName = cn(cardHeaderVariants(), className);
|
|
40
|
+
return /*#__PURE__*/_jsx(View, {
|
|
41
|
+
ref: ref,
|
|
42
|
+
className: computedClassName,
|
|
43
|
+
style: style,
|
|
44
|
+
...props,
|
|
45
|
+
children: children
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
CardHeader.displayName = 'Card.Header';
|
|
49
|
+
|
|
50
|
+
// =============================================================================
|
|
51
|
+
// STYLED CONTENT COMPONENT
|
|
52
|
+
// =============================================================================
|
|
53
|
+
|
|
54
|
+
const CardContent = /*#__PURE__*/forwardRef(({
|
|
55
|
+
className,
|
|
56
|
+
children,
|
|
57
|
+
style,
|
|
58
|
+
...props
|
|
59
|
+
}, ref) => {
|
|
60
|
+
const computedClassName = cn(cardContentVariants(), className);
|
|
61
|
+
return /*#__PURE__*/_jsx(View, {
|
|
62
|
+
ref: ref,
|
|
63
|
+
className: computedClassName,
|
|
64
|
+
style: style,
|
|
65
|
+
...props,
|
|
66
|
+
children: children
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
CardContent.displayName = 'Card.Content';
|
|
70
|
+
|
|
71
|
+
// =============================================================================
|
|
72
|
+
// STYLED FOOTER COMPONENT
|
|
73
|
+
// =============================================================================
|
|
74
|
+
|
|
75
|
+
const CardFooter = /*#__PURE__*/forwardRef(({
|
|
76
|
+
className,
|
|
77
|
+
children,
|
|
78
|
+
style,
|
|
79
|
+
...props
|
|
80
|
+
}, ref) => {
|
|
81
|
+
const computedClassName = cn(cardFooterVariants(), className);
|
|
82
|
+
return /*#__PURE__*/_jsx(View, {
|
|
83
|
+
ref: ref,
|
|
84
|
+
className: computedClassName,
|
|
85
|
+
style: style,
|
|
86
|
+
...props,
|
|
87
|
+
children: children
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
CardFooter.displayName = 'Card.Footer';
|
|
91
|
+
|
|
92
|
+
// =============================================================================
|
|
93
|
+
// COMPOUND COMPONENT
|
|
94
|
+
// =============================================================================
|
|
95
|
+
|
|
96
|
+
export const Card = CardRoot;
|
|
97
|
+
Card.Header = CardHeader;
|
|
98
|
+
Card.Content = CardContent;
|
|
99
|
+
Card.Footer = CardFooter;
|
|
100
|
+
//# sourceMappingURL=index.js.map
|