@seed-design/react 0.0.0-alpha-20260324091316
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 +6 -0
- package/lib/components/ActionButton/ActionButton.cjs +74 -0
- package/lib/components/ActionButton/ActionButton.d.ts +22 -0
- package/lib/components/ActionButton/ActionButton.d.ts.map +1 -0
- package/lib/components/ActionButton/ActionButton.js +51 -0
- package/lib/components/ActionButton/index.cjs +9 -0
- package/lib/components/ActionButton/index.d.ts +2 -0
- package/lib/components/ActionButton/index.d.ts.map +1 -0
- package/lib/components/ActionButton/index.js +1 -0
- package/lib/components/ActionChip/ActionChip.cjs +18 -0
- package/lib/components/ActionChip/ActionChip.d.ts +23 -0
- package/lib/components/ActionChip/ActionChip.d.ts.map +1 -0
- package/lib/components/ActionChip/ActionChip.js +14 -0
- package/lib/components/ActionChip/index.cjs +9 -0
- package/lib/components/ActionChip/index.d.ts +2 -0
- package/lib/components/ActionChip/index.d.ts.map +1 -0
- package/lib/components/ActionChip/index.js +1 -0
- package/lib/components/ActionSheet/ActionSheet.cjs +67 -0
- package/lib/components/ActionSheet/ActionSheet.d.ts +113 -0
- package/lib/components/ActionSheet/ActionSheet.d.ts.map +1 -0
- package/lib/components/ActionSheet/ActionSheet.js +53 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.cjs +19 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts +2 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.d.ts.map +1 -0
- package/lib/components/ActionSheet/ActionSheet.namespace.js +1 -0
- package/lib/components/ActionSheet/index.cjs +21 -0
- package/lib/components/ActionSheet/index.d.ts +3 -0
- package/lib/components/ActionSheet/index.d.ts.map +1 -0
- package/lib/components/ActionSheet/index.js +3 -0
- package/lib/components/Article/Article.cjs +45 -0
- package/lib/components/Article/Article.d.ts +6 -0
- package/lib/components/Article/Article.d.ts.map +1 -0
- package/lib/components/Article/Article.js +22 -0
- package/lib/components/Article/index.cjs +9 -0
- package/lib/components/Article/index.d.ts +2 -0
- package/lib/components/Article/index.d.ts.map +1 -0
- package/lib/components/Article/index.js +1 -0
- package/lib/components/AspectRatio/AspectRatio.cjs +56 -0
- package/lib/components/AspectRatio/AspectRatio.d.ts +23 -0
- package/lib/components/AspectRatio/AspectRatio.d.ts.map +1 -0
- package/lib/components/AspectRatio/AspectRatio.js +33 -0
- package/lib/components/AspectRatio/index.cjs +9 -0
- package/lib/components/AspectRatio/index.d.ts +2 -0
- package/lib/components/AspectRatio/index.d.ts.map +1 -0
- package/lib/components/AspectRatio/index.js +1 -0
- package/lib/components/Avatar/Avatar.cjs +57 -0
- package/lib/components/Avatar/Avatar.d.ts +21 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.js +31 -0
- package/lib/components/Avatar/Avatar.namespace.cjs +13 -0
- package/lib/components/Avatar/Avatar.namespace.d.ts +2 -0
- package/lib/components/Avatar/Avatar.namespace.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.namespace.js +1 -0
- package/lib/components/Avatar/index.cjs +15 -0
- package/lib/components/Avatar/index.d.ts +3 -0
- package/lib/components/Avatar/index.d.ts.map +1 -0
- package/lib/components/Avatar/index.js +3 -0
- package/lib/components/Badge/Badge.cjs +21 -0
- package/lib/components/Badge/Badge.d.ts +7 -0
- package/lib/components/Badge/Badge.d.ts.map +1 -0
- package/lib/components/Badge/Badge.js +17 -0
- package/lib/components/Badge/index.cjs +9 -0
- package/lib/components/Badge/index.d.ts +2 -0
- package/lib/components/Badge/index.d.ts.map +1 -0
- package/lib/components/Badge/index.js +1 -0
- package/lib/components/BottomSheet/BottomSheet.cjs +70 -0
- package/lib/components/BottomSheet/BottomSheet.d.ts +40 -0
- package/lib/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/components/BottomSheet/BottomSheet.js +56 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.cjs +21 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.d.ts +3 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.d.ts.map +1 -0
- package/lib/components/BottomSheet/BottomSheet.namespace.js +2 -0
- package/lib/components/BottomSheet/index.cjs +21 -0
- package/lib/components/BottomSheet/index.d.ts +3 -0
- package/lib/components/BottomSheet/index.d.ts.map +1 -0
- package/lib/components/BottomSheet/index.js +3 -0
- package/lib/components/BottomSheetHandle/BottomSheetHandle.cjs +21 -0
- package/lib/components/BottomSheetHandle/BottomSheetHandle.d.ts +6 -0
- package/lib/components/BottomSheetHandle/BottomSheetHandle.d.ts.map +1 -0
- package/lib/components/BottomSheetHandle/BottomSheetHandle.js +17 -0
- package/lib/components/BottomSheetHandle/index.cjs +9 -0
- package/lib/components/BottomSheetHandle/index.d.ts +2 -0
- package/lib/components/BottomSheetHandle/index.d.ts.map +1 -0
- package/lib/components/BottomSheetHandle/index.js +1 -0
- package/lib/components/Box/Box.cjs +63 -0
- package/lib/components/Box/Box.d.ts +10 -0
- package/lib/components/Box/Box.d.ts.map +1 -0
- package/lib/components/Box/Box.js +40 -0
- package/lib/components/Box/index.cjs +9 -0
- package/lib/components/Box/index.d.ts +2 -0
- package/lib/components/Box/index.d.ts.map +1 -0
- package/lib/components/Box/index.js +1 -0
- package/lib/components/Callout/Callout.cjs +39 -0
- package/lib/components/Callout/Callout.d.ts +23 -0
- package/lib/components/Callout/Callout.d.ts.map +1 -0
- package/lib/components/Callout/Callout.js +30 -0
- package/lib/components/Callout/Callout.namespace.cjs +14 -0
- package/lib/components/Callout/Callout.namespace.d.ts +2 -0
- package/lib/components/Callout/Callout.namespace.d.ts.map +1 -0
- package/lib/components/Callout/Callout.namespace.js +1 -0
- package/lib/components/Callout/index.cjs +16 -0
- package/lib/components/Callout/index.d.ts +3 -0
- package/lib/components/Callout/index.d.ts.map +1 -0
- package/lib/components/Callout/index.js +3 -0
- package/lib/components/Celsius/Celsius.cjs +10 -0
- package/lib/components/Celsius/Celsius.d.ts +6 -0
- package/lib/components/Celsius/Celsius.d.ts.map +1 -0
- package/lib/components/Celsius/Celsius.js +6 -0
- package/lib/components/Celsius/index.cjs +9 -0
- package/lib/components/Celsius/index.d.ts +2 -0
- package/lib/components/Celsius/index.d.ts.map +1 -0
- package/lib/components/Celsius/index.js +1 -0
- package/lib/components/Checkbox/Checkbox.cjs +100 -0
- package/lib/components/Checkbox/Checkbox.d.ts +49 -0
- package/lib/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.js +91 -0
- package/lib/components/Checkbox/Checkbox.namespace.cjs +14 -0
- package/lib/components/Checkbox/Checkbox.namespace.d.ts +2 -0
- package/lib/components/Checkbox/Checkbox.namespace.d.ts.map +1 -0
- package/lib/components/Checkbox/Checkbox.namespace.js +1 -0
- package/lib/components/Checkbox/index.cjs +16 -0
- package/lib/components/Checkbox/index.d.ts +3 -0
- package/lib/components/Checkbox/index.d.ts.map +1 -0
- package/lib/components/Checkbox/index.js +3 -0
- package/lib/components/Chip/Chip.cjs +49 -0
- package/lib/components/Chip/Chip.d.ts +19 -0
- package/lib/components/Chip/Chip.d.ts.map +1 -0
- package/lib/components/Chip/Chip.js +41 -0
- package/lib/components/Chip/Chip.namespace.cjs +13 -0
- package/lib/components/Chip/Chip.namespace.d.ts +2 -0
- package/lib/components/Chip/Chip.namespace.d.ts.map +1 -0
- package/lib/components/Chip/Chip.namespace.js +1 -0
- package/lib/components/Chip/index.cjs +15 -0
- package/lib/components/Chip/index.d.ts +3 -0
- package/lib/components/Chip/index.d.ts.map +1 -0
- package/lib/components/Chip/index.js +3 -0
- package/lib/components/ChipTabs/ChipTabs.cjs +60 -0
- package/lib/components/ChipTabs/ChipTabs.d.ts +22 -0
- package/lib/components/ChipTabs/ChipTabs.d.ts.map +1 -0
- package/lib/components/ChipTabs/ChipTabs.js +51 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.cjs +14 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.d.ts +2 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.d.ts.map +1 -0
- package/lib/components/ChipTabs/ChipTabs.namespace.js +1 -0
- package/lib/components/ChipTabs/index.cjs +16 -0
- package/lib/components/ChipTabs/index.d.ts +3 -0
- package/lib/components/ChipTabs/index.d.ts.map +1 -0
- package/lib/components/ChipTabs/index.js +3 -0
- package/lib/components/Columns/Columns.cjs +59 -0
- package/lib/components/Columns/Columns.d.ts +22 -0
- package/lib/components/Columns/Columns.d.ts.map +1 -0
- package/lib/components/Columns/Columns.js +35 -0
- package/lib/components/Columns/index.cjs +10 -0
- package/lib/components/Columns/index.d.ts +2 -0
- package/lib/components/Columns/index.d.ts.map +1 -0
- package/lib/components/Columns/index.js +1 -0
- package/lib/components/ConsistentWidth/ConsistentWidth.cjs +24 -0
- package/lib/components/ConsistentWidth/ConsistentWidth.d.ts +7 -0
- package/lib/components/ConsistentWidth/ConsistentWidth.d.ts.map +1 -0
- package/lib/components/ConsistentWidth/ConsistentWidth.js +20 -0
- package/lib/components/ConsistentWidth/index.cjs +9 -0
- package/lib/components/ConsistentWidth/index.d.ts +2 -0
- package/lib/components/ConsistentWidth/index.d.ts.map +1 -0
- package/lib/components/ConsistentWidth/index.js +1 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.cjs +58 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.d.ts +10 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.d.ts.map +1 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.js +35 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.cjs +10 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.d.ts +2 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.d.ts.map +1 -0
- package/lib/components/ContentPlaceholder/ContentPlaceholder.namespace.js +1 -0
- package/lib/components/ContentPlaceholder/index.cjs +12 -0
- package/lib/components/ContentPlaceholder/index.d.ts +3 -0
- package/lib/components/ContentPlaceholder/index.d.ts.map +1 -0
- package/lib/components/ContentPlaceholder/index.js +3 -0
- package/lib/components/ContentPlaceholder/presets.cjs +78 -0
- package/lib/components/ContentPlaceholder/presets.d.ts +3 -0
- package/lib/components/ContentPlaceholder/presets.d.ts.map +1 -0
- package/lib/components/ContentPlaceholder/presets.js +74 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.cjs +54 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts +8 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.d.ts.map +1 -0
- package/lib/components/ContextualFloatingButton/ContextualFloatingButton.js +31 -0
- package/lib/components/ContextualFloatingButton/index.cjs +9 -0
- package/lib/components/ContextualFloatingButton/index.d.ts +2 -0
- package/lib/components/ContextualFloatingButton/index.d.ts.map +1 -0
- package/lib/components/ContextualFloatingButton/index.js +1 -0
- package/lib/components/ControlChip/ControlChip.cjs +18 -0
- package/lib/components/ControlChip/ControlChip.d.ts +28 -0
- package/lib/components/ControlChip/ControlChip.d.ts.map +1 -0
- package/lib/components/ControlChip/ControlChip.js +14 -0
- package/lib/components/ControlChip/index.cjs +9 -0
- package/lib/components/ControlChip/index.d.ts +2 -0
- package/lib/components/ControlChip/index.d.ts.map +1 -0
- package/lib/components/ControlChip/index.js +1 -0
- package/lib/components/Count/Count.cjs +16 -0
- package/lib/components/Count/Count.d.ts +5 -0
- package/lib/components/Count/Count.d.ts.map +1 -0
- package/lib/components/Count/Count.js +12 -0
- package/lib/components/Count/index.cjs +9 -0
- package/lib/components/Count/index.d.ts +2 -0
- package/lib/components/Count/index.d.ts.map +1 -0
- package/lib/components/Count/index.js +1 -0
- package/lib/components/Dialog/Dialog.cjs +54 -0
- package/lib/components/Dialog/Dialog.d.ts +43 -0
- package/lib/components/Dialog/Dialog.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.js +41 -0
- package/lib/components/Dialog/Dialog.namespace.cjs +18 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts +2 -0
- package/lib/components/Dialog/Dialog.namespace.d.ts.map +1 -0
- package/lib/components/Dialog/Dialog.namespace.js +1 -0
- package/lib/components/Dialog/index.cjs +20 -0
- package/lib/components/Dialog/index.d.ts +3 -0
- package/lib/components/Dialog/index.d.ts.map +1 -0
- package/lib/components/Dialog/index.js +3 -0
- package/lib/components/Divider/Divider.cjs +69 -0
- package/lib/components/Divider/Divider.d.ts +29 -0
- package/lib/components/Divider/Divider.d.ts.map +1 -0
- package/lib/components/Divider/Divider.js +46 -0
- package/lib/components/Divider/index.cjs +9 -0
- package/lib/components/Divider/index.d.ts +2 -0
- package/lib/components/Divider/index.d.ts.map +1 -0
- package/lib/components/Divider/index.js +1 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.cjs +55 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts +122 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.d.ts.map +1 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.js +40 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.cjs +20 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts +2 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.d.ts.map +1 -0
- package/lib/components/ExtendedActionSheet/ExtendedActionSheet.namespace.js +1 -0
- package/lib/components/ExtendedActionSheet/index.cjs +22 -0
- package/lib/components/ExtendedActionSheet/index.d.ts +3 -0
- package/lib/components/ExtendedActionSheet/index.d.ts.map +1 -0
- package/lib/components/ExtendedActionSheet/index.js +3 -0
- package/lib/components/ExtendedFab/ExtendedFab.cjs +18 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts +13 -0
- package/lib/components/ExtendedFab/ExtendedFab.d.ts.map +1 -0
- package/lib/components/ExtendedFab/ExtendedFab.js +14 -0
- package/lib/components/ExtendedFab/index.cjs +9 -0
- package/lib/components/ExtendedFab/index.d.ts +2 -0
- package/lib/components/ExtendedFab/index.d.ts.map +1 -0
- package/lib/components/ExtendedFab/index.js +1 -0
- package/lib/components/Fab/Fab.cjs +13 -0
- package/lib/components/Fab/Fab.d.ts +13 -0
- package/lib/components/Fab/Fab.d.ts.map +1 -0
- package/lib/components/Fab/Fab.js +9 -0
- package/lib/components/Fab/index.cjs +9 -0
- package/lib/components/Fab/index.d.ts +2 -0
- package/lib/components/Fab/index.d.ts.map +1 -0
- package/lib/components/Fab/index.js +1 -0
- package/lib/components/Field/Field.cjs +116 -0
- package/lib/components/Field/Field.d.ts +41 -0
- package/lib/components/Field/Field.d.ts.map +1 -0
- package/lib/components/Field/Field.js +104 -0
- package/lib/components/Field/Field.namespace.cjs +17 -0
- package/lib/components/Field/Field.namespace.d.ts +2 -0
- package/lib/components/Field/Field.namespace.d.ts.map +1 -0
- package/lib/components/Field/Field.namespace.js +1 -0
- package/lib/components/Field/index.cjs +19 -0
- package/lib/components/Field/index.d.ts +3 -0
- package/lib/components/Field/index.d.ts.map +1 -0
- package/lib/components/Field/index.js +3 -0
- package/lib/components/FieldButton/FieldButton.cjs +201 -0
- package/lib/components/FieldButton/FieldButton.d.ts +61 -0
- package/lib/components/FieldButton/FieldButton.d.ts.map +1 -0
- package/lib/components/FieldButton/FieldButton.js +161 -0
- package/lib/components/FieldButton/FieldButton.namespace.cjs +26 -0
- package/lib/components/FieldButton/FieldButton.namespace.d.ts +2 -0
- package/lib/components/FieldButton/FieldButton.namespace.d.ts.map +1 -0
- package/lib/components/FieldButton/FieldButton.namespace.js +1 -0
- package/lib/components/FieldButton/index.cjs +28 -0
- package/lib/components/FieldButton/index.d.ts +3 -0
- package/lib/components/FieldButton/index.d.ts.map +1 -0
- package/lib/components/FieldButton/index.js +3 -0
- package/lib/components/Fieldset/Fieldset.cjs +86 -0
- package/lib/components/Fieldset/Fieldset.d.ts +30 -0
- package/lib/components/Fieldset/Fieldset.d.ts.map +1 -0
- package/lib/components/Fieldset/Fieldset.js +75 -0
- package/lib/components/Fieldset/Fieldset.namespace.cjs +16 -0
- package/lib/components/Fieldset/Fieldset.namespace.d.ts +2 -0
- package/lib/components/Fieldset/Fieldset.namespace.d.ts.map +1 -0
- package/lib/components/Fieldset/Fieldset.namespace.js +1 -0
- package/lib/components/Fieldset/index.cjs +18 -0
- package/lib/components/Fieldset/index.d.ts +3 -0
- package/lib/components/Fieldset/index.d.ts.map +1 -0
- package/lib/components/Fieldset/index.js +3 -0
- package/lib/components/Flex/Flex.cjs +47 -0
- package/lib/components/Flex/Flex.d.ts +35 -0
- package/lib/components/Flex/Flex.d.ts.map +1 -0
- package/lib/components/Flex/Flex.js +24 -0
- package/lib/components/Flex/index.cjs +9 -0
- package/lib/components/Flex/index.d.ts +2 -0
- package/lib/components/Flex/index.d.ts.map +1 -0
- package/lib/components/Flex/index.js +1 -0
- package/lib/components/Float/Float.cjs +108 -0
- package/lib/components/Float/Float.d.ts +17 -0
- package/lib/components/Float/Float.d.ts.map +1 -0
- package/lib/components/Float/Float.js +85 -0
- package/lib/components/Float/index.cjs +9 -0
- package/lib/components/Float/index.d.ts +2 -0
- package/lib/components/Float/index.d.ts.map +1 -0
- package/lib/components/Float/index.js +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.cjs +18 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +14 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.js +12 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.cjs +11 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts +2 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/FloatingActionButton.namespace.js +1 -0
- package/lib/components/FloatingActionButton/index.cjs +13 -0
- package/lib/components/FloatingActionButton/index.d.ts +3 -0
- package/lib/components/FloatingActionButton/index.d.ts.map +1 -0
- package/lib/components/FloatingActionButton/index.js +3 -0
- package/lib/components/Grid/Grid.cjs +58 -0
- package/lib/components/Grid/Grid.d.ts +42 -0
- package/lib/components/Grid/Grid.d.ts.map +1 -0
- package/lib/components/Grid/Grid.js +35 -0
- package/lib/components/Grid/index.cjs +9 -0
- package/lib/components/Grid/index.d.ts +2 -0
- package/lib/components/Grid/index.d.ts.map +1 -0
- package/lib/components/Grid/index.js +1 -0
- package/lib/components/GridItem/GridItem.cjs +45 -0
- package/lib/components/GridItem/GridItem.d.ts +35 -0
- package/lib/components/GridItem/GridItem.d.ts.map +1 -0
- package/lib/components/GridItem/GridItem.js +22 -0
- package/lib/components/GridItem/index.cjs +9 -0
- package/lib/components/GridItem/index.d.ts +2 -0
- package/lib/components/GridItem/index.d.ts.map +1 -0
- package/lib/components/GridItem/index.js +1 -0
- package/lib/components/HelpBubble/HelpBubble.cjs +102 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts +63 -0
- package/lib/components/HelpBubble/HelpBubble.d.ts.map +1 -0
- package/lib/components/HelpBubble/HelpBubble.js +87 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.cjs +20 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts +2 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.d.ts.map +1 -0
- package/lib/components/HelpBubble/HelpBubble.namespace.js +1 -0
- package/lib/components/HelpBubble/index.cjs +22 -0
- package/lib/components/HelpBubble/index.d.ts +3 -0
- package/lib/components/HelpBubble/index.d.ts.map +1 -0
- package/lib/components/HelpBubble/index.js +3 -0
- package/lib/components/Icon/Icon.cjs +128 -0
- package/lib/components/Icon/Icon.d.ts +23 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -0
- package/lib/components/Icon/Icon.js +120 -0
- package/lib/components/Icon/index.cjs +11 -0
- package/lib/components/Icon/index.d.ts +2 -0
- package/lib/components/Icon/index.d.ts.map +1 -0
- package/lib/components/Icon/index.js +1 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.cjs +77 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.d.ts +10 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.d.ts.map +1 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.js +53 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.cjs +10 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.d.ts +2 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.d.ts.map +1 -0
- package/lib/components/IdentityPlaceholder/IdentityPlaceholder.namespace.js +1 -0
- package/lib/components/IdentityPlaceholder/index.cjs +12 -0
- package/lib/components/IdentityPlaceholder/index.d.ts +3 -0
- package/lib/components/IdentityPlaceholder/index.d.ts.map +1 -0
- package/lib/components/IdentityPlaceholder/index.js +3 -0
- package/lib/components/ImageFrame/ImageFrame.cjs +186 -0
- package/lib/components/ImageFrame/ImageFrame.d.ts +53 -0
- package/lib/components/ImageFrame/ImageFrame.d.ts.map +1 -0
- package/lib/components/ImageFrame/ImageFrame.js +158 -0
- package/lib/components/ImageFrame/ImageFrame.test.d.ts +2 -0
- package/lib/components/ImageFrame/ImageFrame.test.d.ts.map +1 -0
- package/lib/components/ImageFrame/index.cjs +14 -0
- package/lib/components/ImageFrame/index.d.ts +2 -0
- package/lib/components/ImageFrame/index.d.ts.map +1 -0
- package/lib/components/ImageFrame/index.js +1 -0
- package/lib/components/Inline/Inline.cjs +44 -0
- package/lib/components/Inline/Inline.d.ts +12 -0
- package/lib/components/Inline/Inline.d.ts.map +1 -0
- package/lib/components/Inline/Inline.js +21 -0
- package/lib/components/Inline/index.cjs +9 -0
- package/lib/components/Inline/index.d.ts +2 -0
- package/lib/components/Inline/index.d.ts.map +1 -0
- package/lib/components/Inline/index.js +1 -0
- package/lib/components/InlineBanner/InlineBanner.cjs +42 -0
- package/lib/components/InlineBanner/InlineBanner.d.ts +59 -0
- package/lib/components/InlineBanner/InlineBanner.d.ts.map +1 -0
- package/lib/components/InlineBanner/InlineBanner.js +33 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.cjs +14 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts +2 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.d.ts.map +1 -0
- package/lib/components/InlineBanner/InlineBanner.namespace.js +1 -0
- package/lib/components/InlineBanner/index.cjs +16 -0
- package/lib/components/InlineBanner/index.d.ts +3 -0
- package/lib/components/InlineBanner/index.d.ts.map +1 -0
- package/lib/components/InlineBanner/index.js +3 -0
- package/lib/components/LinkContent/LinkContent.cjs +16 -0
- package/lib/components/LinkContent/LinkContent.d.ts +14 -0
- package/lib/components/LinkContent/LinkContent.d.ts.map +1 -0
- package/lib/components/LinkContent/LinkContent.js +12 -0
- package/lib/components/LinkContent/index.cjs +9 -0
- package/lib/components/LinkContent/index.d.ts +2 -0
- package/lib/components/LinkContent/index.d.ts.map +1 -0
- package/lib/components/LinkContent/index.js +1 -0
- package/lib/components/List/List.cjs +71 -0
- package/lib/components/List/List.d.ts +28 -0
- package/lib/components/List/List.d.ts.map +1 -0
- package/lib/components/List/List.js +61 -0
- package/lib/components/List/List.namespace.cjs +15 -0
- package/lib/components/List/List.namespace.d.ts +2 -0
- package/lib/components/List/List.namespace.d.ts.map +1 -0
- package/lib/components/List/List.namespace.js +1 -0
- package/lib/components/List/ListHeader.cjs +20 -0
- package/lib/components/List/ListHeader.d.ts +11 -0
- package/lib/components/List/ListHeader.d.ts.map +1 -0
- package/lib/components/List/ListHeader.js +16 -0
- package/lib/components/List/index.cjs +19 -0
- package/lib/components/List/index.d.ts +4 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +4 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.cjs +28 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.d.ts +6 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -0
- package/lib/components/LoadingIndicator/LoadingIndicator.js +24 -0
- package/lib/components/LoadingIndicator/index.cjs +9 -0
- package/lib/components/LoadingIndicator/index.d.ts +2 -0
- package/lib/components/LoadingIndicator/index.d.ts.map +1 -0
- package/lib/components/LoadingIndicator/index.js +1 -0
- package/lib/components/LoadingIndicator/usePendingButton.cjs +52 -0
- package/lib/components/LoadingIndicator/usePendingButton.d.ts +873 -0
- package/lib/components/LoadingIndicator/usePendingButton.d.ts.map +1 -0
- package/lib/components/LoadingIndicator/usePendingButton.js +27 -0
- package/lib/components/MannerTemp/MannerTemp.cjs +20 -0
- package/lib/components/MannerTemp/MannerTemp.d.ts +7 -0
- package/lib/components/MannerTemp/MannerTemp.d.ts.map +1 -0
- package/lib/components/MannerTemp/MannerTemp.js +16 -0
- package/lib/components/MannerTemp/MannerTempEmote.cjs +101 -0
- package/lib/components/MannerTemp/MannerTempEmote.d.ts +7 -0
- package/lib/components/MannerTemp/MannerTempEmote.d.ts.map +1 -0
- package/lib/components/MannerTemp/MannerTempEmote.js +96 -0
- package/lib/components/MannerTemp/index.cjs +11 -0
- package/lib/components/MannerTemp/index.d.ts +3 -0
- package/lib/components/MannerTemp/index.d.ts.map +1 -0
- package/lib/components/MannerTemp/index.js +2 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.cjs +13 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts +7 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.d.ts.map +1 -0
- package/lib/components/MannerTempBadge/MannerTempBadge.js +9 -0
- package/lib/components/MannerTempBadge/index.cjs +9 -0
- package/lib/components/MannerTempBadge/index.d.ts +2 -0
- package/lib/components/MannerTempBadge/index.d.ts.map +1 -0
- package/lib/components/MannerTempBadge/index.js +1 -0
- package/lib/components/MenuSheet/MenuSheet.cjs +155 -0
- package/lib/components/MenuSheet/MenuSheet.d.ts +62 -0
- package/lib/components/MenuSheet/MenuSheet.d.ts.map +1 -0
- package/lib/components/MenuSheet/MenuSheet.js +117 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.cjs +24 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.d.ts +2 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.d.ts.map +1 -0
- package/lib/components/MenuSheet/MenuSheet.namespace.js +1 -0
- package/lib/components/MenuSheet/index.cjs +26 -0
- package/lib/components/MenuSheet/index.d.ts +3 -0
- package/lib/components/MenuSheet/index.d.ts.map +1 -0
- package/lib/components/MenuSheet/index.js +3 -0
- package/lib/components/NotificationBadge/NotificationBadge.cjs +44 -0
- package/lib/components/NotificationBadge/NotificationBadge.d.ts +11 -0
- package/lib/components/NotificationBadge/NotificationBadge.d.ts.map +1 -0
- package/lib/components/NotificationBadge/NotificationBadge.js +21 -0
- package/lib/components/NotificationBadge/index.cjs +10 -0
- package/lib/components/NotificationBadge/index.d.ts +2 -0
- package/lib/components/NotificationBadge/index.d.ts.map +1 -0
- package/lib/components/NotificationBadge/index.js +1 -0
- package/lib/components/PageBanner/PageBanner.cjs +58 -0
- package/lib/components/PageBanner/PageBanner.d.ts +26 -0
- package/lib/components/PageBanner/PageBanner.d.ts.map +1 -0
- package/lib/components/PageBanner/PageBanner.js +48 -0
- package/lib/components/PageBanner/PageBanner.namespace.cjs +15 -0
- package/lib/components/PageBanner/PageBanner.namespace.d.ts +2 -0
- package/lib/components/PageBanner/PageBanner.namespace.d.ts.map +1 -0
- package/lib/components/PageBanner/PageBanner.namespace.js +1 -0
- package/lib/components/PageBanner/index.cjs +17 -0
- package/lib/components/PageBanner/index.d.ts +3 -0
- package/lib/components/PageBanner/index.d.ts.map +1 -0
- package/lib/components/PageBanner/index.js +3 -0
- package/lib/components/Portal/index.cjs +12 -0
- package/lib/components/Portal/index.d.ts +2 -0
- package/lib/components/Portal/index.d.ts.map +1 -0
- package/lib/components/Portal/index.js +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.cjs +26 -0
- package/lib/components/ProgressCircle/ProgressCircle.d.ts +13 -0
- package/lib/components/ProgressCircle/ProgressCircle.d.ts.map +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.js +20 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.cjs +11 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.d.ts +2 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.d.ts.map +1 -0
- package/lib/components/ProgressCircle/ProgressCircle.namespace.js +1 -0
- package/lib/components/ProgressCircle/index.cjs +13 -0
- package/lib/components/ProgressCircle/index.d.ts +3 -0
- package/lib/components/ProgressCircle/index.d.ts.map +1 -0
- package/lib/components/ProgressCircle/index.js +3 -0
- package/lib/components/PullToRefresh/PullToRefresh.cjs +23 -0
- package/lib/components/PullToRefresh/PullToRefresh.d.ts +13 -0
- package/lib/components/PullToRefresh/PullToRefresh.d.ts.map +1 -0
- package/lib/components/PullToRefresh/PullToRefresh.js +17 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.cjs +16 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.d.ts +3 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.d.ts.map +1 -0
- package/lib/components/PullToRefresh/PullToRefresh.namespace.js +2 -0
- package/lib/components/PullToRefresh/index.cjs +18 -0
- package/lib/components/PullToRefresh/index.d.ts +4 -0
- package/lib/components/PullToRefresh/index.d.ts.map +1 -0
- package/lib/components/PullToRefresh/index.js +4 -0
- package/lib/components/RadioGroup/RadioGroup.cjs +82 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts +35 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/lib/components/RadioGroup/RadioGroup.js +73 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.cjs +14 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts +2 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.d.ts.map +1 -0
- package/lib/components/RadioGroup/RadioGroup.namespace.js +1 -0
- package/lib/components/RadioGroup/index.cjs +16 -0
- package/lib/components/RadioGroup/index.d.ts +3 -0
- package/lib/components/RadioGroup/index.d.ts.map +1 -0
- package/lib/components/RadioGroup/index.js +3 -0
- package/lib/components/RadioGroupField/RadioGroupField.cjs +79 -0
- package/lib/components/RadioGroupField/RadioGroupField.d.ts +30 -0
- package/lib/components/RadioGroupField/RadioGroupField.d.ts.map +1 -0
- package/lib/components/RadioGroupField/RadioGroupField.js +68 -0
- package/lib/components/RadioGroupField/RadioGroupField.namespace.cjs +16 -0
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts +2 -0
- package/lib/components/RadioGroupField/RadioGroupField.namespace.d.ts.map +1 -0
- package/lib/components/RadioGroupField/RadioGroupField.namespace.js +1 -0
- package/lib/components/RadioGroupField/index.cjs +18 -0
- package/lib/components/RadioGroupField/index.d.ts +3 -0
- package/lib/components/RadioGroupField/index.d.ts.map +1 -0
- package/lib/components/RadioGroupField/index.js +3 -0
- package/lib/components/ReactionButton/ReactionButton.cjs +49 -0
- package/lib/components/ReactionButton/ReactionButton.d.ts +8 -0
- package/lib/components/ReactionButton/ReactionButton.d.ts.map +1 -0
- package/lib/components/ReactionButton/ReactionButton.js +26 -0
- package/lib/components/ReactionButton/index.cjs +9 -0
- package/lib/components/ReactionButton/index.d.ts +2 -0
- package/lib/components/ReactionButton/index.d.ts.map +1 -0
- package/lib/components/ReactionButton/index.js +1 -0
- package/lib/components/ResponsivePair/ResponsivePair.cjs +61 -0
- package/lib/components/ResponsivePair/ResponsivePair.d.ts +11 -0
- package/lib/components/ResponsivePair/ResponsivePair.d.ts.map +1 -0
- package/lib/components/ResponsivePair/ResponsivePair.js +38 -0
- package/lib/components/ResponsivePair/index.cjs +9 -0
- package/lib/components/ResponsivePair/index.d.ts +2 -0
- package/lib/components/ResponsivePair/index.d.ts.map +1 -0
- package/lib/components/ResponsivePair/index.js +1 -0
- package/lib/components/ScrollFog/ScrollFog.cjs +63 -0
- package/lib/components/ScrollFog/ScrollFog.d.ts +28 -0
- package/lib/components/ScrollFog/ScrollFog.d.ts.map +1 -0
- package/lib/components/ScrollFog/ScrollFog.js +59 -0
- package/lib/components/ScrollFog/index.cjs +9 -0
- package/lib/components/ScrollFog/index.d.ts +2 -0
- package/lib/components/ScrollFog/index.d.ts.map +1 -0
- package/lib/components/ScrollFog/index.js +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.cjs +26 -0
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +17 -0
- package/lib/components/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.js +19 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.cjs +12 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.d.ts +2 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.d.ts.map +1 -0
- package/lib/components/SegmentedControl/SegmentedControl.namespace.js +1 -0
- package/lib/components/SegmentedControl/index.cjs +14 -0
- package/lib/components/SegmentedControl/index.d.ts +3 -0
- package/lib/components/SegmentedControl/index.d.ts.map +1 -0
- package/lib/components/SegmentedControl/index.js +3 -0
- package/lib/components/SelectBox/CheckSelectBox.cjs +149 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts +51 -0
- package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -0
- package/lib/components/SelectBox/CheckSelectBox.js +135 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +19 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +2 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts.map +1 -0
- package/lib/components/SelectBox/CheckSelectBox.namespace.js +1 -0
- package/lib/components/SelectBox/RadioSelectBox.cjs +141 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts +43 -0
- package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -0
- package/lib/components/SelectBox/RadioSelectBox.js +129 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +17 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +2 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts.map +1 -0
- package/lib/components/SelectBox/RadioSelectBox.namespace.js +1 -0
- package/lib/components/SelectBox/index.cjs +33 -0
- package/lib/components/SelectBox/index.d.ts +5 -0
- package/lib/components/SelectBox/index.d.ts.map +1 -0
- package/lib/components/SelectBox/index.js +6 -0
- package/lib/components/Skeleton/Skeleton.cjs +14 -0
- package/lib/components/Skeleton/Skeleton.d.ts +8 -0
- package/lib/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/lib/components/Skeleton/Skeleton.js +10 -0
- package/lib/components/Skeleton/index.cjs +9 -0
- package/lib/components/Skeleton/index.d.ts +2 -0
- package/lib/components/Skeleton/index.d.ts.map +1 -0
- package/lib/components/Skeleton/index.js +1 -0
- package/lib/components/Slider/Slider.cjs +110 -0
- package/lib/components/Slider/Slider.d.ts +51 -0
- package/lib/components/Slider/Slider.d.ts.map +1 -0
- package/lib/components/Slider/Slider.js +94 -0
- package/lib/components/Slider/Slider.namespace.cjs +21 -0
- package/lib/components/Slider/Slider.namespace.d.ts +2 -0
- package/lib/components/Slider/Slider.namespace.d.ts.map +1 -0
- package/lib/components/Slider/Slider.namespace.js +1 -0
- package/lib/components/Slider/index.cjs +23 -0
- package/lib/components/Slider/index.d.ts +3 -0
- package/lib/components/Slider/index.d.ts.map +1 -0
- package/lib/components/Slider/index.js +3 -0
- package/lib/components/Snackbar/Snackbar.cjs +66 -0
- package/lib/components/Snackbar/Snackbar.d.ts +39 -0
- package/lib/components/Snackbar/Snackbar.d.ts.map +1 -0
- package/lib/components/Snackbar/Snackbar.js +53 -0
- package/lib/components/Snackbar/Snackbar.namespace.cjs +18 -0
- package/lib/components/Snackbar/Snackbar.namespace.d.ts +2 -0
- package/lib/components/Snackbar/Snackbar.namespace.d.ts.map +1 -0
- package/lib/components/Snackbar/Snackbar.namespace.js +1 -0
- package/lib/components/Snackbar/index.cjs +26 -0
- package/lib/components/Snackbar/index.d.ts +5 -0
- package/lib/components/Snackbar/index.d.ts.map +1 -0
- package/lib/components/Snackbar/index.js +5 -0
- package/lib/components/Snackbar/useSnackbarAdapter.cjs +29 -0
- package/lib/components/Snackbar/useSnackbarAdapter.d.ts +11 -0
- package/lib/components/Snackbar/useSnackbarAdapter.d.ts.map +1 -0
- package/lib/components/Snackbar/useSnackbarAdapter.js +25 -0
- package/lib/components/Stack/Stack.cjs +41 -0
- package/lib/components/Stack/Stack.d.ts +18 -0
- package/lib/components/Stack/Stack.d.ts.map +1 -0
- package/lib/components/Stack/Stack.js +16 -0
- package/lib/components/Stack/index.cjs +11 -0
- package/lib/components/Stack/index.d.ts +2 -0
- package/lib/components/Stack/index.d.ts.map +1 -0
- package/lib/components/Stack/index.js +1 -0
- package/lib/components/Switch/Switch.cjs +69 -0
- package/lib/components/Switch/Switch.d.ts +27 -0
- package/lib/components/Switch/Switch.d.ts.map +1 -0
- package/lib/components/Switch/Switch.js +61 -0
- package/lib/components/Switch/Switch.namespace.cjs +13 -0
- package/lib/components/Switch/Switch.namespace.d.ts +2 -0
- package/lib/components/Switch/Switch.namespace.d.ts.map +1 -0
- package/lib/components/Switch/Switch.namespace.js +1 -0
- package/lib/components/Switch/index.cjs +15 -0
- package/lib/components/Switch/index.d.ts +3 -0
- package/lib/components/Switch/index.d.ts.map +1 -0
- package/lib/components/Switch/index.js +3 -0
- package/lib/components/Tabs/Tabs.cjs +40 -0
- package/lib/components/Tabs/Tabs.d.ts +25 -0
- package/lib/components/Tabs/Tabs.d.ts.map +1 -0
- package/lib/components/Tabs/Tabs.js +30 -0
- package/lib/components/Tabs/Tabs.namespace.cjs +20 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts +3 -0
- package/lib/components/Tabs/Tabs.namespace.d.ts.map +1 -0
- package/lib/components/Tabs/Tabs.namespace.js +2 -0
- package/lib/components/Tabs/index.cjs +22 -0
- package/lib/components/Tabs/index.d.ts +4 -0
- package/lib/components/Tabs/index.d.ts.map +1 -0
- package/lib/components/Tabs/index.js +4 -0
- package/lib/components/TagGroup/TagGroup.cjs +54 -0
- package/lib/components/TagGroup/TagGroup.d.ts +16 -0
- package/lib/components/TagGroup/TagGroup.d.ts.map +1 -0
- package/lib/components/TagGroup/TagGroup.js +48 -0
- package/lib/components/TagGroup/TagGroup.namespace.cjs +11 -0
- package/lib/components/TagGroup/TagGroup.namespace.d.ts +2 -0
- package/lib/components/TagGroup/TagGroup.namespace.d.ts.map +1 -0
- package/lib/components/TagGroup/TagGroup.namespace.js +1 -0
- package/lib/components/TagGroup/index.cjs +13 -0
- package/lib/components/TagGroup/index.d.ts +3 -0
- package/lib/components/TagGroup/index.d.ts.map +1 -0
- package/lib/components/TagGroup/index.js +3 -0
- package/lib/components/Text/Text.cjs +97 -0
- package/lib/components/Text/Text.d.ts +45 -0
- package/lib/components/Text/Text.d.ts.map +1 -0
- package/lib/components/Text/Text.js +93 -0
- package/lib/components/Text/index.cjs +9 -0
- package/lib/components/Text/index.d.ts +2 -0
- package/lib/components/Text/index.d.ts.map +1 -0
- package/lib/components/Text/index.js +1 -0
- package/lib/components/TextField/TextField.cjs +131 -0
- package/lib/components/TextField/TextField.d.ts +32 -0
- package/lib/components/TextField/TextField.d.ts.map +1 -0
- package/lib/components/TextField/TextField.js +121 -0
- package/lib/components/TextField/TextField.namespace.cjs +15 -0
- package/lib/components/TextField/TextField.namespace.d.ts +2 -0
- package/lib/components/TextField/TextField.namespace.d.ts.map +1 -0
- package/lib/components/TextField/TextField.namespace.js +1 -0
- package/lib/components/TextField/TextField.test.d.ts +2 -0
- package/lib/components/TextField/TextField.test.d.ts.map +1 -0
- package/lib/components/TextField/index.cjs +19 -0
- package/lib/components/TextField/index.d.ts +4 -0
- package/lib/components/TextField/index.d.ts.map +1 -0
- package/lib/components/TextField/index.js +4 -0
- package/lib/components/TextField/memoize.cjs +18 -0
- package/lib/components/TextField/memoize.d.ts +2 -0
- package/lib/components/TextField/memoize.d.ts.map +1 -0
- package/lib/components/TextField/memoize.js +14 -0
- package/lib/components/TextField/useTextFieldWithGraphemes.cjs +52 -0
- package/lib/components/TextField/useTextFieldWithGraphemes.d.ts +23 -0
- package/lib/components/TextField/useTextFieldWithGraphemes.d.ts.map +1 -0
- package/lib/components/TextField/useTextFieldWithGraphemes.js +48 -0
- package/lib/components/TextField/useTextFieldWithGraphemes.test.d.ts +2 -0
- package/lib/components/TextField/useTextFieldWithGraphemes.test.d.ts.map +1 -0
- package/lib/components/ToggleButton/ToggleButton.cjs +49 -0
- package/lib/components/ToggleButton/ToggleButton.d.ts +8 -0
- package/lib/components/ToggleButton/ToggleButton.d.ts.map +1 -0
- package/lib/components/ToggleButton/ToggleButton.js +26 -0
- package/lib/components/ToggleButton/index.cjs +9 -0
- package/lib/components/ToggleButton/index.d.ts +2 -0
- package/lib/components/ToggleButton/index.d.ts.map +1 -0
- package/lib/components/ToggleButton/index.js +1 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.cjs +16 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts +6 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.js +12 -0
- package/lib/components/VisuallyHidden/index.cjs +9 -0
- package/lib/components/VisuallyHidden/index.d.ts +2 -0
- package/lib/components/VisuallyHidden/index.d.ts.map +1 -0
- package/lib/components/VisuallyHidden/index.js +1 -0
- package/lib/components/index.cjs +465 -0
- package/lib/components/index.d.ts +69 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +142 -0
- package/lib/components/private/Icon.cjs +16 -0
- package/lib/components/private/Icon.d.ts +6 -0
- package/lib/components/private/Icon.d.ts.map +1 -0
- package/lib/components/private/Icon.js +12 -0
- package/lib/components/private/useDismissible.cjs +79 -0
- package/lib/components/private/useDismissible.d.ts +1749 -0
- package/lib/components/private/useDismissible.d.ts.map +1 -0
- package/lib/components/private/useDismissible.js +52 -0
- package/lib/hooks/useBreakpoint.cjs +18 -0
- package/lib/hooks/useBreakpoint.d.ts +12 -0
- package/lib/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/hooks/useBreakpoint.js +13 -0
- package/lib/hooks/useBreakpoint.test.d.ts +2 -0
- package/lib/hooks/useBreakpoint.test.d.ts.map +1 -0
- package/lib/hooks/useBreakpointValue.cjs +28 -0
- package/lib/hooks/useBreakpointValue.d.ts +8 -0
- package/lib/hooks/useBreakpointValue.d.ts.map +1 -0
- package/lib/hooks/useBreakpointValue.js +23 -0
- package/lib/hooks/useBreakpointValue.test.d.ts +2 -0
- package/lib/hooks/useBreakpointValue.test.d.ts.map +1 -0
- package/lib/index.cjs +471 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +145 -0
- package/lib/primitive.cjs +91 -0
- package/lib/primitive.d.ts +13 -0
- package/lib/primitive.d.ts.map +1 -0
- package/lib/primitive.js +12 -0
- package/lib/primitives/breakpoint-store.cjs +63 -0
- package/lib/primitives/breakpoint-store.d.ts +7 -0
- package/lib/primitives/breakpoint-store.d.ts.map +1 -0
- package/lib/primitives/breakpoint-store.js +58 -0
- package/lib/providers/BreakpointProvider.cjs +24 -0
- package/lib/providers/BreakpointProvider.d.ts +8 -0
- package/lib/providers/BreakpointProvider.d.ts.map +1 -0
- package/lib/providers/BreakpointProvider.js +20 -0
- package/lib/types/responsive.cjs +10 -0
- package/lib/types/responsive.d.ts +12 -0
- package/lib/types/responsive.d.ts.map +1 -0
- package/lib/types/responsive.js +6 -0
- package/lib/utils/createRecipeContext.cjs +40 -0
- package/lib/utils/createRecipeContext.d.ts +16 -0
- package/lib/utils/createRecipeContext.d.ts.map +1 -0
- package/lib/utils/createRecipeContext.js +36 -0
- package/lib/utils/createSlotRecipeContext.cjs +77 -0
- package/lib/utils/createSlotRecipeContext.d.ts +24 -0
- package/lib/utils/createSlotRecipeContext.d.ts.map +1 -0
- package/lib/utils/createSlotRecipeContext.js +73 -0
- package/lib/utils/createWithStateProps.cjs +28 -0
- package/lib/utils/createWithStateProps.d.ts +14 -0
- package/lib/utils/createWithStateProps.d.ts.map +1 -0
- package/lib/utils/createWithStateProps.js +24 -0
- package/lib/utils/splitMultipleVariantsProps.cjs +32 -0
- package/lib/utils/splitMultipleVariantsProps.d.ts +21 -0
- package/lib/utils/splitMultipleVariantsProps.js +28 -0
- package/lib/utils/styled.cjs +353 -0
- package/lib/utils/styled.d.ts +160 -0
- package/lib/utils/styled.d.ts.map +1 -0
- package/lib/utils/styled.js +344 -0
- package/lib/vars.cjs +14 -0
- package/lib/vars.d.ts +2 -0
- package/lib/vars.d.ts.map +1 -0
- package/lib/vars.js +1 -0
- package/package.json +89 -0
- package/src/components/ActionButton/ActionButton.tsx +92 -0
- package/src/components/ActionButton/index.ts +4 -0
- package/src/components/ActionChip/ActionChip.tsx +34 -0
- package/src/components/ActionChip/index.ts +4 -0
- package/src/components/ActionSheet/ActionSheet.namespace.ts +24 -0
- package/src/components/ActionSheet/ActionSheet.tsx +192 -0
- package/src/components/ActionSheet/index.ts +26 -0
- package/src/components/Article/Article.tsx +19 -0
- package/src/components/Article/index.ts +1 -0
- package/src/components/AspectRatio/AspectRatio.tsx +56 -0
- package/src/components/AspectRatio/index.ts +1 -0
- package/src/components/Avatar/Avatar.namespace.ts +12 -0
- package/src/components/Avatar/Avatar.tsx +62 -0
- package/src/components/Avatar/index.ts +14 -0
- package/src/components/Badge/Badge.tsx +26 -0
- package/src/components/Badge/index.ts +1 -0
- package/src/components/BottomSheet/BottomSheet.namespace.ts +29 -0
- package/src/components/BottomSheet/BottomSheet.tsx +122 -0
- package/src/components/BottomSheet/index.ts +26 -0
- package/src/components/BottomSheetHandle/BottomSheetHandle.tsx +23 -0
- package/src/components/BottomSheetHandle/index.ts +1 -0
- package/src/components/Box/Box.tsx +45 -0
- package/src/components/Box/index.ts +1 -0
- package/src/components/Callout/Callout.namespace.ts +14 -0
- package/src/components/Callout/Callout.tsx +57 -0
- package/src/components/Callout/index.ts +16 -0
- package/src/components/Celsius/Celsius.tsx +9 -0
- package/src/components/Celsius/index.ts +4 -0
- package/src/components/Checkbox/Checkbox.namespace.ts +14 -0
- package/src/components/Checkbox/Checkbox.tsx +176 -0
- package/src/components/Checkbox/index.ts +16 -0
- package/src/components/Chip/Chip.namespace.ts +12 -0
- package/src/components/Chip/Chip.tsx +67 -0
- package/src/components/Chip/index.ts +14 -0
- package/src/components/ChipTabs/ChipTabs.namespace.ts +14 -0
- package/src/components/ChipTabs/ChipTabs.tsx +80 -0
- package/src/components/ChipTabs/index.ts +16 -0
- package/src/components/Columns/Columns.tsx +49 -0
- package/src/components/Columns/index.ts +1 -0
- package/src/components/ConsistentWidth/ConsistentWidth.tsx +21 -0
- package/src/components/ConsistentWidth/index.ts +1 -0
- package/src/components/ContentPlaceholder/ContentPlaceholder.namespace.ts +6 -0
- package/src/components/ContentPlaceholder/ContentPlaceholder.tsx +59 -0
- package/src/components/ContentPlaceholder/index.ts +8 -0
- package/src/components/ContentPlaceholder/presets.tsx +96 -0
- package/src/components/ContextualFloatingButton/ContextualFloatingButton.tsx +49 -0
- package/src/components/ContextualFloatingButton/index.ts +4 -0
- package/src/components/ControlChip/ControlChip.tsx +38 -0
- package/src/components/ControlChip/index.ts +5 -0
- package/src/components/Count/Count.tsx +10 -0
- package/src/components/Count/index.ts +4 -0
- package/src/components/Dialog/Dialog.namespace.ts +22 -0
- package/src/components/Dialog/Dialog.tsx +105 -0
- package/src/components/Dialog/index.ts +24 -0
- package/src/components/Divider/Divider.tsx +80 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.namespace.ts +26 -0
- package/src/components/ExtendedActionSheet/ExtendedActionSheet.tsx +220 -0
- package/src/components/ExtendedActionSheet/index.ts +28 -0
- package/src/components/ExtendedFab/ExtendedFab.tsx +25 -0
- package/src/components/ExtendedFab/index.ts +4 -0
- package/src/components/Fab/Fab.tsx +21 -0
- package/src/components/Fab/index.ts +4 -0
- package/src/components/Field/Field.namespace.ts +19 -0
- package/src/components/Field/Field.tsx +140 -0
- package/src/components/Field/index.ts +21 -0
- package/src/components/FieldButton/FieldButton.namespace.ts +38 -0
- package/src/components/FieldButton/FieldButton.tsx +249 -0
- package/src/components/FieldButton/index.ts +40 -0
- package/src/components/Fieldset/Fieldset.namespace.ts +17 -0
- package/src/components/Fieldset/Fieldset.tsx +101 -0
- package/src/components/Fieldset/index.ts +19 -0
- package/src/components/Flex/Flex.tsx +58 -0
- package/src/components/Flex/index.ts +1 -0
- package/src/components/Float/Float.tsx +124 -0
- package/src/components/Float/index.ts +1 -0
- package/src/components/FloatingActionButton/FloatingActionButton.namespace.tsx +8 -0
- package/src/components/FloatingActionButton/FloatingActionButton.tsx +38 -0
- package/src/components/FloatingActionButton/index.ts +10 -0
- package/src/components/Grid/Grid.tsx +86 -0
- package/src/components/Grid/index.ts +1 -0
- package/src/components/GridItem/GridItem.tsx +70 -0
- package/src/components/GridItem/index.ts +1 -0
- package/src/components/HelpBubble/HelpBubble.namespace.ts +26 -0
- package/src/components/HelpBubble/HelpBubble.tsx +173 -0
- package/src/components/HelpBubble/index.ts +28 -0
- package/src/components/Icon/Icon.tsx +167 -0
- package/src/components/Icon/index.ts +8 -0
- package/src/components/IdentityPlaceholder/IdentityPlaceholder.namespace.ts +6 -0
- package/src/components/IdentityPlaceholder/IdentityPlaceholder.tsx +77 -0
- package/src/components/IdentityPlaceholder/index.ts +8 -0
- package/src/components/ImageFrame/ImageFrame.test.tsx +57 -0
- package/src/components/ImageFrame/ImageFrame.tsx +268 -0
- package/src/components/ImageFrame/index.ts +14 -0
- package/src/components/Inline/Inline.tsx +24 -0
- package/src/components/Inline/index.ts +1 -0
- package/src/components/InlineBanner/InlineBanner.namespace.ts +14 -0
- package/src/components/InlineBanner/InlineBanner.tsx +103 -0
- package/src/components/InlineBanner/index.ts +16 -0
- package/src/components/LinkContent/LinkContent.tsx +23 -0
- package/src/components/LinkContent/index.ts +4 -0
- package/src/components/List/List.namespace.ts +16 -0
- package/src/components/List/List.tsx +96 -0
- package/src/components/List/ListHeader.tsx +24 -0
- package/src/components/List/index.ts +20 -0
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +27 -0
- package/src/components/LoadingIndicator/index.ts +4 -0
- package/src/components/LoadingIndicator/usePendingButton.tsx +45 -0
- package/src/components/MannerTemp/MannerTemp.tsx +25 -0
- package/src/components/MannerTemp/MannerTempEmote.tsx +136 -0
- package/src/components/MannerTemp/index.ts +2 -0
- package/src/components/MannerTempBadge/MannerTempBadge.tsx +18 -0
- package/src/components/MannerTempBadge/index.ts +4 -0
- package/src/components/MenuSheet/MenuSheet.namespace.ts +34 -0
- package/src/components/MenuSheet/MenuSheet.tsx +229 -0
- package/src/components/MenuSheet/index.ts +36 -0
- package/src/components/NotificationBadge/NotificationBadge.tsx +47 -0
- package/src/components/NotificationBadge/index.ts +6 -0
- package/src/components/PageBanner/PageBanner.namespace.ts +16 -0
- package/src/components/PageBanner/PageBanner.tsx +108 -0
- package/src/components/PageBanner/index.ts +18 -0
- package/src/components/Portal/index.ts +4 -0
- package/src/components/ProgressCircle/ProgressCircle.namespace.ts +8 -0
- package/src/components/ProgressCircle/ProgressCircle.tsx +31 -0
- package/src/components/ProgressCircle/index.ts +10 -0
- package/src/components/PullToRefresh/PullToRefresh.namespace.ts +10 -0
- package/src/components/PullToRefresh/PullToRefresh.tsx +28 -0
- package/src/components/PullToRefresh/index.ts +12 -0
- package/src/components/RadioGroup/RadioGroup.namespace.ts +14 -0
- package/src/components/RadioGroup/RadioGroup.tsx +138 -0
- package/src/components/RadioGroup/index.ts +16 -0
- package/src/components/RadioGroupField/RadioGroupField.namespace.ts +18 -0
- package/src/components/RadioGroupField/RadioGroupField.tsx +114 -0
- package/src/components/RadioGroupField/index.ts +2 -0
- package/src/components/ReactionButton/ReactionButton.tsx +36 -0
- package/src/components/ReactionButton/index.ts +4 -0
- package/src/components/ResponsivePair/ResponsivePair.tsx +44 -0
- package/src/components/ResponsivePair/index.ts +1 -0
- package/src/components/ScrollFog/ScrollFog.tsx +90 -0
- package/src/components/ScrollFog/index.ts +1 -0
- package/src/components/SegmentedControl/SegmentedControl.namespace.ts +10 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +39 -0
- package/src/components/SegmentedControl/index.ts +12 -0
- package/src/components/SelectBox/CheckSelectBox.namespace.ts +24 -0
- package/src/components/SelectBox/CheckSelectBox.tsx +265 -0
- package/src/components/SelectBox/RadioSelectBox.namespace.ts +20 -0
- package/src/components/SelectBox/RadioSelectBox.tsx +248 -0
- package/src/components/SelectBox/index.ts +48 -0
- package/src/components/Skeleton/Skeleton.tsx +15 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Slider/Slider.namespace.ts +28 -0
- package/src/components/Slider/Slider.tsx +154 -0
- package/src/components/Slider/index.ts +30 -0
- package/src/components/Snackbar/Snackbar.namespace.ts +22 -0
- package/src/components/Snackbar/Snackbar.tsx +110 -0
- package/src/components/Snackbar/index.ts +32 -0
- package/src/components/Snackbar/useSnackbarAdapter.ts +28 -0
- package/src/components/Stack/Stack.tsx +26 -0
- package/src/components/Stack/index.ts +8 -0
- package/src/components/Switch/Switch.namespace.ts +12 -0
- package/src/components/Switch/Switch.tsx +102 -0
- package/src/components/Switch/index.ts +14 -0
- package/src/components/Tabs/Tabs.namespace.ts +18 -0
- package/src/components/Tabs/Tabs.tsx +62 -0
- package/src/components/Tabs/index.ts +20 -0
- package/src/components/TagGroup/TagGroup.namespace.ts +8 -0
- package/src/components/TagGroup/TagGroup.tsx +90 -0
- package/src/components/TagGroup/index.ts +10 -0
- package/src/components/Text/Text.tsx +169 -0
- package/src/components/Text/index.ts +1 -0
- package/src/components/TextField/TextField.namespace.ts +16 -0
- package/src/components/TextField/TextField.test.tsx +257 -0
- package/src/components/TextField/TextField.tsx +182 -0
- package/src/components/TextField/index.ts +23 -0
- package/src/components/TextField/memoize.ts +14 -0
- package/src/components/TextField/useTextFieldWithGraphemes.test.tsx +306 -0
- package/src/components/TextField/useTextFieldWithGraphemes.ts +65 -0
- package/src/components/ToggleButton/ToggleButton.tsx +36 -0
- package/src/components/ToggleButton/index.ts +4 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +11 -0
- package/src/components/VisuallyHidden/index.ts +1 -0
- package/src/components/index.ts +68 -0
- package/src/components/private/Icon.tsx +16 -0
- package/src/components/private/useDismissible.tsx +86 -0
- package/src/hooks/useBreakpoint.test.tsx +94 -0
- package/src/hooks/useBreakpoint.ts +24 -0
- package/src/hooks/useBreakpointValue.test.tsx +102 -0
- package/src/hooks/useBreakpointValue.ts +33 -0
- package/src/index.ts +12 -0
- package/src/primitive.ts +12 -0
- package/src/primitives/breakpoint-store.ts +69 -0
- package/src/providers/BreakpointProvider.tsx +26 -0
- package/src/types/responsive.ts +19 -0
- package/src/utils/createRecipeContext.tsx +54 -0
- package/src/utils/createSlotRecipeContext.tsx +128 -0
- package/src/utils/createWithStateProps.tsx +33 -0
- package/src/utils/splitMultipleVariantsProps.d.ts +21 -0
- package/src/utils/splitMultipleVariantsProps.mjs +25 -0
- package/src/utils/styled.tsx +765 -0
- package/src/vars.ts +1 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { imageFrameReactionButton } from "@seed-design/css/recipes/image-frame-reaction-button";
|
|
2
|
+
import { render } from "@testing-library/react";
|
|
3
|
+
import userEvent from "@testing-library/user-event";
|
|
4
|
+
import { describe, expect, it } from "bun:test";
|
|
5
|
+
import type { ReactElement } from "react";
|
|
6
|
+
import { ImageFrameReactionButton } from "./ImageFrame";
|
|
7
|
+
|
|
8
|
+
function setUp(jsx: ReactElement) {
|
|
9
|
+
return {
|
|
10
|
+
user: userEvent.setup(),
|
|
11
|
+
...render(jsx),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
describe("ImageFrame", () => {
|
|
16
|
+
describe("ImageFrameReactionButton", () => {
|
|
17
|
+
it("renders the unselected icon by default", () => {
|
|
18
|
+
const classNames = imageFrameReactionButton();
|
|
19
|
+
const { getByRole, container } = setUp(
|
|
20
|
+
<ImageFrameReactionButton aria-label="Like image" />,
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const button = getByRole("button", { name: "Like image" });
|
|
24
|
+
const lineIcon = container.querySelector(`.${classNames.lineIcon}`);
|
|
25
|
+
const fillIcon = container.querySelector(`.${classNames.fillIcon}`);
|
|
26
|
+
const gradient = container.querySelector("linearGradient");
|
|
27
|
+
|
|
28
|
+
expect(button).toHaveAttribute("aria-pressed", "false");
|
|
29
|
+
expect(lineIcon).not.toBeNull();
|
|
30
|
+
expect(lineIcon).toHaveClass(classNames.lineIcon);
|
|
31
|
+
expect(fillIcon).toBeNull();
|
|
32
|
+
expect(gradient).toBeNull();
|
|
33
|
+
expect(lineIcon).not.toHaveAttribute("data-pressed");
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it("switches to the selected icon on press", async () => {
|
|
37
|
+
const classNames = imageFrameReactionButton();
|
|
38
|
+
const { getByRole, container, user } = setUp(
|
|
39
|
+
<ImageFrameReactionButton aria-label="Like image" />,
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const button = getByRole("button", { name: "Like image" });
|
|
43
|
+
|
|
44
|
+
await user.click(button);
|
|
45
|
+
|
|
46
|
+
const fillIcon = container.querySelector(`.${classNames.fillIcon}`);
|
|
47
|
+
const lineIcon = container.querySelector(`.${classNames.lineIcon}`);
|
|
48
|
+
const gradient = container.querySelector("linearGradient");
|
|
49
|
+
|
|
50
|
+
expect(button).toHaveAttribute("aria-pressed", "true");
|
|
51
|
+
expect(fillIcon).not.toBeNull();
|
|
52
|
+
expect(lineIcon).toBeNull();
|
|
53
|
+
expect(gradient).not.toBeNull();
|
|
54
|
+
expect(fillIcon).toHaveAttribute("data-pressed", "");
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import {
|
|
2
|
+
imageFrame as imageFrameRecipe,
|
|
3
|
+
type ImageFrameVariantProps,
|
|
4
|
+
} from "@seed-design/css/recipes/image-frame";
|
|
5
|
+
import {
|
|
6
|
+
imageFrameIcon,
|
|
7
|
+
type ImageFrameIconVariantProps,
|
|
8
|
+
} from "@seed-design/css/recipes/image-frame-icon";
|
|
9
|
+
import {
|
|
10
|
+
imageFrameIndicator,
|
|
11
|
+
type ImageFrameIndicatorVariantProps,
|
|
12
|
+
} from "@seed-design/css/recipes/image-frame-indicator";
|
|
13
|
+
import { imageFrameReactionButton } from "@seed-design/css/recipes/image-frame-reaction-button";
|
|
14
|
+
import { imageFrameFloater as floaterVars } from "@seed-design/css/vars/component";
|
|
15
|
+
import { mergeProps } from "@seed-design/dom-utils";
|
|
16
|
+
import { Image } from "@seed-design/react-image";
|
|
17
|
+
import { Toggle as TogglePrimitive, useToggleContext } from "@seed-design/react-toggle";
|
|
18
|
+
import clsx from "clsx";
|
|
19
|
+
import * as React from "react";
|
|
20
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
21
|
+
import { AspectRatio, type AspectRatioProps } from "../AspectRatio/AspectRatio";
|
|
22
|
+
import { Badge, type BadgeProps } from "../Badge/Badge";
|
|
23
|
+
import { Float, type FloatProps } from "../Float/Float";
|
|
24
|
+
import { Icon } from "../Icon/Icon";
|
|
25
|
+
import { InternalIcon } from "../private/Icon";
|
|
26
|
+
|
|
27
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
28
|
+
|
|
29
|
+
export interface ImageFrameProps
|
|
30
|
+
extends Omit<AspectRatioProps, "children">,
|
|
31
|
+
ImageFrameVariantProps {
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Deprecated in `@seed-design/react@1.2.x`; will be removed in 1.3.0.
|
|
34
|
+
* Use borderRadius="r2" instead.
|
|
35
|
+
* Reason: 모서리 스타일은 borderRadius prop으로 통일합니다.
|
|
36
|
+
*/
|
|
37
|
+
rounded?: ImageFrameVariantProps["rounded"];
|
|
38
|
+
src: string;
|
|
39
|
+
alt: string;
|
|
40
|
+
fallback?: React.ReactNode;
|
|
41
|
+
loading?: "eager" | "lazy";
|
|
42
|
+
decoding?: "async" | "auto" | "sync";
|
|
43
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
44
|
+
referrerPolicy?: React.HTMLAttributeReferrerPolicy;
|
|
45
|
+
sizes?: string;
|
|
46
|
+
srcSet?: string;
|
|
47
|
+
onLoad?: React.ReactEventHandler<HTMLImageElement>;
|
|
48
|
+
onError?: React.ReactEventHandler<HTMLImageElement>;
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const ImageFrame = React.forwardRef<HTMLDivElement, ImageFrameProps>(
|
|
53
|
+
(
|
|
54
|
+
{
|
|
55
|
+
ratio = 4 / 3,
|
|
56
|
+
src,
|
|
57
|
+
alt,
|
|
58
|
+
fallback,
|
|
59
|
+
className,
|
|
60
|
+
loading,
|
|
61
|
+
decoding,
|
|
62
|
+
crossOrigin,
|
|
63
|
+
referrerPolicy,
|
|
64
|
+
sizes,
|
|
65
|
+
srcSet,
|
|
66
|
+
onLoad,
|
|
67
|
+
onError,
|
|
68
|
+
children,
|
|
69
|
+
...rest
|
|
70
|
+
},
|
|
71
|
+
ref,
|
|
72
|
+
) => {
|
|
73
|
+
const [variantProps, restProps] = imageFrameRecipe.splitVariantProps(rest);
|
|
74
|
+
const classNames = imageFrameRecipe(variantProps);
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<AspectRatio ref={ref} ratio={ratio} className={className} {...restProps}>
|
|
78
|
+
<Image.Root className={classNames.root}>
|
|
79
|
+
<Image.Content
|
|
80
|
+
className={classNames.content}
|
|
81
|
+
src={src}
|
|
82
|
+
alt={alt}
|
|
83
|
+
loading={loading}
|
|
84
|
+
decoding={decoding}
|
|
85
|
+
crossOrigin={crossOrigin}
|
|
86
|
+
referrerPolicy={referrerPolicy}
|
|
87
|
+
sizes={sizes}
|
|
88
|
+
srcSet={srcSet}
|
|
89
|
+
onLoad={onLoad}
|
|
90
|
+
onError={onError}
|
|
91
|
+
/>
|
|
92
|
+
{fallback && <Image.Fallback className={classNames.fallback}>{fallback}</Image.Fallback>}
|
|
93
|
+
{children}
|
|
94
|
+
</Image.Root>
|
|
95
|
+
</AspectRatio>
|
|
96
|
+
);
|
|
97
|
+
},
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
ImageFrame.displayName = "ImageFrame";
|
|
101
|
+
|
|
102
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
103
|
+
|
|
104
|
+
export interface ImageFrameFloaterProps extends FloatProps {}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* ImageFrame 내에서 오버레이 요소를 배치하기 위한 컴포넌트
|
|
108
|
+
*
|
|
109
|
+
* @remarks
|
|
110
|
+
* offsetX, offsetY 기본값은 rootage 스펙(image-frame-floater)에서 가져옵니다.
|
|
111
|
+
*/
|
|
112
|
+
export const ImageFrameFloater = React.forwardRef<HTMLDivElement, ImageFrameFloaterProps>(
|
|
113
|
+
(
|
|
114
|
+
{
|
|
115
|
+
offsetX = floaterVars.base.enabled.root.offset,
|
|
116
|
+
offsetY = floaterVars.base.enabled.root.offset,
|
|
117
|
+
...rest
|
|
118
|
+
},
|
|
119
|
+
ref,
|
|
120
|
+
) => {
|
|
121
|
+
return <Float ref={ref} offsetX={offsetX} offsetY={offsetY} {...rest} />;
|
|
122
|
+
},
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
ImageFrameFloater.displayName = "ImageFrameFloater";
|
|
126
|
+
|
|
127
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
128
|
+
|
|
129
|
+
export interface ImageFrameBadgeProps extends BadgeProps {}
|
|
130
|
+
|
|
131
|
+
export const ImageFrameBadge = React.forwardRef<HTMLSpanElement, ImageFrameBadgeProps>(
|
|
132
|
+
(props, ref) => {
|
|
133
|
+
return <Badge ref={ref} {...props} />;
|
|
134
|
+
},
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
ImageFrameBadge.displayName = "ImageFrameBadge";
|
|
138
|
+
|
|
139
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
140
|
+
|
|
141
|
+
export interface ImageFrameIconProps
|
|
142
|
+
extends ImageFrameIconVariantProps,
|
|
143
|
+
Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
144
|
+
svg: React.ReactNode;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export const ImageFrameIcon = React.forwardRef<HTMLSpanElement, ImageFrameIconProps>(
|
|
148
|
+
({ svg, className, ...rest }, ref) => {
|
|
149
|
+
return (
|
|
150
|
+
<span ref={ref} className={clsx(imageFrameIcon(), className)} {...rest}>
|
|
151
|
+
<Icon svg={svg} />
|
|
152
|
+
</span>
|
|
153
|
+
);
|
|
154
|
+
},
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
ImageFrameIcon.displayName = "ImageFrameIcon";
|
|
158
|
+
|
|
159
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
160
|
+
|
|
161
|
+
export interface ImageFrameIndicatorProps
|
|
162
|
+
extends ImageFrameIndicatorVariantProps,
|
|
163
|
+
React.HTMLAttributes<HTMLSpanElement> {
|
|
164
|
+
children: React.ReactNode;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export const ImageFrameIndicator = React.forwardRef<HTMLSpanElement, ImageFrameIndicatorProps>(
|
|
168
|
+
({ children, className, ...rest }, ref) => {
|
|
169
|
+
return (
|
|
170
|
+
<span ref={ref} className={clsx(imageFrameIndicator(), className)} {...rest}>
|
|
171
|
+
{children}
|
|
172
|
+
</span>
|
|
173
|
+
);
|
|
174
|
+
},
|
|
175
|
+
);
|
|
176
|
+
|
|
177
|
+
ImageFrameIndicator.displayName = "ImageFrameIndicator";
|
|
178
|
+
|
|
179
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
180
|
+
|
|
181
|
+
const {
|
|
182
|
+
ClassNamesProvider: ImageFrameReactionButtonClassNamesProvider,
|
|
183
|
+
useClassNames: useImageFrameReactionButtonClassNames,
|
|
184
|
+
} = createSlotRecipeContext(imageFrameReactionButton);
|
|
185
|
+
|
|
186
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
187
|
+
|
|
188
|
+
const HeartFillPath =
|
|
189
|
+
"M15.5452 10C11.7873 10 9.25 12.9484 9.25 16.6267C9.25 19.8754 11.1219 22.0952 13.1877 23.969C13.7807 24.5069 14.4438 25.0617 15.095 25.6066C15.5434 25.9817 15.9862 26.3522 16.3967 26.7093C17.4501 27.6257 18.4191 28.557 19.1995 29.5994C19.3886 29.8518 19.6856 30.0003 20.001 30C20.3163 29.9997 20.6131 29.8507 20.8016 29.5979C21.5785 28.5562 22.5453 27.6253 23.598 26.7091C24.0105 26.35 24.4568 25.9766 24.9089 25.5984C25.5573 25.0559 26.2176 24.5035 26.807 23.9693C28.8739 22.096 30.75 19.8761 30.75 16.6267C30.75 12.9484 28.2127 10 24.4548 10C22.6365 10 21.1002 11.0545 20 12.4906C18.8998 11.0545 17.3635 10 15.5452 10Z";
|
|
190
|
+
|
|
191
|
+
const HeartOutlineStrokePath =
|
|
192
|
+
"M15.5452 12C13.0342 12 11.25 13.905 11.25 16.6267C11.25 18.9912 12.5659 20.7048 14.5314 22.4876C15.1157 23.0176 15.7038 23.5087 16.3148 24.019C16.7646 24.3946 17.2269 24.7807 17.7093 25.2003C18.4947 25.8835 19.2814 26.6141 19.9988 27.4215C20.7144 26.614 21.5001 25.8836 22.2849 25.2005C22.7714 24.7771 23.2368 24.3885 23.6895 24.0105C24.2967 23.5035 24.8813 23.0154 25.4639 22.4874C27.4317 20.704 28.75 18.9906 28.75 16.6267C28.75 13.905 26.9658 12 24.4548 12C23.069 12 21.747 12.8325 20.8919 14.5189C20.7215 14.8549 20.3768 15.0667 20 15.0667C19.6233 15.0667 19.2785 14.8549 19.1081 14.5189C18.2531 12.8325 16.931 12 15.5452 12ZM9.25 16.6267C9.25 12.9484 11.7873 10 15.5452 10C17.3146 10 18.8683 10.8364 20 12.2306C21.1317 10.8364 22.6854 10 24.4548 10C28.2127 10 30.75 12.9484 30.75 16.6267C30.75 19.8761 28.8739 22.096 26.807 23.9693C26.2176 24.5035 25.5573 25.0559 24.9089 25.5984C24.4568 25.9766 24.0105 26.35 23.598 26.7091C22.5453 27.6253 21.5785 28.5562 20.8016 29.5979C20.6131 29.8507 20.3163 29.9997 20.001 30C19.6856 30.0003 19.3886 29.8518 19.1995 29.5994C18.4191 28.557 17.4501 27.6257 16.3967 26.7093C15.9862 26.3522 15.5434 25.9817 15.095 25.6066C14.4438 25.0617 13.7807 24.5069 13.1877 23.969C11.1219 22.0952 9.25 19.8754 9.25 16.6267Z";
|
|
193
|
+
|
|
194
|
+
const HeartFillSvg = (props: React.SVGAttributes<SVGSVGElement>) => {
|
|
195
|
+
const id = React.useId();
|
|
196
|
+
const gradientId = `seed-heart-gradient${id.replace(/:/g, "")}`;
|
|
197
|
+
|
|
198
|
+
return (
|
|
199
|
+
<svg
|
|
200
|
+
width="100%"
|
|
201
|
+
height="100%"
|
|
202
|
+
viewBox="8 9 24 24"
|
|
203
|
+
fill="none"
|
|
204
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
205
|
+
aria-hidden="true"
|
|
206
|
+
{...props}
|
|
207
|
+
>
|
|
208
|
+
<path d={HeartFillPath} fill={`url(#${gradientId})`} />
|
|
209
|
+
<defs>
|
|
210
|
+
<linearGradient
|
|
211
|
+
id={gradientId}
|
|
212
|
+
x1="7"
|
|
213
|
+
y1="8.5"
|
|
214
|
+
x2="26.0974"
|
|
215
|
+
y2="10.5391"
|
|
216
|
+
gradientUnits="userSpaceOnUse"
|
|
217
|
+
>
|
|
218
|
+
<stop stopColor="#FF9A56" />
|
|
219
|
+
<stop offset="1" stopColor="#FF6600" />
|
|
220
|
+
</linearGradient>
|
|
221
|
+
</defs>
|
|
222
|
+
</svg>
|
|
223
|
+
);
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
const HeartLineSvg = (props: React.SVGAttributes<SVGSVGElement>) => (
|
|
227
|
+
<svg
|
|
228
|
+
width="100%"
|
|
229
|
+
height="100%"
|
|
230
|
+
viewBox="8 9 24 24"
|
|
231
|
+
fill="none"
|
|
232
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
233
|
+
aria-hidden="true"
|
|
234
|
+
{...props}
|
|
235
|
+
>
|
|
236
|
+
<path fillRule="evenodd" clipRule="evenodd" d={HeartOutlineStrokePath} fill="currentColor" />
|
|
237
|
+
</svg>
|
|
238
|
+
);
|
|
239
|
+
|
|
240
|
+
export interface ImageFrameReactionButtonProps
|
|
241
|
+
extends Omit<TogglePrimitive.RootProps, "children"> {}
|
|
242
|
+
|
|
243
|
+
const ReactionButtonIcon = () => {
|
|
244
|
+
const { pressed, stateProps } = useToggleContext();
|
|
245
|
+
const classNames = useImageFrameReactionButtonClassNames();
|
|
246
|
+
const iconProps = mergeProps(stateProps, {
|
|
247
|
+
className: pressed ? classNames.fillIcon : classNames.lineIcon,
|
|
248
|
+
} as React.HTMLAttributes<HTMLElement>);
|
|
249
|
+
|
|
250
|
+
return <InternalIcon svg={pressed ? <HeartFillSvg /> : <HeartLineSvg />} {...iconProps} />;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export const ImageFrameReactionButton = React.forwardRef<
|
|
254
|
+
HTMLButtonElement,
|
|
255
|
+
ImageFrameReactionButtonProps
|
|
256
|
+
>(({ className, ...rest }, ref) => {
|
|
257
|
+
const classNames = imageFrameReactionButton();
|
|
258
|
+
|
|
259
|
+
return (
|
|
260
|
+
<ImageFrameReactionButtonClassNamesProvider value={classNames}>
|
|
261
|
+
<TogglePrimitive.Root ref={ref} className={clsx(classNames.root, className)} {...rest}>
|
|
262
|
+
<ReactionButtonIcon />
|
|
263
|
+
</TogglePrimitive.Root>
|
|
264
|
+
</ImageFrameReactionButtonClassNamesProvider>
|
|
265
|
+
);
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
ImageFrameReactionButton.displayName = "ImageFrameReactionButton";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ImageFrame,
|
|
3
|
+
ImageFrameFloater,
|
|
4
|
+
ImageFrameBadge,
|
|
5
|
+
ImageFrameIcon,
|
|
6
|
+
ImageFrameIndicator,
|
|
7
|
+
ImageFrameReactionButton,
|
|
8
|
+
type ImageFrameProps,
|
|
9
|
+
type ImageFrameFloaterProps,
|
|
10
|
+
type ImageFrameBadgeProps,
|
|
11
|
+
type ImageFrameIconProps,
|
|
12
|
+
type ImageFrameIndicatorProps,
|
|
13
|
+
type ImageFrameReactionButtonProps,
|
|
14
|
+
} from "./ImageFrame";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Box, type BoxProps } from "../Box/Box";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use `HStack` instead.
|
|
6
|
+
*/
|
|
7
|
+
export interface InlineProps extends Omit<BoxProps, "display" | "direction" | "flexWrap"> {}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `HStack` instead.
|
|
11
|
+
*/
|
|
12
|
+
export const Inline = React.forwardRef<HTMLDivElement, InlineProps>((props, ref) => {
|
|
13
|
+
return (
|
|
14
|
+
<Box
|
|
15
|
+
ref={ref}
|
|
16
|
+
display="flex"
|
|
17
|
+
flexDirection="row"
|
|
18
|
+
flexWrap="wrap"
|
|
19
|
+
alignItems="flex-start"
|
|
20
|
+
justifyContent="flex-start"
|
|
21
|
+
{...props}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Inline, type InlineProps } from "./Inline";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export {
|
|
2
|
+
InlineBannerCloseButton as CloseButton,
|
|
3
|
+
InlineBannerContent as Content,
|
|
4
|
+
InlineBannerDescription as Description,
|
|
5
|
+
InlineBannerLink as Link,
|
|
6
|
+
InlineBannerRoot as Root,
|
|
7
|
+
InlineBannerTitle as Title,
|
|
8
|
+
type InlineBannerCloseButtonProps as CloseButtonProps,
|
|
9
|
+
type InlineBannerContentProps as ContentProps,
|
|
10
|
+
type InlineBannerDescriptionProps as DescriptionProps,
|
|
11
|
+
type InlineBannerLinkProps as LinkProps,
|
|
12
|
+
type InlineBannerRootProps as RootProps,
|
|
13
|
+
type InlineBannerTitleProps as TitleProps,
|
|
14
|
+
} from "./InlineBanner";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
inlineBanner,
|
|
5
|
+
type InlineBannerVariantProps,
|
|
6
|
+
} from "@seed-design/css/recipes/inline-banner";
|
|
7
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
8
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
9
|
+
import {
|
|
10
|
+
DismissibleCloseButton,
|
|
11
|
+
DismissibleRoot,
|
|
12
|
+
type DismissibleRootProps,
|
|
13
|
+
} from "../private/useDismissible";
|
|
14
|
+
|
|
15
|
+
const { withContext, withProvider } = createSlotRecipeContext(inlineBanner);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `PageBanner` instead.
|
|
19
|
+
*/
|
|
20
|
+
export interface InlineBannerRootProps extends InlineBannerVariantProps, DismissibleRootProps {}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `PageBanner` instead.
|
|
24
|
+
*/
|
|
25
|
+
export const InlineBannerRoot = withProvider<HTMLDivElement, InlineBannerRootProps>(
|
|
26
|
+
DismissibleRoot,
|
|
27
|
+
"root",
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use `PageBanner` instead.
|
|
32
|
+
*/
|
|
33
|
+
export interface InlineBannerContentProps
|
|
34
|
+
extends PrimitiveProps,
|
|
35
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use `PageBanner` instead.
|
|
39
|
+
*/
|
|
40
|
+
export const InlineBannerContent = withContext<HTMLDivElement, InlineBannerContentProps>(
|
|
41
|
+
Primitive.div,
|
|
42
|
+
"content",
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use `PageBanner` instead.
|
|
47
|
+
*/
|
|
48
|
+
export interface InlineBannerTitleProps
|
|
49
|
+
extends PrimitiveProps,
|
|
50
|
+
React.HTMLAttributes<HTMLSpanElement> {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use `PageBanner` instead.
|
|
54
|
+
*/
|
|
55
|
+
export const InlineBannerTitle = withContext<HTMLSpanElement, InlineBannerTitleProps>(
|
|
56
|
+
Primitive.span,
|
|
57
|
+
"title",
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use `PageBanner` instead.
|
|
62
|
+
*/
|
|
63
|
+
export interface InlineBannerDescriptionProps
|
|
64
|
+
extends PrimitiveProps,
|
|
65
|
+
React.HTMLAttributes<HTMLSpanElement> {}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use `PageBanner` instead.
|
|
69
|
+
*/
|
|
70
|
+
export const InlineBannerDescription = withContext<HTMLSpanElement, InlineBannerDescriptionProps>(
|
|
71
|
+
Primitive.span,
|
|
72
|
+
"description",
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Use `PageBanner` instead.
|
|
77
|
+
*/
|
|
78
|
+
export interface InlineBannerLinkProps
|
|
79
|
+
extends PrimitiveProps,
|
|
80
|
+
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated Use `PageBanner` instead.
|
|
84
|
+
*/
|
|
85
|
+
export const InlineBannerLink = withContext<HTMLButtonElement, InlineBannerLinkProps>(
|
|
86
|
+
Primitive.button,
|
|
87
|
+
"link",
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated Use `PageBanner` instead.
|
|
92
|
+
*/
|
|
93
|
+
export interface InlineBannerCloseButtonProps
|
|
94
|
+
extends PrimitiveProps,
|
|
95
|
+
React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Use `PageBanner` instead.
|
|
99
|
+
*/
|
|
100
|
+
export const InlineBannerCloseButton = withContext<HTMLButtonElement, InlineBannerCloseButtonProps>(
|
|
101
|
+
DismissibleCloseButton,
|
|
102
|
+
"closeButton",
|
|
103
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export {
|
|
2
|
+
InlineBannerCloseButton,
|
|
3
|
+
InlineBannerContent,
|
|
4
|
+
InlineBannerDescription,
|
|
5
|
+
InlineBannerLink,
|
|
6
|
+
InlineBannerRoot,
|
|
7
|
+
InlineBannerTitle,
|
|
8
|
+
type InlineBannerCloseButtonProps,
|
|
9
|
+
type InlineBannerContentProps,
|
|
10
|
+
type InlineBannerDescriptionProps,
|
|
11
|
+
type InlineBannerLinkProps,
|
|
12
|
+
type InlineBannerRootProps,
|
|
13
|
+
type InlineBannerTitleProps,
|
|
14
|
+
} from "./InlineBanner";
|
|
15
|
+
|
|
16
|
+
export * as InlineBanner from "./InlineBanner.namespace";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { linkContent, type LinkContentVariantProps } from "@seed-design/css/recipes/link-content";
|
|
2
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
3
|
+
import { createRecipeContext } from "../../utils/createRecipeContext";
|
|
4
|
+
import type * as React from "react";
|
|
5
|
+
import { withStyleProps, type StyleProps } from "../../utils/styled";
|
|
6
|
+
|
|
7
|
+
const { withContext } = createRecipeContext(linkContent);
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `ActionButton` with variant="ghost" instead.
|
|
11
|
+
*/
|
|
12
|
+
export interface LinkContentProps
|
|
13
|
+
extends LinkContentVariantProps,
|
|
14
|
+
PrimitiveProps,
|
|
15
|
+
Pick<StyleProps, "color">,
|
|
16
|
+
Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `ActionButton` with variant="ghost" instead.
|
|
20
|
+
*/
|
|
21
|
+
export const LinkContent = withContext<HTMLButtonElement, LinkContentProps>(
|
|
22
|
+
withStyleProps(Primitive.span),
|
|
23
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ListContent as Content,
|
|
3
|
+
ListDetail as Detail,
|
|
4
|
+
ListItem as Item,
|
|
5
|
+
ListPrefix as Prefix,
|
|
6
|
+
ListRoot as Root,
|
|
7
|
+
ListSuffix as Suffix,
|
|
8
|
+
ListTitle as Title,
|
|
9
|
+
type ListContentProps as ContentProps,
|
|
10
|
+
type ListDetailProps as DetailProps,
|
|
11
|
+
type ListItemProps as ItemProps,
|
|
12
|
+
type ListPrefixProps as PrefixProps,
|
|
13
|
+
type ListRootProps as RootProps,
|
|
14
|
+
type ListSuffixProps as SuffixProps,
|
|
15
|
+
type ListTitleProps as TitleProps,
|
|
16
|
+
} from "./List";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
|
|
3
|
+
import { listItem, type ListItemVariantProps } from "@seed-design/css/recipes/list-item";
|
|
4
|
+
import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { createSlotRecipeContext } from "../../utils/createSlotRecipeContext";
|
|
7
|
+
import { handleRadius, withStyleProps, type StyleProps } from "../../utils/styled";
|
|
8
|
+
import { VStack, type VStackProps } from "../Stack";
|
|
9
|
+
import { useCheckboxContext } from "@seed-design/react-checkbox";
|
|
10
|
+
import { createWithStateProps } from "../../utils/createWithStateProps";
|
|
11
|
+
import { useRadioGroupItemContext } from "@seed-design/react-radio-group";
|
|
12
|
+
import { useSwitchContext } from "@seed-design/react-switch";
|
|
13
|
+
|
|
14
|
+
const { withContext, withProvider } = createSlotRecipeContext(listItem);
|
|
15
|
+
const withStateProps = createWithStateProps([
|
|
16
|
+
{ useContext: useCheckboxContext, strict: false },
|
|
17
|
+
{ useContext: useRadioGroupItemContext, strict: false },
|
|
18
|
+
{ useContext: useSwitchContext, strict: false },
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
export interface ListRootProps extends VStackProps {
|
|
22
|
+
itemBorderRadius?: StyleProps["borderRadius"];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const ListRoot = forwardRef<HTMLUListElement, ListRootProps>(
|
|
26
|
+
({ as = "ul", style, itemBorderRadius, ...props }, ref) => {
|
|
27
|
+
return (
|
|
28
|
+
<VStack
|
|
29
|
+
as={as}
|
|
30
|
+
ref={ref as React.ForwardedRef<HTMLDivElement>}
|
|
31
|
+
style={
|
|
32
|
+
{
|
|
33
|
+
...style,
|
|
34
|
+
"--list-item-border-radius": handleRadius(itemBorderRadius),
|
|
35
|
+
} as React.CSSProperties
|
|
36
|
+
}
|
|
37
|
+
{...props}
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export interface ListItemProps
|
|
44
|
+
extends PrimitiveProps,
|
|
45
|
+
Pick<StyleProps, "alignItems">,
|
|
46
|
+
React.HTMLAttributes<HTMLLIElement>,
|
|
47
|
+
ListItemVariantProps {}
|
|
48
|
+
|
|
49
|
+
export const ListItem = withProvider<HTMLLIElement, ListItemProps>(
|
|
50
|
+
withStateProps(withStyleProps(Primitive.li)),
|
|
51
|
+
"root",
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export interface ListContentProps
|
|
55
|
+
extends PrimitiveProps,
|
|
56
|
+
Pick<StyleProps, "gap" | "pr" | "paddingRight">,
|
|
57
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
58
|
+
|
|
59
|
+
export const ListContent = withContext<HTMLDivElement, ListContentProps>(
|
|
60
|
+
withStateProps(withStyleProps(Primitive.div)),
|
|
61
|
+
"content",
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
export interface ListPrefixProps
|
|
65
|
+
extends PrimitiveProps,
|
|
66
|
+
Pick<StyleProps, "pr" | "paddingRight">,
|
|
67
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
68
|
+
|
|
69
|
+
export const ListPrefix = withContext<HTMLDivElement, ListPrefixProps>(
|
|
70
|
+
withStateProps(withStyleProps(Primitive.div)),
|
|
71
|
+
"prefix",
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export interface ListSuffixProps
|
|
75
|
+
extends PrimitiveProps,
|
|
76
|
+
Pick<StyleProps, "gap" | "position">,
|
|
77
|
+
React.HTMLAttributes<HTMLDivElement> {}
|
|
78
|
+
|
|
79
|
+
export const ListSuffix = withContext<HTMLDivElement, ListSuffixProps>(
|
|
80
|
+
withStateProps(withStyleProps(Primitive.div)),
|
|
81
|
+
"suffix",
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
export interface ListTitleProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {}
|
|
85
|
+
|
|
86
|
+
export const ListTitle = withContext<HTMLDivElement, ListTitleProps>(
|
|
87
|
+
withStateProps(Primitive.div),
|
|
88
|
+
"title",
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
export interface ListDetailProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {}
|
|
92
|
+
|
|
93
|
+
export const ListDetail = withContext<HTMLDivElement, ListDetailProps>(
|
|
94
|
+
withStateProps(Primitive.div),
|
|
95
|
+
"detail",
|
|
96
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { listHeader, type ListHeaderVariantProps } from "@seed-design/css/recipes/list-header";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import type { PrimitiveProps } from "@seed-design/react-primitive";
|
|
5
|
+
|
|
6
|
+
export interface ListHeaderProps
|
|
7
|
+
extends PrimitiveProps,
|
|
8
|
+
React.HTMLAttributes<HTMLDivElement>,
|
|
9
|
+
ListHeaderVariantProps {
|
|
10
|
+
/**
|
|
11
|
+
* @default "div"
|
|
12
|
+
*/
|
|
13
|
+
as?: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const ListHeader = forwardRef<HTMLDivElement, ListHeaderProps>(
|
|
17
|
+
({ as: Comp = "div", ...props }, ref) => {
|
|
18
|
+
const [variantProps, otherProps] = listHeader.splitVariantProps(props);
|
|
19
|
+
const className = listHeader(variantProps);
|
|
20
|
+
|
|
21
|
+
return <Comp ref={ref} {...otherProps} className={clsx(className, props.className)} />;
|
|
22
|
+
},
|
|
23
|
+
);
|
|
24
|
+
ListHeader.displayName = "ListHeader";
|