@cdx-ui/components 0.0.1-beta.6 → 0.0.1-beta.60
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 +36 -18
- package/lib/commonjs/components/AlertDialog/index.js +5 -4
- package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +1 -1
- package/lib/commonjs/components/Avatar/styles.js +36 -29
- package/lib/commonjs/components/Avatar/styles.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +16 -1
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +85 -26
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CLAUDE.md +90 -0
- package/lib/commonjs/components/Card/index.js +22 -4
- package/lib/commonjs/components/Card/index.js.map +1 -1
- package/lib/commonjs/components/Card/styles.js +27 -4
- package/lib/commonjs/components/Card/styles.js.map +1 -1
- package/lib/commonjs/components/Checkbox/index.js +5 -29
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +41 -47
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +78 -9
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +207 -21
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/Dialog/index.js +71 -16
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Dialog/styles.js +60 -14
- package/lib/commonjs/components/Dialog/styles.js.map +1 -1
- package/lib/commonjs/components/Field/index.js +8 -2
- package/lib/commonjs/components/Field/index.js.map +1 -1
- package/lib/commonjs/components/Field/styles.js +4 -4
- package/lib/commonjs/components/Field/styles.js.map +1 -1
- package/lib/commonjs/components/Heading/styles.js +1 -1
- package/lib/commonjs/components/Heading/styles.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +3 -4
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/index.js +6 -1
- package/lib/commonjs/components/IconButton/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/styles.js +135 -10
- package/lib/commonjs/components/IconButton/styles.js.map +1 -1
- package/lib/commonjs/components/Input/styles.js +7 -6
- package/lib/commonjs/components/Input/styles.js.map +1 -1
- package/lib/commonjs/components/Link/index.js +22 -3
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/Link/styles.js +56 -6
- package/lib/commonjs/components/Link/styles.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +3 -25
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/styles.js +29 -57
- package/lib/commonjs/components/ListItem/styles.js.map +1 -1
- package/lib/commonjs/components/ProgressSegmented/index.js +24 -10
- package/lib/commonjs/components/ProgressSegmented/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js +167 -0
- package/lib/commonjs/components/Radio/index.js.map +1 -0
- package/lib/commonjs/components/Radio/styles.js +31 -0
- package/lib/commonjs/components/Radio/styles.js.map +1 -0
- package/lib/commonjs/components/ScopedTheme/index.js +24 -0
- package/lib/commonjs/components/ScopedTheme/index.js.map +1 -0
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js +4 -0
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +1 -1
- package/lib/commonjs/components/Select/index.js +9 -3
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/Select/styles.js +17 -20
- package/lib/commonjs/components/Select/styles.js.map +1 -1
- package/lib/commonjs/components/Text/styles.js +2 -2
- package/lib/commonjs/components/Text/styles.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js +251 -0
- package/lib/commonjs/components/Tile/index.js.map +1 -0
- package/lib/commonjs/components/Tile/styles.js +52 -0
- package/lib/commonjs/components/Tile/styles.js.map +1 -0
- package/lib/commonjs/components/index.js +36 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/figma/AlertDialog.Description.figma.js +20 -0
- package/lib/commonjs/figma/AlertDialog.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Footer.figma.js +41 -0
- package/lib/commonjs/figma/AlertDialog.Footer.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Header.figma.js +28 -0
- package/lib/commonjs/figma/AlertDialog.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Text.figma.js +20 -0
- package/lib/commonjs/figma/AlertDialog.Text.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.Title.figma.js +27 -0
- package/lib/commonjs/figma/AlertDialog.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/AlertDialog.figma.js +43 -0
- package/lib/commonjs/figma/AlertDialog.figma.js.map +1 -0
- package/lib/commonjs/figma/Avatar.figma.js +57 -0
- package/lib/commonjs/figma/Avatar.figma.js.map +1 -0
- package/lib/commonjs/figma/Button.figma.js +28 -15
- package/lib/commonjs/figma/Button.figma.js.map +1 -1
- package/lib/commonjs/figma/CLAUDE.md +30 -0
- package/lib/commonjs/figma/Card.Header.figma.js +28 -0
- package/lib/commonjs/figma/Card.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/Card.figma.js +42 -0
- package/lib/commonjs/figma/Card.figma.js.map +1 -0
- package/lib/commonjs/figma/Checkbox.figma.js +55 -0
- package/lib/commonjs/figma/Checkbox.figma.js.map +1 -0
- package/lib/commonjs/figma/Chip.figma.js +68 -0
- package/lib/commonjs/figma/Chip.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Description.figma.js +20 -0
- package/lib/commonjs/figma/Dialog.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Footer.figma.js +30 -0
- package/lib/commonjs/figma/Dialog.Footer.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Header.figma.js +29 -0
- package/lib/commonjs/figma/Dialog.Header.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Text.figma.js +20 -0
- package/lib/commonjs/figma/Dialog.Text.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.Title.figma.js +27 -0
- package/lib/commonjs/figma/Dialog.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/Dialog.figma.js +51 -0
- package/lib/commonjs/figma/Dialog.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Input.figma.js +57 -0
- package/lib/commonjs/figma/Field.Input.figma.js.map +1 -0
- package/lib/commonjs/figma/Field.Select.figma.js +57 -0
- package/lib/commonjs/figma/Field.Select.figma.js.map +1 -0
- package/lib/commonjs/figma/Heading.figma.js +30 -0
- package/lib/commonjs/figma/Heading.figma.js.map +1 -0
- package/lib/commonjs/figma/Icon.figma.js +20 -0
- package/lib/commonjs/figma/Icon.figma.js.map +1 -0
- package/lib/commonjs/figma/IconButton.figma.js +47 -0
- package/lib/commonjs/figma/IconButton.figma.js.map +1 -0
- package/lib/commonjs/figma/Input.figma.js +52 -0
- package/lib/commonjs/figma/Input.figma.js.map +1 -0
- package/lib/commonjs/figma/Link.figma.js +30 -0
- package/lib/commonjs/figma/Link.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.Description.figma.js +23 -0
- package/lib/commonjs/figma/ListItem.Description.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js +24 -0
- package/lib/commonjs/figma/ListItem.LeadingSlot.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.Meta.figma.js +23 -0
- package/lib/commonjs/figma/ListItem.Meta.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.SectionHeader.figma.js +24 -0
- package/lib/commonjs/figma/ListItem.SectionHeader.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.Title.figma.js +23 -0
- package/lib/commonjs/figma/ListItem.Title.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js +24 -0
- package/lib/commonjs/figma/ListItem.TrailingSlot.figma.js.map +1 -0
- package/lib/commonjs/figma/ListItem.figma.js +50 -0
- package/lib/commonjs/figma/ListItem.figma.js.map +1 -0
- package/lib/commonjs/figma/ProgressSegmented.figma.js +39 -0
- package/lib/commonjs/figma/ProgressSegmented.figma.js.map +1 -0
- package/lib/commonjs/figma/Radio.figma.js +40 -0
- package/lib/commonjs/figma/Radio.figma.js.map +1 -0
- package/lib/commonjs/figma/Select.figma.js +53 -0
- package/lib/commonjs/figma/Select.figma.js.map +1 -0
- package/lib/commonjs/figma/Text.figma.js +32 -0
- package/lib/commonjs/figma/Text.figma.js.map +1 -0
- package/lib/commonjs/figma/icons.figma.batch.js +27 -0
- package/lib/commonjs/figma/icons.figma.batch.js.map +1 -0
- package/lib/commonjs/figma/icons.figma.batch.json +17705 -0
- package/lib/commonjs/hooks/index.js +19 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js +246 -0
- package/lib/commonjs/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
- package/lib/commonjs/index.js +24 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/metro/withCdxMetroConfig.js +7 -18
- package/lib/commonjs/metro/withCdxMetroConfig.js.map +1 -1
- package/lib/commonjs/metro/withForgeMetroConfig.js +24 -0
- package/lib/commonjs/metro/withForgeMetroConfig.js.map +1 -0
- package/lib/commonjs/navigation/forgeTabIcon.js +43 -0
- package/lib/commonjs/navigation/forgeTabIcon.js.map +1 -0
- package/lib/commonjs/navigation/forgeTabIcon.native.js +35 -0
- package/lib/commonjs/navigation/forgeTabIcon.native.js.map +1 -0
- package/lib/commonjs/navigation/index.js +13 -0
- package/lib/commonjs/navigation/index.js.map +1 -0
- package/lib/commonjs/navigation/types.js +38 -0
- package/lib/commonjs/navigation/types.js.map +1 -0
- package/lib/commonjs/styles/primitives.js +43 -6
- package/lib/commonjs/styles/primitives.js.map +1 -1
- package/lib/module/components/AlertDialog/index.js +5 -4
- package/lib/module/components/AlertDialog/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +1 -1
- package/lib/module/components/Avatar/styles.js +36 -29
- package/lib/module/components/Avatar/styles.js.map +1 -1
- package/lib/module/components/Button/index.js +17 -2
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/styles.js +85 -26
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CLAUDE.md +90 -0
- package/lib/module/components/Card/index.js +23 -4
- package/lib/module/components/Card/index.js.map +1 -1
- package/lib/module/components/Card/styles.js +27 -4
- package/lib/module/components/Card/styles.js.map +1 -1
- package/lib/module/components/Checkbox/index.js +6 -30
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +43 -48
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +82 -13
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +206 -20
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/Dialog/index.js +74 -19
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Dialog/styles.js +60 -14
- package/lib/module/components/Dialog/styles.js.map +1 -1
- package/lib/module/components/Field/index.js +9 -3
- package/lib/module/components/Field/index.js.map +1 -1
- package/lib/module/components/Field/styles.js +4 -4
- package/lib/module/components/Field/styles.js.map +1 -1
- package/lib/module/components/Heading/styles.js +1 -1
- package/lib/module/components/Heading/styles.js.map +1 -1
- package/lib/module/components/Icon/index.js +3 -4
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/IconButton/index.js +6 -1
- package/lib/module/components/IconButton/index.js.map +1 -1
- package/lib/module/components/IconButton/styles.js +135 -10
- package/lib/module/components/IconButton/styles.js.map +1 -1
- package/lib/module/components/Input/styles.js +7 -6
- package/lib/module/components/Input/styles.js.map +1 -1
- package/lib/module/components/Link/index.js +25 -6
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/Link/styles.js +55 -6
- package/lib/module/components/Link/styles.js.map +1 -1
- package/lib/module/components/ListItem/index.js +3 -25
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/ListItem/styles.js +30 -58
- package/lib/module/components/ListItem/styles.js.map +1 -1
- package/lib/module/components/ProgressSegmented/index.js +25 -11
- package/lib/module/components/ProgressSegmented/index.js.map +1 -1
- package/lib/module/components/Radio/index.js +164 -0
- package/lib/module/components/Radio/index.js.map +1 -0
- package/lib/module/components/Radio/styles.js +27 -0
- package/lib/module/components/Radio/styles.js.map +1 -0
- package/lib/module/components/ScopedTheme/index.js +19 -0
- package/lib/module/components/ScopedTheme/index.js.map +1 -0
- package/lib/module/components/Select/SelectTriggerHost.web.js +4 -0
- package/lib/module/components/Select/SelectTriggerHost.web.js.map +1 -1
- package/lib/module/components/Select/index.js +10 -4
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/Select/styles.js +18 -21
- package/lib/module/components/Select/styles.js.map +1 -1
- package/lib/module/components/Text/styles.js +2 -2
- package/lib/module/components/Text/styles.js.map +1 -1
- package/lib/module/components/Tile/index.js +243 -0
- package/lib/module/components/Tile/index.js.map +1 -0
- package/lib/module/components/Tile/styles.js +48 -0
- package/lib/module/components/Tile/styles.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/figma/AlertDialog.Description.figma.js +14 -0
- package/lib/module/figma/AlertDialog.Description.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Footer.figma.js +35 -0
- package/lib/module/figma/AlertDialog.Footer.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Header.figma.js +22 -0
- package/lib/module/figma/AlertDialog.Header.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Text.figma.js +14 -0
- package/lib/module/figma/AlertDialog.Text.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.Title.figma.js +21 -0
- package/lib/module/figma/AlertDialog.Title.figma.js.map +1 -0
- package/lib/module/figma/AlertDialog.figma.js +37 -0
- package/lib/module/figma/AlertDialog.figma.js.map +1 -0
- package/lib/module/figma/Avatar.figma.js +51 -0
- package/lib/module/figma/Avatar.figma.js.map +1 -0
- package/lib/module/figma/Button.figma.js +28 -15
- package/lib/module/figma/Button.figma.js.map +1 -1
- package/lib/module/figma/CLAUDE.md +30 -0
- package/lib/module/figma/Card.Header.figma.js +22 -0
- package/lib/module/figma/Card.Header.figma.js.map +1 -0
- package/lib/module/figma/Card.figma.js +36 -0
- package/lib/module/figma/Card.figma.js.map +1 -0
- package/lib/module/figma/Checkbox.figma.js +49 -0
- package/lib/module/figma/Checkbox.figma.js.map +1 -0
- package/lib/module/figma/Chip.figma.js +62 -0
- package/lib/module/figma/Chip.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Description.figma.js +14 -0
- package/lib/module/figma/Dialog.Description.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Footer.figma.js +24 -0
- package/lib/module/figma/Dialog.Footer.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Header.figma.js +23 -0
- package/lib/module/figma/Dialog.Header.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Text.figma.js +14 -0
- package/lib/module/figma/Dialog.Text.figma.js.map +1 -0
- package/lib/module/figma/Dialog.Title.figma.js +21 -0
- package/lib/module/figma/Dialog.Title.figma.js.map +1 -0
- package/lib/module/figma/Dialog.figma.js +45 -0
- package/lib/module/figma/Dialog.figma.js.map +1 -0
- package/lib/module/figma/Field.Input.figma.js +51 -0
- package/lib/module/figma/Field.Input.figma.js.map +1 -0
- package/lib/module/figma/Field.Select.figma.js +51 -0
- package/lib/module/figma/Field.Select.figma.js.map +1 -0
- package/lib/module/figma/Heading.figma.js +24 -0
- package/lib/module/figma/Heading.figma.js.map +1 -0
- package/lib/module/figma/Icon.figma.js +14 -0
- package/lib/module/figma/Icon.figma.js.map +1 -0
- package/lib/module/figma/IconButton.figma.js +41 -0
- package/lib/module/figma/IconButton.figma.js.map +1 -0
- package/lib/module/figma/Input.figma.js +46 -0
- package/lib/module/figma/Input.figma.js.map +1 -0
- package/lib/module/figma/Link.figma.js +24 -0
- package/lib/module/figma/Link.figma.js.map +1 -0
- package/lib/module/figma/ListItem.Description.figma.js +17 -0
- package/lib/module/figma/ListItem.Description.figma.js.map +1 -0
- package/lib/module/figma/ListItem.LeadingSlot.figma.js +18 -0
- package/lib/module/figma/ListItem.LeadingSlot.figma.js.map +1 -0
- package/lib/module/figma/ListItem.Meta.figma.js +17 -0
- package/lib/module/figma/ListItem.Meta.figma.js.map +1 -0
- package/lib/module/figma/ListItem.SectionHeader.figma.js +18 -0
- package/lib/module/figma/ListItem.SectionHeader.figma.js.map +1 -0
- package/lib/module/figma/ListItem.Title.figma.js +17 -0
- package/lib/module/figma/ListItem.Title.figma.js.map +1 -0
- package/lib/module/figma/ListItem.TrailingSlot.figma.js +18 -0
- package/lib/module/figma/ListItem.TrailingSlot.figma.js.map +1 -0
- package/lib/module/figma/ListItem.figma.js +44 -0
- package/lib/module/figma/ListItem.figma.js.map +1 -0
- package/lib/module/figma/ProgressSegmented.figma.js +33 -0
- package/lib/module/figma/ProgressSegmented.figma.js.map +1 -0
- package/lib/module/figma/Radio.figma.js +34 -0
- package/lib/module/figma/Radio.figma.js.map +1 -0
- package/lib/module/figma/Select.figma.js +47 -0
- package/lib/module/figma/Select.figma.js.map +1 -0
- package/lib/module/figma/Text.figma.js +26 -0
- package/lib/module/figma/Text.figma.js.map +1 -0
- package/lib/module/figma/icons.figma.batch.js +22 -0
- package/lib/module/figma/icons.figma.batch.js.map +1 -0
- package/lib/module/figma/icons.figma.batch.json +17705 -0
- package/lib/module/hooks/index.js +4 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useForgeBottomTabScreenOptions.js +242 -0
- package/lib/module/hooks/useForgeBottomTabScreenOptions.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/metro/withCdxMetroConfig.js +3 -17
- package/lib/module/metro/withCdxMetroConfig.js.map +1 -1
- package/lib/module/metro/withForgeMetroConfig.js +20 -0
- package/lib/module/metro/withForgeMetroConfig.js.map +1 -0
- package/lib/module/navigation/forgeTabIcon.js +39 -0
- package/lib/module/navigation/forgeTabIcon.js.map +1 -0
- package/lib/module/navigation/forgeTabIcon.native.js +31 -0
- package/lib/module/navigation/forgeTabIcon.native.js.map +1 -0
- package/lib/module/navigation/index.js +4 -0
- package/lib/module/navigation/index.js.map +1 -0
- package/lib/module/navigation/types.js +36 -0
- package/lib/module/navigation/types.js.map +1 -0
- package/lib/module/styles/primitives.js +43 -6
- package/lib/module/styles/primitives.js.map +1 -1
- package/lib/typescript/components/AlertDialog/index.d.ts +3 -2
- package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/styles.d.ts +4 -4
- package/lib/typescript/components/Avatar/styles.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +13 -1
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +5 -3
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/Card/index.d.ts +4 -3
- package/lib/typescript/components/Card/index.d.ts.map +1 -1
- package/lib/typescript/components/Card/styles.d.ts +13 -3
- package/lib/typescript/components/Card/styles.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/index.d.ts +1 -2
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/styles.d.ts +4 -14
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +19 -6
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +13 -4
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/index.d.ts +16 -10
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +16 -5
- package/lib/typescript/components/Dialog/styles.d.ts.map +1 -1
- package/lib/typescript/components/Field/FieldLabel.web.d.ts +2 -2
- package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +1 -1
- package/lib/typescript/components/Field/index.d.ts.map +1 -1
- package/lib/typescript/components/Field/styles.d.ts.map +1 -1
- package/lib/typescript/components/Heading/styles.d.ts +1 -1
- package/lib/typescript/components/Icon/index.d.ts +5 -5
- package/lib/typescript/components/Icon/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/index.d.ts +3 -3
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/styles.d.ts +6 -2
- package/lib/typescript/components/IconButton/styles.d.ts.map +1 -1
- package/lib/typescript/components/Input/styles.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +2 -2
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/styles.d.ts +9 -2
- package/lib/typescript/components/Link/styles.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/styles.d.ts +3 -10
- package/lib/typescript/components/ListItem/styles.d.ts.map +1 -1
- package/lib/typescript/components/ProgressSegmented/index.d.ts +14 -3
- package/lib/typescript/components/ProgressSegmented/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +40 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -0
- package/lib/typescript/components/Radio/styles.d.ts +8 -0
- package/lib/typescript/components/Radio/styles.d.ts.map +1 -0
- package/lib/typescript/components/ScopedTheme/index.d.ts +16 -0
- package/lib/typescript/components/ScopedTheme/index.d.ts.map +1 -0
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +3 -0
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +1 -1
- package/lib/typescript/components/Select/index.d.ts +1 -1
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/styles.d.ts.map +1 -1
- package/lib/typescript/components/Stack/styles.d.ts +2 -2
- package/lib/typescript/components/Text/styles.d.ts +1 -1
- package/lib/typescript/components/Tile/index.d.ts +70 -0
- package/lib/typescript/components/Tile/index.d.ts.map +1 -0
- package/lib/typescript/components/Tile/styles.d.ts +18 -0
- package/lib/typescript/components/Tile/styles.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +3 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/figma/AlertDialog.Description.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Footer.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Text.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.Title.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/AlertDialog.figma.d.ts +8 -0
- package/lib/typescript/figma/AlertDialog.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Avatar.figma.d.ts +11 -0
- package/lib/typescript/figma/Avatar.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Button.figma.d.ts.map +1 -1
- package/lib/typescript/figma/Card.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/Card.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Card.figma.d.ts +8 -0
- package/lib/typescript/figma/Card.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Checkbox.figma.d.ts +8 -0
- package/lib/typescript/figma/Checkbox.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Chip.figma.d.ts +8 -0
- package/lib/typescript/figma/Chip.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Description.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Footer.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Footer.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Header.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Header.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Text.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.Title.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Dialog.figma.d.ts +8 -0
- package/lib/typescript/figma/Dialog.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Input.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Input.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Field.Select.figma.d.ts +8 -0
- package/lib/typescript/figma/Field.Select.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Heading.figma.d.ts +8 -0
- package/lib/typescript/figma/Heading.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Icon.figma.d.ts +8 -0
- package/lib/typescript/figma/Icon.figma.d.ts.map +1 -0
- package/lib/typescript/figma/IconButton.figma.d.ts +8 -0
- package/lib/typescript/figma/IconButton.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Input.figma.d.ts +8 -0
- package/lib/typescript/figma/Input.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Link.figma.d.ts +8 -0
- package/lib/typescript/figma/Link.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.Description.figma.d.ts +11 -0
- package/lib/typescript/figma/ListItem.Description.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.LeadingSlot.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.Meta.figma.d.ts +11 -0
- package/lib/typescript/figma/ListItem.Meta.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.SectionHeader.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.Title.figma.d.ts +11 -0
- package/lib/typescript/figma/ListItem.Title.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.TrailingSlot.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ListItem.figma.d.ts +8 -0
- package/lib/typescript/figma/ListItem.figma.d.ts.map +1 -0
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts +8 -0
- package/lib/typescript/figma/ProgressSegmented.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Radio.figma.d.ts +8 -0
- package/lib/typescript/figma/Radio.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Select.figma.d.ts +8 -0
- package/lib/typescript/figma/Select.figma.d.ts.map +1 -0
- package/lib/typescript/figma/Text.figma.d.ts +11 -0
- package/lib/typescript/figma/Text.figma.d.ts.map +1 -0
- package/lib/typescript/figma/icons.figma.batch.d.ts +14 -0
- package/lib/typescript/figma/icons.figma.batch.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +2 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts +137 -0
- package/lib/typescript/hooks/useForgeBottomTabScreenOptions.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/metro/withCdxMetroConfig.d.ts +4 -18
- package/lib/typescript/metro/withCdxMetroConfig.d.ts.map +1 -1
- package/lib/typescript/metro/withForgeMetroConfig.d.ts +19 -0
- package/lib/typescript/metro/withForgeMetroConfig.d.ts.map +1 -0
- package/lib/typescript/navigation/forgeTabIcon.d.ts +27 -0
- package/lib/typescript/navigation/forgeTabIcon.d.ts.map +1 -0
- package/lib/typescript/navigation/forgeTabIcon.native.d.ts +15 -0
- package/lib/typescript/navigation/forgeTabIcon.native.d.ts.map +1 -0
- package/lib/typescript/navigation/index.d.ts +4 -0
- package/lib/typescript/navigation/index.d.ts.map +1 -0
- package/lib/typescript/navigation/types.d.ts +37 -0
- package/lib/typescript/navigation/types.d.ts.map +1 -0
- package/lib/typescript/styles/primitives.d.ts +38 -0
- package/lib/typescript/styles/primitives.d.ts.map +1 -1
- package/package.json +10 -8
- package/src/components/AlertDialog/index.tsx +8 -6
- package/src/components/Avatar/index.tsx +1 -1
- package/src/components/Avatar/styles.ts +49 -34
- package/src/components/Button/index.tsx +39 -5
- package/src/components/Button/styles.ts +56 -27
- package/src/components/CLAUDE.md +90 -0
- package/src/components/Card/index.tsx +41 -16
- package/src/components/Card/styles.ts +42 -15
- package/src/components/Checkbox/index.tsx +8 -19
- package/src/components/Checkbox/styles.ts +84 -86
- package/src/components/Chip/index.tsx +104 -27
- package/src/components/Chip/styles.ts +232 -18
- package/src/components/Dialog/index.tsx +95 -29
- package/src/components/Dialog/styles.ts +72 -30
- package/src/components/Field/FieldLabel.web.tsx +1 -1
- package/src/components/Field/index.tsx +10 -3
- package/src/components/Field/styles.ts +5 -4
- package/src/components/Heading/styles.ts +1 -1
- package/src/components/Icon/index.tsx +6 -7
- package/src/components/IconButton/index.tsx +7 -6
- package/src/components/IconButton/styles.ts +136 -10
- package/src/components/Input/styles.ts +15 -9
- package/src/components/Link/index.tsx +22 -9
- package/src/components/Link/styles.ts +49 -9
- package/src/components/ListItem/index.tsx +8 -23
- package/src/components/ListItem/styles.ts +50 -81
- package/src/components/ProgressSegmented/index.tsx +50 -14
- package/src/components/Radio/index.tsx +192 -0
- package/src/components/Radio/styles.ts +59 -0
- package/src/components/ScopedTheme/index.tsx +17 -0
- package/src/components/Select/SelectTriggerHost.web.tsx +8 -1
- package/src/components/Select/index.tsx +9 -4
- package/src/components/Select/styles.ts +49 -51
- package/src/components/Text/styles.ts +2 -2
- package/src/components/Tile/index.tsx +296 -0
- package/src/components/Tile/styles.ts +82 -0
- package/src/components/index.ts +3 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/useForgeBottomTabScreenOptions.ts +245 -0
- package/src/index.ts +2 -0
- package/src/metro/withCdxMetroConfig.ts +4 -29
- package/src/metro/withForgeMetroConfig.ts +29 -0
- package/src/navigation/forgeTabIcon.native.ts +36 -0
- package/src/navigation/forgeTabIcon.ts +33 -0
- package/src/navigation/index.ts +3 -0
- package/src/navigation/types.ts +54 -0
- package/src/styles/primitives.ts +43 -6
|
@@ -6,43 +6,74 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Chip = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _primitives = require("@cdx-ui/primitives");
|
|
9
10
|
var _utils = require("@cdx-ui/utils");
|
|
11
|
+
var _Avatar = require("../Avatar");
|
|
10
12
|
var _Icon = require("../Icon");
|
|
11
13
|
var _styles = require("./styles");
|
|
12
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
15
|
const SCOPE = 'CHIP';
|
|
14
|
-
const
|
|
16
|
+
const RootView = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
|
|
17
|
+
const RootPressable = (0, _utils.withStyleContext)(_reactNative.Pressable, SCOPE);
|
|
18
|
+
const ChipPrimitive = (0, _primitives.createChip)({
|
|
19
|
+
View: RootView,
|
|
20
|
+
Pressable: RootPressable
|
|
21
|
+
});
|
|
15
22
|
const useChipStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
|
|
16
23
|
|
|
17
24
|
// =============================================================================
|
|
18
|
-
//
|
|
25
|
+
// ROOT
|
|
19
26
|
// =============================================================================
|
|
20
27
|
|
|
21
28
|
const ChipRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
22
29
|
children,
|
|
30
|
+
variant = 'tint',
|
|
31
|
+
size = 'default',
|
|
23
32
|
color = 'default',
|
|
24
33
|
className,
|
|
25
34
|
style,
|
|
35
|
+
asChild,
|
|
26
36
|
...props
|
|
27
37
|
}, ref) => {
|
|
38
|
+
const parentContextValues = (0, _utils.useParentContext)();
|
|
39
|
+
const styleContextValues = (0, _react.useMemo)(() => ({
|
|
40
|
+
...parentContextValues,
|
|
41
|
+
[SCOPE]: {
|
|
42
|
+
variant,
|
|
43
|
+
size,
|
|
44
|
+
color
|
|
45
|
+
}
|
|
46
|
+
}), [parentContextValues, variant, size, color]);
|
|
28
47
|
const computedClassName = (0, _utils.cn)((0, _styles.chipRootVariants)({
|
|
48
|
+
variant,
|
|
49
|
+
size,
|
|
29
50
|
color
|
|
30
51
|
}), className);
|
|
31
|
-
|
|
52
|
+
const root = /*#__PURE__*/(0, _jsxRuntime.jsx)(ChipPrimitive, {
|
|
32
53
|
ref: ref,
|
|
54
|
+
asChild: asChild,
|
|
33
55
|
className: computedClassName,
|
|
34
|
-
style: style,
|
|
35
56
|
context: {
|
|
57
|
+
variant,
|
|
58
|
+
size,
|
|
36
59
|
color
|
|
37
60
|
},
|
|
61
|
+
style: style,
|
|
38
62
|
...props,
|
|
39
63
|
children: children
|
|
40
64
|
});
|
|
65
|
+
if (asChild) {
|
|
66
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
|
|
67
|
+
value: styleContextValues,
|
|
68
|
+
children: root
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return root;
|
|
41
72
|
});
|
|
42
73
|
ChipRoot.displayName = 'Chip';
|
|
43
74
|
|
|
44
75
|
// =============================================================================
|
|
45
|
-
//
|
|
76
|
+
// LABEL
|
|
46
77
|
// =============================================================================
|
|
47
78
|
|
|
48
79
|
const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
@@ -52,9 +83,13 @@ const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
52
83
|
...props
|
|
53
84
|
}, ref) => {
|
|
54
85
|
const {
|
|
86
|
+
size,
|
|
87
|
+
variant,
|
|
55
88
|
color
|
|
56
89
|
} = useChipStyleContext();
|
|
57
90
|
const computedClassName = (0, _utils.cn)((0, _styles.chipLabelVariants)({
|
|
91
|
+
size,
|
|
92
|
+
variant,
|
|
58
93
|
color
|
|
59
94
|
}), className);
|
|
60
95
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
@@ -68,20 +103,24 @@ const ChipLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
68
103
|
ChipLabel.displayName = 'Chip.Label';
|
|
69
104
|
|
|
70
105
|
// =============================================================================
|
|
71
|
-
//
|
|
106
|
+
// ICON
|
|
72
107
|
// =============================================================================
|
|
73
108
|
|
|
74
109
|
const ChipIcon = ({
|
|
75
110
|
className,
|
|
76
111
|
style,
|
|
77
112
|
as,
|
|
113
|
+
slot,
|
|
78
114
|
...props
|
|
79
115
|
}) => {
|
|
80
116
|
const {
|
|
117
|
+
size,
|
|
81
118
|
color
|
|
82
119
|
} = useChipStyleContext();
|
|
83
120
|
const computedClassName = (0, _utils.cn)((0, _styles.chipIconVariants)({
|
|
84
|
-
|
|
121
|
+
size,
|
|
122
|
+
color,
|
|
123
|
+
slot
|
|
85
124
|
}), className);
|
|
86
125
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
87
126
|
as: as,
|
|
@@ -93,11 +132,41 @@ const ChipIcon = ({
|
|
|
93
132
|
ChipIcon.displayName = 'Chip.Icon';
|
|
94
133
|
|
|
95
134
|
// =============================================================================
|
|
96
|
-
//
|
|
135
|
+
// AVATAR
|
|
136
|
+
// =============================================================================
|
|
137
|
+
|
|
138
|
+
const ChipAvatar = ({
|
|
139
|
+
className,
|
|
140
|
+
style,
|
|
141
|
+
children,
|
|
142
|
+
...props
|
|
143
|
+
}) => {
|
|
144
|
+
const {
|
|
145
|
+
size
|
|
146
|
+
} = useChipStyleContext();
|
|
147
|
+
// chipAvatarVariants sets w/h and the leading slot negative margin.
|
|
148
|
+
// Avatar renders with size="sm" (its smallest named size) but chipAvatarVariants
|
|
149
|
+
// overrides the w/h via tailwind-merge so the chip size wins.
|
|
150
|
+
const computedClassName = (0, _utils.cn)((0, _styles.chipAvatarVariants)({
|
|
151
|
+
size
|
|
152
|
+
}), className);
|
|
153
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
154
|
+
size: "sm",
|
|
155
|
+
className: computedClassName,
|
|
156
|
+
style: style,
|
|
157
|
+
...props,
|
|
158
|
+
children: children
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
ChipAvatar.displayName = 'Chip.Avatar';
|
|
162
|
+
|
|
163
|
+
// =============================================================================
|
|
164
|
+
// COMPOUND EXPORT
|
|
97
165
|
// =============================================================================
|
|
98
166
|
|
|
99
167
|
const Chip = exports.Chip = Object.assign(ChipRoot, {
|
|
100
168
|
Label: ChipLabel,
|
|
101
|
-
Icon: ChipIcon
|
|
169
|
+
Icon: ChipIcon,
|
|
170
|
+
Avatar: ChipAvatar
|
|
102
171
|
});
|
|
103
172
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_utils","_Icon","_styles","_jsxRuntime","SCOPE","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Avatar","_Icon","_styles","_jsxRuntime","SCOPE","RootView","withStyleContext","View","RootPressable","Pressable","ChipPrimitive","createChip","useChipStyleContext","useStyleContext","ChipRoot","forwardRef","children","variant","size","color","className","style","asChild","props","ref","parentContextValues","useParentContext","styleContextValues","useMemo","computedClassName","cn","chipRootVariants","root","jsx","context","ParentContext","Provider","value","displayName","ChipLabel","chipLabelVariants","Text","ChipIcon","as","slot","chipIconVariants","Icon","ChipAvatar","chipAvatarVariants","Avatar","Chip","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Chip/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GA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AGE,MAAM,CAACC,MAAM,CAACvC,QAAQ,EAAE;EAC1CwC,KAAK,EAAEf,SAAS;EAChBO,IAAI,EAAEJ,QAAQ;EACdO,MAAM,EAAEF;AACV,CAAC,CAA0B","ignoreList":[]}
|
|
@@ -3,50 +3,236 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.chipRootVariants = exports.chipLabelVariants = exports.chipIconVariants = void 0;
|
|
6
|
+
exports.chipRootVariants = exports.chipLabelVariants = exports.chipIconVariants = exports.chipAvatarVariants = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
7
8
|
var _classVarianceAuthority = require("class-variance-authority");
|
|
8
|
-
|
|
9
|
+
var _primitives = require("../../styles/primitives");
|
|
10
|
+
const chipInteractiveRoot = [_primitives.TRANSITION_COLORS, 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _primitives.DISABLED_CURSOR, _reactNative.Platform.select({
|
|
11
|
+
web: ['outline-none', 'web:data-[focus-visible=true]:ring-2 web:data-[focus-visible=true]:ring-stroke-focus web:data-[focus-visible=true]:ring-offset-2'].join(' '),
|
|
12
|
+
default: ''
|
|
13
|
+
})];
|
|
14
|
+
const chipRootVariants = exports.chipRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center justify-center self-start overflow-hidden', ...chipInteractiveRoot], {
|
|
9
15
|
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
tint: [],
|
|
18
|
+
outline: ['bg-transparent', 'border']
|
|
19
|
+
},
|
|
10
20
|
color: {
|
|
11
|
-
default:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
default: [],
|
|
22
|
+
action: [],
|
|
23
|
+
danger: [],
|
|
24
|
+
warning: [],
|
|
25
|
+
success: [],
|
|
26
|
+
info: []
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
default: 'h-8 max-h-8 min-h-8 gap-1.5 px-3 rounded-lg',
|
|
30
|
+
small: 'h-6 max-h-6 min-h-6 gap-1 px-1.5 rounded-md',
|
|
31
|
+
xsmall: 'h-4 max-h-4 min-h-4 gap-0.5 px-1 rounded-sm'
|
|
16
32
|
}
|
|
17
33
|
},
|
|
34
|
+
compoundVariants: [
|
|
35
|
+
// ── tint × color ────────────────────────────────────────────────────
|
|
36
|
+
{
|
|
37
|
+
variant: 'tint',
|
|
38
|
+
color: 'default',
|
|
39
|
+
className: ['bg-surface-neutral-tint', _reactNative.Platform.select({
|
|
40
|
+
default: 'data-[active=true]:bg-surface-neutral-tint-active',
|
|
41
|
+
web: 'data-[hover=true]:bg-surface-neutral-tint-hover data-[active=true]:data-[hover=true]:bg-surface-neutral-tint-active'
|
|
42
|
+
})]
|
|
43
|
+
}, {
|
|
44
|
+
variant: 'tint',
|
|
45
|
+
color: 'action',
|
|
46
|
+
className: ['bg-surface-action-tint', _reactNative.Platform.select({
|
|
47
|
+
default: 'data-[active=true]:bg-surface-action-tint-active',
|
|
48
|
+
web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-tint-active'
|
|
49
|
+
})]
|
|
50
|
+
}, {
|
|
51
|
+
variant: 'tint',
|
|
52
|
+
color: 'danger',
|
|
53
|
+
className: ['bg-surface-danger-tint', _reactNative.Platform.select({
|
|
54
|
+
default: 'data-[active=true]:bg-surface-danger-tint-active',
|
|
55
|
+
web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-tint-active'
|
|
56
|
+
})]
|
|
57
|
+
}, {
|
|
58
|
+
variant: 'tint',
|
|
59
|
+
color: 'warning',
|
|
60
|
+
className: ['bg-surface-warning-tint', _reactNative.Platform.select({
|
|
61
|
+
default: 'data-[active=true]:bg-surface-warning-tint-active',
|
|
62
|
+
web: 'data-[hover=true]:bg-surface-warning-tint-hover data-[active=true]:data-[hover=true]:bg-surface-warning-tint-active'
|
|
63
|
+
})]
|
|
64
|
+
}, {
|
|
65
|
+
variant: 'tint',
|
|
66
|
+
color: 'success',
|
|
67
|
+
className: ['bg-surface-success-tint', _reactNative.Platform.select({
|
|
68
|
+
default: 'data-[active=true]:bg-surface-success-tint-active',
|
|
69
|
+
web: 'data-[hover=true]:bg-surface-success-tint-hover data-[active=true]:data-[hover=true]:bg-surface-success-tint-active'
|
|
70
|
+
})]
|
|
71
|
+
}, {
|
|
72
|
+
variant: 'tint',
|
|
73
|
+
color: 'info',
|
|
74
|
+
className: ['bg-surface-info-tint', _reactNative.Platform.select({
|
|
75
|
+
default: 'data-[active=true]:bg-surface-info-tint-active',
|
|
76
|
+
web: 'data-[hover=true]:bg-surface-info-tint-hover data-[active=true]:data-[hover=true]:bg-surface-info-tint-active'
|
|
77
|
+
})]
|
|
78
|
+
},
|
|
79
|
+
// ── outline × color ───────────────────────────────────────────────────
|
|
80
|
+
{
|
|
81
|
+
variant: 'outline',
|
|
82
|
+
color: 'default',
|
|
83
|
+
className: ['border-stroke-primary', _reactNative.Platform.select({
|
|
84
|
+
default: 'data-[active=true]:bg-surface-neutral-tint',
|
|
85
|
+
web: 'data-[hover=true]:bg-surface-neutral-tint-hover data-[active=true]:data-[hover=true]:bg-surface-neutral-tint-active'
|
|
86
|
+
})]
|
|
87
|
+
}, {
|
|
88
|
+
variant: 'outline',
|
|
89
|
+
color: 'action',
|
|
90
|
+
className: ['border-stroke-action', _reactNative.Platform.select({
|
|
91
|
+
default: 'data-[active=true]:bg-surface-action-tint',
|
|
92
|
+
web: 'data-[hover=true]:bg-surface-action-tint-hover data-[active=true]:data-[hover=true]:bg-surface-action-tint-active'
|
|
93
|
+
})]
|
|
94
|
+
}, {
|
|
95
|
+
variant: 'outline',
|
|
96
|
+
color: 'danger',
|
|
97
|
+
className: ['border-stroke-danger', _reactNative.Platform.select({
|
|
98
|
+
default: 'data-[active=true]:bg-surface-danger-tint',
|
|
99
|
+
web: 'data-[hover=true]:bg-surface-danger-tint-hover data-[active=true]:data-[hover=true]:bg-surface-danger-tint-active'
|
|
100
|
+
})]
|
|
101
|
+
}, {
|
|
102
|
+
variant: 'outline',
|
|
103
|
+
color: 'warning',
|
|
104
|
+
className: ['border-stroke-warning', _reactNative.Platform.select({
|
|
105
|
+
default: 'data-[active=true]:bg-surface-warning-tint',
|
|
106
|
+
web: 'data-[hover=true]:bg-surface-warning-tint-hover data-[active=true]:data-[hover=true]:bg-surface-warning-tint-active'
|
|
107
|
+
})]
|
|
108
|
+
}, {
|
|
109
|
+
variant: 'outline',
|
|
110
|
+
color: 'success',
|
|
111
|
+
className: ['border-stroke-success', _reactNative.Platform.select({
|
|
112
|
+
default: 'data-[active=true]:bg-surface-success-tint',
|
|
113
|
+
web: 'data-[hover=true]:bg-surface-success-tint-hover data-[active=true]:data-[hover=true]:bg-surface-success-tint-active'
|
|
114
|
+
})]
|
|
115
|
+
}, {
|
|
116
|
+
variant: 'outline',
|
|
117
|
+
color: 'info',
|
|
118
|
+
className: ['border-stroke-info', _reactNative.Platform.select({
|
|
119
|
+
default: 'data-[active=true]:bg-surface-info-tint',
|
|
120
|
+
web: 'data-[hover=true]:bg-surface-info-tint-hover data-[active=true]:data-[hover=true]:bg-surface-info-tint-active'
|
|
121
|
+
})]
|
|
122
|
+
}],
|
|
18
123
|
defaultVariants: {
|
|
19
|
-
|
|
124
|
+
variant: 'tint',
|
|
125
|
+
color: 'default',
|
|
126
|
+
size: 'default'
|
|
20
127
|
}
|
|
21
128
|
});
|
|
22
|
-
|
|
23
|
-
// TODO: letter-spacing values (tracking-wider) are not working on web, but the font-mono-medium is.
|
|
24
|
-
const chipLabelVariants = exports.chipLabelVariants = (0, _classVarianceAuthority.cva)(['label-sm font-mono-medium'], {
|
|
129
|
+
const chipLabelVariants = exports.chipLabelVariants = (0, _classVarianceAuthority.cva)(['font-medium'], {
|
|
25
130
|
variants: {
|
|
131
|
+
variant: {
|
|
132
|
+
tint: 'text-content-primary',
|
|
133
|
+
outline: 'text-content-primary'
|
|
134
|
+
},
|
|
26
135
|
color: {
|
|
27
|
-
default:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
136
|
+
default: [],
|
|
137
|
+
action: [],
|
|
138
|
+
danger: [],
|
|
139
|
+
warning: [],
|
|
140
|
+
success: [],
|
|
141
|
+
info: []
|
|
142
|
+
},
|
|
143
|
+
size: {
|
|
144
|
+
default: 'body-md',
|
|
145
|
+
small: 'body-sm',
|
|
146
|
+
xsmall: 'body-xs'
|
|
32
147
|
}
|
|
33
148
|
},
|
|
149
|
+
compoundVariants: [{
|
|
150
|
+
variant: 'outline',
|
|
151
|
+
color: 'action',
|
|
152
|
+
className: 'text-content-action'
|
|
153
|
+
}, {
|
|
154
|
+
variant: 'outline',
|
|
155
|
+
color: 'danger',
|
|
156
|
+
className: 'text-content-danger'
|
|
157
|
+
}, {
|
|
158
|
+
variant: 'outline',
|
|
159
|
+
color: 'warning',
|
|
160
|
+
className: 'text-content-warning'
|
|
161
|
+
}, {
|
|
162
|
+
variant: 'outline',
|
|
163
|
+
color: 'success',
|
|
164
|
+
className: 'text-content-success'
|
|
165
|
+
}, {
|
|
166
|
+
variant: 'outline',
|
|
167
|
+
color: 'info',
|
|
168
|
+
className: 'text-content-info'
|
|
169
|
+
}],
|
|
34
170
|
defaultVariants: {
|
|
35
|
-
|
|
171
|
+
variant: 'tint',
|
|
172
|
+
color: 'default',
|
|
173
|
+
size: 'default'
|
|
36
174
|
}
|
|
37
175
|
});
|
|
38
|
-
const chipIconVariants = exports.chipIconVariants = (0, _classVarianceAuthority.cva)(['
|
|
176
|
+
const chipIconVariants = exports.chipIconVariants = (0, _classVarianceAuthority.cva)(['shrink-0'], {
|
|
39
177
|
variants: {
|
|
178
|
+
size: {
|
|
179
|
+
default: 'size-5',
|
|
180
|
+
small: 'size-4',
|
|
181
|
+
xsmall: 'size-2.5'
|
|
182
|
+
},
|
|
40
183
|
color: {
|
|
41
184
|
default: 'text-content-primary',
|
|
42
|
-
|
|
43
|
-
|
|
185
|
+
action: 'text-content-action',
|
|
186
|
+
danger: 'text-content-danger',
|
|
187
|
+
warning: 'text-content-warning',
|
|
44
188
|
success: 'text-content-success',
|
|
45
|
-
|
|
189
|
+
info: 'text-content-info'
|
|
190
|
+
},
|
|
191
|
+
slot: {
|
|
192
|
+
leading: '',
|
|
193
|
+
trailing: ''
|
|
46
194
|
}
|
|
47
195
|
},
|
|
196
|
+
compoundVariants: [{
|
|
197
|
+
slot: 'leading',
|
|
198
|
+
size: 'default',
|
|
199
|
+
className: '-ml-1.5'
|
|
200
|
+
}, {
|
|
201
|
+
slot: 'leading',
|
|
202
|
+
size: 'small',
|
|
203
|
+
className: '-ml-0.5'
|
|
204
|
+
}, {
|
|
205
|
+
slot: 'leading',
|
|
206
|
+
size: 'xsmall',
|
|
207
|
+
className: '-ml-px'
|
|
208
|
+
}, {
|
|
209
|
+
slot: 'trailing',
|
|
210
|
+
size: 'default',
|
|
211
|
+
className: '-mr-1.5'
|
|
212
|
+
}, {
|
|
213
|
+
slot: 'trailing',
|
|
214
|
+
size: 'small',
|
|
215
|
+
className: '-mr-0.5'
|
|
216
|
+
}, {
|
|
217
|
+
slot: 'trailing',
|
|
218
|
+
size: 'xsmall',
|
|
219
|
+
className: '-mr-px'
|
|
220
|
+
}],
|
|
48
221
|
defaultVariants: {
|
|
222
|
+
size: 'default',
|
|
49
223
|
color: 'default'
|
|
50
224
|
}
|
|
51
225
|
});
|
|
226
|
+
const chipAvatarVariants = exports.chipAvatarVariants = (0, _classVarianceAuthority.cva)(['shrink-0 rounded-full overflow-hidden'], {
|
|
227
|
+
variants: {
|
|
228
|
+
size: {
|
|
229
|
+
default: 'size-5 -ml-1.5',
|
|
230
|
+
small: 'size-4 -ml-0.5',
|
|
231
|
+
xsmall: 'size-2.5 -ml-px'
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
defaultVariants: {
|
|
235
|
+
size: 'default'
|
|
236
|
+
}
|
|
237
|
+
});
|
|
52
238
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_classVarianceAuthority","_primitives","chipInteractiveRoot","TRANSITION_COLORS","DISABLED_CURSOR","Platform","select","web","join","default","chipRootVariants","exports","cva","variants","variant","tint","outline","color","action","danger","warning","success","info","size","small","xsmall","compoundVariants","className","defaultVariants","chipLabelVariants","chipIconVariants","slot","leading","trailing","chipAvatarVariants"],"sourceRoot":"../../../../src","sources":["components/Chip/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,MAAMG,mBAAmB,GAAG,CAC1BC,6BAAiB,EACjB,wDAAwD,EACxDC,2BAAe,EACfC,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,CACH,cAAc,EACd,kIAAkI,CACnI,CAACC,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE;AACX,CAAC,CAAC,CACH;AAEM,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,2BAAG,EACjC,CAAC,iEAAiE,EAAE,GAAGV,mBAAmB,CAAC,EAC3F;EACEW,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,IAAI,EAAE,EAAE;MACRC,OAAO,EAAE,CAAC,gBAAgB,EAAE,QAAQ;IACtC,CAAC;IACDC,KAAK,EAAE;MACLR,OAAO,EAAE,EAAE;MACXS,MAAM,EAAE,EAAE;MACVC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,EAAE;MACXC,OAAO,EAAE,EAAE;MACXC,IAAI,EAAE;IACR,CAAC;IACDC,IAAI,EAAE;MACJd,OAAO,EAAE,6CAA6C;MACtDe,KAAK,EAAE,6CAA6C;MACpDC,MAAM,EAAE;IACV;EACF,CAAC;EACDC,gBAAgB,EAAE;EAChB;EACA;IACEZ,OAAO,EAAE,MAAM;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@@ -48,11 +48,11 @@ const DialogPrimitive = (0, _primitives.createDialog)({
|
|
|
48
48
|
Root,
|
|
49
49
|
Trigger: _reactNative.Pressable,
|
|
50
50
|
Overlay: StyledOverlay,
|
|
51
|
-
|
|
51
|
+
Popup: _reactNative.View,
|
|
52
52
|
Header: _reactNative.View,
|
|
53
53
|
Title: _reactNative.Text,
|
|
54
54
|
Description: _reactNative.Text,
|
|
55
|
-
|
|
55
|
+
Content: _reactNative.View,
|
|
56
56
|
Footer: _reactNative.View,
|
|
57
57
|
Close: _reactNative.Pressable
|
|
58
58
|
});
|
|
@@ -63,6 +63,7 @@ const DialogPrimitive = (0, _primitives.createDialog)({
|
|
|
63
63
|
|
|
64
64
|
const DialogRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
65
65
|
size = 'md',
|
|
66
|
+
fullBleed = false,
|
|
66
67
|
className,
|
|
67
68
|
children,
|
|
68
69
|
style,
|
|
@@ -72,7 +73,8 @@ const DialogRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
72
73
|
className: className,
|
|
73
74
|
style: style,
|
|
74
75
|
context: {
|
|
75
|
-
size
|
|
76
|
+
size,
|
|
77
|
+
fullBleed
|
|
76
78
|
},
|
|
77
79
|
...props,
|
|
78
80
|
children: children
|
|
@@ -98,10 +100,10 @@ const DialogTrigger = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
98
100
|
DialogTrigger.displayName = 'Dialog.Trigger';
|
|
99
101
|
|
|
100
102
|
// =============================================================================
|
|
101
|
-
// STYLED
|
|
103
|
+
// STYLED POPUP (wraps DialogPrimitive.Popup)
|
|
102
104
|
// =============================================================================
|
|
103
105
|
|
|
104
|
-
const
|
|
106
|
+
const DialogPopup = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
105
107
|
size: sizeProp,
|
|
106
108
|
className,
|
|
107
109
|
children,
|
|
@@ -112,10 +114,10 @@ const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
112
114
|
size: contextSize
|
|
113
115
|
} = useDialogStyleContext();
|
|
114
116
|
const size = sizeProp ?? contextSize;
|
|
115
|
-
const computedClassName = (0, _utils.cn)((0, _styles.
|
|
117
|
+
const computedClassName = (0, _utils.cn)((0, _styles.dialogPopupVariants)({
|
|
116
118
|
size
|
|
117
119
|
}), className);
|
|
118
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Popup, {
|
|
119
121
|
ref: ref,
|
|
120
122
|
className: computedClassName,
|
|
121
123
|
style: style,
|
|
@@ -123,7 +125,7 @@ const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
123
125
|
children: children
|
|
124
126
|
});
|
|
125
127
|
});
|
|
126
|
-
|
|
128
|
+
DialogPopup.displayName = 'Dialog.Popup';
|
|
127
129
|
|
|
128
130
|
// =============================================================================
|
|
129
131
|
// STYLED HEADER
|
|
@@ -150,13 +152,39 @@ DialogHeader.displayName = 'Dialog.Header';
|
|
|
150
152
|
// STYLED TITLE
|
|
151
153
|
// =============================================================================
|
|
152
154
|
|
|
155
|
+
const APPEARANCE_ICON_MAP = {
|
|
156
|
+
danger: _icons.EmergencyHome,
|
|
157
|
+
warning: _icons.Warning,
|
|
158
|
+
success: _icons.CheckCircle
|
|
159
|
+
};
|
|
153
160
|
const DialogTitle = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
161
|
+
appearance = 'default',
|
|
154
162
|
className,
|
|
155
163
|
children,
|
|
156
164
|
style,
|
|
157
165
|
...props
|
|
158
166
|
}, ref) => {
|
|
159
|
-
const computedClassName = (0, _utils.cn)((0, _styles.dialogTitleVariants)(
|
|
167
|
+
const computedClassName = (0, _utils.cn)((0, _styles.dialogTitleVariants)({
|
|
168
|
+
appearance
|
|
169
|
+
}), className);
|
|
170
|
+
const IconComponent = appearance && appearance in APPEARANCE_ICON_MAP ? APPEARANCE_ICON_MAP[appearance] : null;
|
|
171
|
+
if (IconComponent) {
|
|
172
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
173
|
+
className: "flex-row items-center gap-1",
|
|
174
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
175
|
+
as: IconComponent,
|
|
176
|
+
className: (0, _styles.dialogTitleIconVariants)({
|
|
177
|
+
appearance
|
|
178
|
+
})
|
|
179
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Title, {
|
|
180
|
+
ref: ref,
|
|
181
|
+
className: computedClassName,
|
|
182
|
+
style: style,
|
|
183
|
+
...props,
|
|
184
|
+
children: children
|
|
185
|
+
})]
|
|
186
|
+
});
|
|
187
|
+
}
|
|
160
188
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Title, {
|
|
161
189
|
ref: ref,
|
|
162
190
|
className: computedClassName,
|
|
@@ -189,17 +217,43 @@ const DialogDescription = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
189
217
|
DialogDescription.displayName = 'Dialog.Description';
|
|
190
218
|
|
|
191
219
|
// =============================================================================
|
|
192
|
-
// STYLED
|
|
220
|
+
// STYLED CONTENT (wraps DialogPrimitive.Content)
|
|
221
|
+
// =============================================================================
|
|
222
|
+
|
|
223
|
+
const DialogContent = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
224
|
+
className,
|
|
225
|
+
children,
|
|
226
|
+
style,
|
|
227
|
+
...props
|
|
228
|
+
}, ref) => {
|
|
229
|
+
const {
|
|
230
|
+
fullBleed
|
|
231
|
+
} = useDialogStyleContext();
|
|
232
|
+
const computedClassName = (0, _utils.cn)((0, _styles.dialogContentVariants)({
|
|
233
|
+
fullBleed: fullBleed ?? false
|
|
234
|
+
}), className);
|
|
235
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogPrimitive.Content, {
|
|
236
|
+
ref: ref,
|
|
237
|
+
className: computedClassName,
|
|
238
|
+
style: style,
|
|
239
|
+
...props,
|
|
240
|
+
children: children
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
DialogContent.displayName = 'Dialog.Content';
|
|
244
|
+
|
|
245
|
+
// =============================================================================
|
|
246
|
+
// STYLED TEXT
|
|
193
247
|
// =============================================================================
|
|
194
248
|
|
|
195
|
-
const
|
|
249
|
+
const DialogText = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
196
250
|
className,
|
|
197
251
|
children,
|
|
198
252
|
style,
|
|
199
253
|
...props
|
|
200
254
|
}, ref) => {
|
|
201
|
-
const computedClassName = (0, _utils.cn)((0, _styles.
|
|
202
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
255
|
+
const computedClassName = (0, _utils.cn)((0, _styles.dialogTextVariants)(), className);
|
|
256
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
203
257
|
ref: ref,
|
|
204
258
|
className: computedClassName,
|
|
205
259
|
style: style,
|
|
@@ -207,7 +261,7 @@ const DialogBody = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
207
261
|
children: children
|
|
208
262
|
});
|
|
209
263
|
});
|
|
210
|
-
|
|
264
|
+
DialogText.displayName = 'Dialog.Text';
|
|
211
265
|
|
|
212
266
|
// =============================================================================
|
|
213
267
|
// STYLED FOOTER
|
|
@@ -264,11 +318,12 @@ DialogClose.displayName = 'Dialog.Close';
|
|
|
264
318
|
|
|
265
319
|
const Dialog = exports.Dialog = Object.assign(DialogRoot, {
|
|
266
320
|
Trigger: DialogTrigger,
|
|
267
|
-
|
|
321
|
+
Popup: DialogPopup,
|
|
268
322
|
Header: DialogHeader,
|
|
269
323
|
Title: DialogTitle,
|
|
270
324
|
Description: DialogDescription,
|
|
271
|
-
|
|
325
|
+
Content: DialogContent,
|
|
326
|
+
Text: DialogText,
|
|
272
327
|
Footer: DialogFooter,
|
|
273
328
|
Close: DialogClose
|
|
274
329
|
});
|