glints-aries 4.0.149 → 4.0.152
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/es/Display/Accordion/Accordion.js +4 -3
- package/es/Display/Accordion/AccordionPanel.d.ts +2 -2
- package/es/Display/Accordion/AccordionPanel.js +2 -1
- package/es/Display/Collapsible/Collapsible.js +2 -1
- package/es/Display/Collapsible/Collapsible.stories.js +2 -1
- package/es/Display/Gallery/GalleryStyle.js +5 -5
- package/es/Display/Modal/Modal.js +2 -1
- package/es/Display/Modal/Modal.stories.js +2 -1
- package/es/Display/Modal/ModalStyle.js +6 -6
- package/es/Display/PointingModal/PointingModal.d.ts +2 -2
- package/es/Display/PointingModal/PointingModal.js +2 -1
- package/es/Display/PointingModal/PointingModalBody.d.ts +2 -2
- package/es/Display/PointingModal/PointingModalBody.js +2 -1
- package/es/Display/PointingModal/PointingModalFooter.js +2 -1
- package/es/Display/PointingModal/PointingModalHeader.d.ts +2 -2
- package/es/Display/PointingModal/PointingModalHeader.js +2 -1
- package/es/Display/PointingModal/PointingModalItem.d.ts +2 -2
- package/es/Display/PointingModal/PointingModalItem.js +2 -1
- package/es/Display/PointingModal/PointingModalStyle.js +6 -6
- package/es/Display/Slider/Slider.d.ts +1 -1
- package/es/Display/Slider/Slider.js +2 -1
- package/es/Display/Swipeable/SwipeableItem.d.ts +2 -2
- package/es/Display/Swipeable/SwipeableItem.js +2 -1
- package/es/Display/Swipeable/SwipeableStyle.js +3 -3
- package/es/Display/Tabs/TabPane.d.ts +2 -2
- package/es/Display/Tabs/TabPane.js +2 -1
- package/es/Display/Tabs/TabsStyle.js +4 -4
- package/es/Display/Tooltip/Tooltip.js +2 -1
- package/es/Display/Tooltip/Tooltip.stories.js +5 -3
- package/es/Display/Tooltip/TooltipStyle.d.ts +1 -2
- package/es/General/Alert/AlertStyle.js +4 -4
- package/es/General/Badge/Badge.d.ts +2 -2
- package/es/General/Badge/Badge.js +2 -1
- package/es/General/Badge/Badge.stories.js +1 -1
- package/es/General/Badge/BadgeStyle.js +1 -1
- package/es/General/Brand/Brand.d.ts +2 -2
- package/es/General/Brand/Brand.js +2 -1
- package/es/General/Brand/BrandStyle.js +2 -2
- package/es/General/Button/Button.js +2 -1
- package/es/General/Button/ButtonStyle.js +11 -11
- package/es/General/Button/GhostButton.d.ts +32 -5
- package/es/General/Button/GhostButton.js +2 -1
- package/es/General/Button/LinkButton.d.ts +28 -5
- package/es/General/Button/LinkButton.js +2 -1
- package/es/General/Button/SolidButton.d.ts +32 -5
- package/es/General/Button/SolidButton.js +2 -1
- package/es/General/Button/SolidShadowButton.d.ts +31 -5
- package/es/General/Button/SolidShadowButton.js +2 -1
- package/es/General/Divider/Divider.js +2 -1
- package/es/General/Heading/Heading.js +2 -1
- package/es/General/Heading/Heading.stories.js +2 -1
- package/es/General/Icon/Icon.js +2 -1
- package/es/General/Icon/IconStyle.js +1 -1
- package/es/General/Icon/components/MessageOutlineIcon.d.ts +4 -0
- package/es/General/Icon/components/MessageOutlineIcon.js +14 -0
- package/es/General/Icon/components/MessageOutlineIncomingIcon.d.ts +4 -0
- package/es/General/Icon/components/MessageOutlineIncomingIcon.js +20 -0
- package/es/General/Icon/components/index.d.ts +2 -0
- package/es/General/Icon/components/index.js +2 -0
- package/es/General/Loading/LoadingStyle.js +2 -2
- package/es/General/ProfilePicture/ProfilePicture.d.ts +2 -2
- package/es/General/ProfilePicture/ProfilePicture.js +2 -1
- package/es/General/ProfilePicture/ProfilePictureStyle.js +2 -2
- package/es/General/Tag/ActionTags/AddTag.js +1 -1
- package/es/General/Tag/ActionTags/ResetTag.js +1 -1
- package/es/General/Tag/BasicTag.d.ts +2 -2
- package/es/General/Tag/BasicTag.js +2 -1
- package/es/General/Tag/Tag.js +2 -1
- package/es/General/Typography/Paragraph.js +2 -1
- package/es/General/Typography/Title.js +2 -1
- package/es/Input/Checkbox/Checkbox.js +2 -1
- package/es/Input/Checkbox/CheckboxStyle.js +1 -1
- package/es/Input/Datepicker/Datepicker.d.ts +1 -1
- package/es/Input/Datepicker/DatepickerStyle.js +12 -12
- package/es/Input/DownshiftSelect/Select.js +4 -3
- package/es/Input/DownshiftSelect/Select.stories.js +8 -8
- package/es/Input/DownshiftSelect/SelectStyle.js +16 -16
- package/es/Input/NumberInput/NumberInput.d.ts +2 -2
- package/es/Input/PhoneNumberInput/PhoneNumberInput.js +4 -3
- package/es/Input/RadioButton/RadioButton.d.ts +1 -1
- package/es/Input/RadioButton/RadioButton.js +2 -1
- package/es/Input/Select/Select.d.ts +2 -2
- package/es/Input/Select/Select.js +13 -12
- package/es/Input/Select/SelectItem.d.ts +2 -2
- package/es/Input/Select/SelectItem.js +2 -1
- package/es/Input/Select/SelectList.js +2 -1
- package/es/Input/Select/SelectStyle.js +7 -7
- package/es/Input/TextField/TextField.d.ts +65 -3
- package/es/Input/TextField/TextField.js +6 -4
- package/es/Input/TextField/TextField.stories.d.ts +1 -0
- package/es/Input/TextField/TextField.stories.js +6 -0
- package/es/Input/TextField/TextFieldStyle.d.ts +1 -0
- package/es/Input/TextField/TextFieldStyle.js +7 -3
- package/es/Input/Textarea/Textarea.js +3 -2
- package/es/Input/ToggleSwitch/Styles.js +2 -2
- package/es/Input/ToggleSwitch/ToggleSwitch.js +2 -1
- package/es/Layout/Box/constants.js +2 -2
- package/es/Layout/Box/index.js +1 -1
- package/es/Layout/Box/types.js +1 -0
- package/es/Layout/Flex/Flex.stories.js +2 -2
- package/es/Layout/Flex/FlexStoryStyle.js +2 -2
- package/es/Layout/Flex/index.d.ts +3 -1
- package/es/Layout/Flex/index.js +2 -1
- package/es/Layout/Grid/Col.js +2 -1
- package/es/Layout/Grid/Row.js +2 -1
- package/es/Navigation/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/es/Navigation/Breadcrumb/Breadcrumb.js +2 -1
- package/es/Navigation/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/es/Navigation/Breadcrumb/BreadcrumbItem.js +2 -1
- package/es/Navigation/Breadcrumb/BreadcrumbStyle.js +2 -2
- package/es/Navigation/Drawer/Drawer.d.ts +1 -1
- package/es/Navigation/Drawer/Drawer.js +3 -2
- package/es/Navigation/Dropdown/Dropdown.js +2 -1
- package/es/Navigation/Dropdown/DropdownItem.d.ts +2 -2
- package/es/Navigation/Dropdown/DropdownItem.js +2 -1
- package/es/Utils/Icon/IconLibrary.d.ts +2 -0
- package/es/Utils/Icon/IconLibrary.js +16 -0
- package/es/Utils/Shadow/ShadowsStoriesHelpers.js +2 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/lib/Display/Accordion/Accordion.js +9 -5
- package/lib/Display/Accordion/Accordion.stories.js +1 -1
- package/lib/Display/Accordion/AccordionPanel.d.ts +2 -2
- package/lib/Display/Accordion/AccordionPanel.js +7 -3
- package/lib/Display/Accordion/AccordionStyle.js +5 -3
- package/lib/Display/Collapsible/Collapsible.js +7 -3
- package/lib/Display/Collapsible/Collapsible.stories.js +3 -2
- package/lib/Display/Collapsible/CollapsibleStyle.js +5 -3
- package/lib/Display/Gallery/Gallery.js +4 -2
- package/lib/Display/Gallery/Gallery.stories.js +1 -1
- package/lib/Display/Gallery/GalleryStyle.js +6 -6
- package/lib/Display/Modal/Modal.js +7 -3
- package/lib/Display/Modal/Modal.stories.js +8 -4
- package/lib/Display/Modal/ModalStyle.js +7 -7
- package/lib/Display/PointingModal/PointingModal.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModal.js +7 -3
- package/lib/Display/PointingModal/PointingModal.stories.js +1 -1
- package/lib/Display/PointingModal/PointingModalBody.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModalBody.js +7 -3
- package/lib/Display/PointingModal/PointingModalFooter.js +7 -3
- package/lib/Display/PointingModal/PointingModalHeader.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModalHeader.js +7 -3
- package/lib/Display/PointingModal/PointingModalItem.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModalItem.js +7 -3
- package/lib/Display/PointingModal/PointingModalStyle.js +7 -7
- package/lib/Display/Popover/Popover.js +4 -2
- package/lib/Display/Popover/Popover.stories.js +1 -1
- package/lib/Display/Popover/PopoverStyle.js +5 -3
- package/lib/Display/Slider/LeftArrow.js +4 -2
- package/lib/Display/Slider/RightArrow.js +4 -2
- package/lib/Display/Slider/Slider.d.ts +1 -1
- package/lib/Display/Slider/Slider.js +6 -3
- package/lib/Display/Slider/Slider.stories.js +1 -1
- package/lib/Display/Slider/SliderItem.js +4 -2
- package/lib/Display/Slider/SliderStyle.js +5 -3
- package/lib/Display/Swipeable/Swipeable.js +4 -2
- package/lib/Display/Swipeable/Swipeable.stories.js +1 -1
- package/lib/Display/Swipeable/SwipeableItem.d.ts +2 -2
- package/lib/Display/Swipeable/SwipeableItem.js +7 -3
- package/lib/Display/Swipeable/SwipeableStyle.js +4 -4
- package/lib/Display/Tabs/TabPane.d.ts +2 -2
- package/lib/Display/Tabs/TabPane.js +7 -3
- package/lib/Display/Tabs/Tabs.js +4 -2
- package/lib/Display/Tabs/Tabs.stories.js +1 -1
- package/lib/Display/Tabs/TabsStyle.js +5 -5
- package/lib/Display/Tooltip/Tooltip.js +7 -3
- package/lib/Display/Tooltip/Tooltip.stories.js +6 -4
- package/lib/Display/Tooltip/TooltipStyle.d.ts +1 -2
- package/lib/General/Alert/Alert.js +4 -2
- package/lib/General/Alert/Alert.stories.js +5 -3
- package/lib/General/Alert/AlertStyle.js +9 -7
- package/lib/General/Badge/Badge.d.ts +2 -2
- package/lib/General/Badge/Badge.js +7 -3
- package/lib/General/Badge/Badge.stories.js +2 -2
- package/lib/General/Badge/BadgeStyle.js +1 -1
- package/lib/General/Brand/Brand.d.ts +2 -2
- package/lib/General/Brand/Brand.js +7 -3
- package/lib/General/Brand/Brand.stories.js +1 -1
- package/lib/General/Brand/BrandStyle.js +2 -2
- package/lib/General/Button/Button.js +4 -2
- package/lib/General/Button/Button.stories.js +1 -1
- package/lib/General/Button/ButtonStyle.js +12 -12
- package/lib/General/Button/GhostButton.d.ts +32 -5
- package/lib/General/Button/GhostButton.js +7 -3
- package/lib/General/Button/LinkButton.d.ts +28 -5
- package/lib/General/Button/LinkButton.js +7 -3
- package/lib/General/Button/SolidButton.d.ts +32 -5
- package/lib/General/Button/SolidButton.js +7 -3
- package/lib/General/Button/SolidShadowButton.d.ts +31 -5
- package/lib/General/Button/SolidShadowButton.js +7 -3
- package/lib/General/Divider/Divider.js +3 -1
- package/lib/General/Divider/Divider.stories.js +5 -3
- package/lib/General/Heading/Heading.js +3 -1
- package/lib/General/Heading/Heading.stories.js +3 -2
- package/lib/General/Icon/Icon.js +8 -4
- package/lib/General/Icon/IconStoriesHelpers.js +5 -3
- package/lib/General/Icon/IconStyle.js +1 -1
- package/lib/General/Icon/LegacyIcon.js +4 -2
- package/lib/General/Icon/components/AddCircleOutlineIcon.js +4 -2
- package/lib/General/Icon/components/AddCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/AddIcon.js +4 -2
- package/lib/General/Icon/components/ArrowBackDoubleIcon.js +4 -2
- package/lib/General/Icon/components/ArrowBackIcon.js +4 -2
- package/lib/General/Icon/components/ArrowBackSolidIcon.js +4 -2
- package/lib/General/Icon/components/ArrowDownCircleOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ArrowDownIcon.js +4 -2
- package/lib/General/Icon/components/ArrowDownSolidIcon.js +4 -2
- package/lib/General/Icon/components/ArrowNextDoubleIcon.js +4 -2
- package/lib/General/Icon/components/ArrowNextIcon.js +4 -2
- package/lib/General/Icon/components/ArrowNextSolidIcon.js +4 -2
- package/lib/General/Icon/components/ArrowRoundBackIcon.js +4 -2
- package/lib/General/Icon/components/ArrowRoundForwardIcon.js +4 -2
- package/lib/General/Icon/components/ArrowUpIcon.js +4 -2
- package/lib/General/Icon/components/ArrowUpSolidIcon.js +4 -2
- package/lib/General/Icon/components/AsteriskSolidIcon.js +4 -2
- package/lib/General/Icon/components/AttachmentIcon.js +4 -2
- package/lib/General/Icon/components/BehanceIcon.js +4 -2
- package/lib/General/Icon/components/BellIcon.js +4 -2
- package/lib/General/Icon/components/BookmarkIcon.js +4 -2
- package/lib/General/Icon/components/BookmarkOutlineIcon.js +4 -2
- package/lib/General/Icon/components/BookmarkRoundedOutlineIcon.js +4 -2
- package/lib/General/Icon/components/BoxWithHandleSolidIcon.js +4 -2
- package/lib/General/Icon/components/BriefcaseSolidIcon.js +4 -2
- package/lib/General/Icon/components/BuildingSolidIcon.js +4 -2
- package/lib/General/Icon/components/BulletListIcon.js +4 -2
- package/lib/General/Icon/components/CalendarIcon.js +4 -2
- package/lib/General/Icon/components/CameraIcon.js +4 -2
- package/lib/General/Icon/components/ChecklistIcon.js +4 -2
- package/lib/General/Icon/components/CheckmarkIcon.js +4 -2
- package/lib/General/Icon/components/CheckmarkSolidIcon.js +4 -2
- package/lib/General/Icon/components/CheckmarkThickIcon.js +4 -2
- package/lib/General/Icon/components/CircleAndCheckIcon.js +4 -2
- package/lib/General/Icon/components/CircleIcon.js +4 -2
- package/lib/General/Icon/components/ClipboardCheckOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ClipboardIcon.js +4 -2
- package/lib/General/Icon/components/ClockIcon.js +4 -2
- package/lib/General/Icon/components/CloseCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/CloseIcon.js +4 -2
- package/lib/General/Icon/components/CloudDownloadIcon.js +4 -2
- package/lib/General/Icon/components/CloudUploadIcon.js +4 -2
- package/lib/General/Icon/components/CodepenIcon.js +4 -2
- package/lib/General/Icon/components/CommunityIcon.js +4 -2
- package/lib/General/Icon/components/CompassIcon.js +4 -2
- package/lib/General/Icon/components/ConnectionIcon.js +4 -2
- package/lib/General/Icon/components/CopyIcon.js +4 -2
- package/lib/General/Icon/components/CopyLinkIcon.js +4 -2
- package/lib/General/Icon/components/CopyOutlinedIcon.js +4 -2
- package/lib/General/Icon/components/CurrencyIcon.js +4 -2
- package/lib/General/Icon/components/DeleteIcon.js +4 -2
- package/lib/General/Icon/components/DiscountSolidIcon.js +4 -2
- package/lib/General/Icon/components/DocumentCheckIcon.js +4 -2
- package/lib/General/Icon/components/DotIcon.js +4 -2
- package/lib/General/Icon/components/DoubleCheckmarkIcon.js +4 -2
- package/lib/General/Icon/components/DoveIcon.js +4 -2
- package/lib/General/Icon/components/DownloadIcon.js +4 -2
- package/lib/General/Icon/components/DragArrowIcon.js +4 -2
- package/lib/General/Icon/components/DragStripesIcon.js +4 -2
- package/lib/General/Icon/components/EditIcon.js +4 -2
- package/lib/General/Icon/components/EditOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ExclamationIcon.js +4 -2
- package/lib/General/Icon/components/ExitFullScreenIcon.js +4 -2
- package/lib/General/Icon/components/ExternalLinkIcon.js +4 -2
- package/lib/General/Icon/components/EyeIcon.js +4 -2
- package/lib/General/Icon/components/EyeSlashedIcon.js +4 -2
- package/lib/General/Icon/components/EyeSolidIcon.js +4 -2
- package/lib/General/Icon/components/FacebookIcon.js +4 -2
- package/lib/General/Icon/components/FileAlternateIcon.js +4 -2
- package/lib/General/Icon/components/FileIcon.js +4 -2
- package/lib/General/Icon/components/FilePreviewIcon.js +4 -2
- package/lib/General/Icon/components/FileSolidIcon.js +4 -2
- package/lib/General/Icon/components/FilterIcon.js +4 -2
- package/lib/General/Icon/components/FlagIcon.js +4 -2
- package/lib/General/Icon/components/FolderIcon.js +4 -2
- package/lib/General/Icon/components/FullScreenIcon.js +4 -2
- package/lib/General/Icon/components/GithubIcon.js +4 -2
- package/lib/General/Icon/components/GlobeIcon.js +4 -2
- package/lib/General/Icon/components/GraduationHatIcon.js +4 -2
- package/lib/General/Icon/components/GroupIcon.js +4 -2
- package/lib/General/Icon/components/GuaranteeIcon.js +4 -2
- package/lib/General/Icon/components/HandIcon.js +4 -2
- package/lib/General/Icon/components/HandShakeIcon.js +4 -2
- package/lib/General/Icon/components/HeartIcon.js +4 -2
- package/lib/General/Icon/components/HeartSolidIcon.js +4 -2
- package/lib/General/Icon/components/HelpIcon.js +4 -2
- package/lib/General/Icon/components/HomeIcon.js +4 -2
- package/lib/General/Icon/components/HourglassIcon.js +4 -2
- package/lib/General/Icon/components/ImageIcon.js +4 -2
- package/lib/General/Icon/components/InfoIcon.js +4 -2
- package/lib/General/Icon/components/InfoSolidIcon.js +4 -2
- package/lib/General/Icon/components/InstagramIcon.js +4 -2
- package/lib/General/Icon/components/JobOutlineIcon.js +4 -2
- package/lib/General/Icon/components/JobSearchIcon.js +4 -2
- package/lib/General/Icon/components/LightbulbIcon.js +4 -2
- package/lib/General/Icon/components/LightningOutlineIcon.js +4 -2
- package/lib/General/Icon/components/LineIcon.js +4 -2
- package/lib/General/Icon/components/LinkedinIcon.js +4 -2
- package/lib/General/Icon/components/LoadingIcon.js +4 -2
- package/lib/General/Icon/components/LocationIcon.js +4 -2
- package/lib/General/Icon/components/LockSolidIcon.js +4 -2
- package/lib/General/Icon/components/MailIcon.js +4 -2
- package/lib/General/Icon/components/MailSolidIcon.js +4 -2
- package/lib/General/Icon/components/MedalIcon.js +4 -2
- package/lib/General/Icon/components/MenuHalfIcon.js +4 -2
- package/lib/General/Icon/components/MenuIcon.js +4 -2
- package/lib/General/Icon/components/MessageOutlineIcon.d.ts +4 -0
- package/lib/General/Icon/components/MessageOutlineIcon.js +27 -0
- package/lib/General/Icon/components/MessageOutlineIncomingIcon.d.ts +4 -0
- package/lib/General/Icon/components/MessageOutlineIncomingIcon.js +33 -0
- package/lib/General/Icon/components/MicIcon.js +4 -2
- package/lib/General/Icon/components/MicOffIcon.js +4 -2
- package/lib/General/Icon/components/MinusCircleIcon.js +4 -2
- package/lib/General/Icon/components/MinusCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/MinusIcon.js +4 -2
- package/lib/General/Icon/components/MoreHorizontalIcon.js +4 -2
- package/lib/General/Icon/components/MoreIcon.js +4 -2
- package/lib/General/Icon/components/NameTagIcon.js +4 -2
- package/lib/General/Icon/components/NotificationIcon.js +4 -2
- package/lib/General/Icon/components/NumberListIcon.js +4 -2
- package/lib/General/Icon/components/OnlineIcon.js +4 -2
- package/lib/General/Icon/components/PdfIcon.js +4 -2
- package/lib/General/Icon/components/PdfOutlineIcon.js +4 -2
- package/lib/General/Icon/components/PhoneIcon.js +4 -2
- package/lib/General/Icon/components/PowerIcon.js +4 -2
- package/lib/General/Icon/components/PuzzleIcon.js +4 -2
- package/lib/General/Icon/components/QuestionOutlineIcon.js +4 -2
- package/lib/General/Icon/components/QuotationIcon.js +4 -2
- package/lib/General/Icon/components/RefreshSolidIcon.js +4 -2
- package/lib/General/Icon/components/ReplyIcon.js +4 -2
- package/lib/General/Icon/components/ResumeOutlineIcon.js +4 -2
- package/lib/General/Icon/components/RotateIcon.js +4 -2
- package/lib/General/Icon/components/RssIcon.js +4 -2
- package/lib/General/Icon/components/SalaryIcon.js +4 -2
- package/lib/General/Icon/components/SaveSolidIcon.js +4 -2
- package/lib/General/Icon/components/SearchIcon.js +4 -2
- package/lib/General/Icon/components/SendIcon.js +4 -2
- package/lib/General/Icon/components/SettingIcon.js +4 -2
- package/lib/General/Icon/components/SettingSolidIcon.js +4 -2
- package/lib/General/Icon/components/ShareArrowIcon.js +4 -2
- package/lib/General/Icon/components/ShareArrowOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ShareIcon.js +4 -2
- package/lib/General/Icon/components/ShareOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ShareScreenIcon.js +4 -2
- package/lib/General/Icon/components/ShieldCheckIcon.js +4 -2
- package/lib/General/Icon/components/SpeakerIcon.js +4 -2
- package/lib/General/Icon/components/SpeechBubbleIcon.js +4 -2
- package/lib/General/Icon/components/SpeechBubbleOutlineIcon.js +4 -2
- package/lib/General/Icon/components/SpinnerIcon.js +4 -2
- package/lib/General/Icon/components/StackIcon.js +4 -2
- package/lib/General/Icon/components/StarCircleIcon.js +4 -2
- package/lib/General/Icon/components/StarIcon.js +4 -2
- package/lib/General/Icon/components/StarOutlineIcon.js +4 -2
- package/lib/General/Icon/components/TagIcon.js +4 -2
- package/lib/General/Icon/components/TaskIcon.js +4 -2
- package/lib/General/Icon/components/TelegramIcon.js +4 -2
- package/lib/General/Icon/components/ThumbsUpIcon.js +4 -2
- package/lib/General/Icon/components/ThumbsUpOutlineIcon.js +4 -2
- package/lib/General/Icon/components/TicketSolidIcon.js +4 -2
- package/lib/General/Icon/components/TieIcon.js +4 -2
- package/lib/General/Icon/components/TrashIcon.js +4 -2
- package/lib/General/Icon/components/TvPlayIcon.js +4 -2
- package/lib/General/Icon/components/TwitterIcon.js +4 -2
- package/lib/General/Icon/components/UploadIcon.js +4 -2
- package/lib/General/Icon/components/UpvoteIcon.js +4 -2
- package/lib/General/Icon/components/UserCogIcon.js +4 -2
- package/lib/General/Icon/components/UserIcon.js +4 -2
- package/lib/General/Icon/components/UserWrenchIcon.js +4 -2
- package/lib/General/Icon/components/VideoIcon.js +4 -2
- package/lib/General/Icon/components/VideoOffIcon.js +4 -2
- package/lib/General/Icon/components/ViewIcon.js +4 -2
- package/lib/General/Icon/components/VimeoIcon.js +4 -2
- package/lib/General/Icon/components/WarningCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/WarningIcon.js +4 -2
- package/lib/General/Icon/components/WarningOutlineIcon.js +4 -2
- package/lib/General/Icon/components/WarningSolidIcon.js +4 -2
- package/lib/General/Icon/components/WhatsappIcon.js +4 -2
- package/lib/General/Icon/components/YoutubeIcon.js +4 -2
- package/lib/General/Icon/components/ZaloIcon.js +4 -2
- package/lib/General/Icon/components/index.d.ts +2 -0
- package/lib/General/Icon/components/index.js +10 -2
- package/lib/General/Loading/Loading.stories.js +5 -3
- package/lib/General/Loading/LoadingStyle.js +6 -4
- package/lib/General/ProfilePicture/ProfilePicture.d.ts +2 -2
- package/lib/General/ProfilePicture/ProfilePicture.js +7 -3
- package/lib/General/ProfilePicture/ProfilePicture.stories.js +1 -1
- package/lib/General/ProfilePicture/ProfilePictureStyle.js +3 -3
- package/lib/General/Tag/ActionTags/AddTag.js +1 -1
- package/lib/General/Tag/ActionTags/ResetTag.js +1 -1
- package/lib/General/Tag/BasicTag.d.ts +2 -2
- package/lib/General/Tag/BasicTag.js +7 -3
- package/lib/General/Tag/Tag.js +7 -3
- package/lib/General/Tag/Tag.stories.js +1 -1
- package/lib/General/Tag/TagStyle.js +1 -1
- package/lib/General/Typography/Paragraph.js +7 -3
- package/lib/General/Typography/Paragraph.stories.js +1 -1
- package/lib/General/Typography/ParagraphStyles.js +1 -1
- package/lib/General/Typography/Title.js +7 -3
- package/lib/General/Typography/Title.stories.js +1 -1
- package/lib/General/Typography/TitleStyles.js +1 -1
- package/lib/General/Typography/Typography.js +4 -2
- package/lib/Input/Checkbox/Checkbox.js +7 -3
- package/lib/Input/Checkbox/Checkbox.stories.js +5 -3
- package/lib/Input/Checkbox/CheckboxStyle.js +1 -1
- package/lib/Input/Datepicker/Datepicker.d.ts +1 -1
- package/lib/Input/Datepicker/Datepicker.js +4 -2
- package/lib/Input/Datepicker/DatepickerStyle.js +13 -13
- package/lib/Input/DownshiftSelect/Select.js +10 -6
- package/lib/Input/DownshiftSelect/Select.stories.js +13 -11
- package/lib/Input/DownshiftSelect/SelectStyle.js +17 -17
- package/lib/Input/NumberInput/NumberInput.d.ts +2 -2
- package/lib/Input/NumberInput/NumberInput.js +4 -2
- package/lib/Input/NumberInput/NumberInput.stories.js +5 -3
- package/lib/Input/PhoneNumberInput/PhoneNumberInput.js +9 -5
- package/lib/Input/PhoneNumberInput/PhoneNumberInput.stories.js +5 -3
- package/lib/Input/PhoneNumberInput/PhoneNumberInputStyles.js +5 -3
- package/lib/Input/RadioButton/RadioButton.d.ts +1 -1
- package/lib/Input/RadioButton/RadioButton.js +7 -3
- package/lib/Input/RadioButton/RadioButton.stories.js +1 -1
- package/lib/Input/RadioButton/RadioButtonStyle.js +5 -3
- package/lib/Input/SearchFilter/SearchFilterStyle.js +1 -1
- package/lib/Input/Select/Select.d.ts +2 -2
- package/lib/Input/Select/Select.js +18 -14
- package/lib/Input/Select/Select.stories.js +1 -1
- package/lib/Input/Select/SelectItem.d.ts +2 -2
- package/lib/Input/Select/SelectItem.js +7 -3
- package/lib/Input/Select/SelectList.js +7 -3
- package/lib/Input/Select/SelectStyle.js +8 -8
- package/lib/Input/TextField/TextField.d.ts +65 -3
- package/lib/Input/TextField/TextField.js +11 -6
- package/lib/Input/TextField/TextField.stories.d.ts +1 -0
- package/lib/Input/TextField/TextField.stories.js +12 -3
- package/lib/Input/TextField/TextFieldStyle.d.ts +1 -0
- package/lib/Input/TextField/TextFieldStyle.js +11 -4
- package/lib/Input/Textarea/Textarea.js +3 -2
- package/lib/Input/Textarea/Textarea.stories.js +5 -3
- package/lib/Input/Textarea/TextareaStyle.js +1 -1
- package/lib/Input/ToggleSwitch/Styles.js +3 -3
- package/lib/Input/ToggleSwitch/ToggleSwitch.js +7 -3
- package/lib/Input/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/lib/Layout/Box/Box.stories.js +5 -3
- package/lib/Layout/Box/BoxStoryStyle.js +1 -1
- package/lib/Layout/Box/constants.js +2 -2
- package/lib/Layout/Box/index.js +6 -4
- package/lib/Layout/Flex/Flex.stories.js +7 -5
- package/lib/Layout/Flex/FlexStoryStyle.js +3 -3
- package/lib/Layout/Flex/index.d.ts +3 -1
- package/lib/Layout/Flex/index.js +8 -4
- package/lib/Layout/GlintsContainer/GlintsContainer.js +5 -3
- package/lib/Layout/Grid/Col.js +7 -3
- package/lib/Layout/Grid/Row.js +7 -3
- package/lib/Navigation/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Navigation/Breadcrumb/Breadcrumb.js +7 -3
- package/lib/Navigation/Breadcrumb/Breadcrumb.stories.js +1 -1
- package/lib/Navigation/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/lib/Navigation/Breadcrumb/BreadcrumbItem.js +7 -3
- package/lib/Navigation/Breadcrumb/BreadcrumbStyle.js +3 -3
- package/lib/Navigation/Drawer/Drawer.d.ts +1 -1
- package/lib/Navigation/Drawer/Drawer.js +8 -4
- package/lib/Navigation/Drawer/Drawer.stories.js +5 -3
- package/lib/Navigation/Drawer/DrawerStyle.js +4 -2
- package/lib/Navigation/Dropdown/Dropdown.js +7 -3
- package/lib/Navigation/Dropdown/Dropdown.stories.js +1 -1
- package/lib/Navigation/Dropdown/DropdownItem.d.ts +2 -2
- package/lib/Navigation/Dropdown/DropdownItem.js +7 -3
- package/lib/Navigation/Dropdown/DropdownStyle.js +1 -1
- package/lib/Utils/Colors.js +1 -1
- package/lib/Utils/ColorsStoriesHelpers.js +1 -1
- package/lib/Utils/DelayedUnmount.js +4 -2
- package/lib/Utils/Icon/IconLibrary.d.ts +2 -0
- package/lib/Utils/Icon/IconLibrary.js +20 -2
- package/lib/Utils/Icon/generateIcons.js +4 -2
- package/lib/Utils/Shadow/ShadowsStoriesHelpers.js +3 -3
- package/lib/Utils/StyleConfig.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +11 -3
- package/lib/stories/story-components/AriesStatus.js +4 -2
- package/package.json +31 -35
|
@@ -3,5 +3,5 @@ import { PrimaryColor } from '../../../Utils/Colors';
|
|
|
3
3
|
import BasicTag from '../BasicTag';
|
|
4
4
|
export var ResetTag = styled(BasicTag).withConfig({
|
|
5
5
|
displayName: "ResetTag",
|
|
6
|
-
componentId: "be45u9-0"
|
|
6
|
+
componentId: "sc-be45u9-0"
|
|
7
7
|
})(["color:", ";border-style:solid;border-color:transparent;background-color:rgba(236,39,43,0.05);&:hover{background-color:rgba(236,39,43,0.1);}&:active{background-color:rgba(236,39,43,0.2);}"], PrimaryColor.glintsred);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TagContainer } from './TagStyle';
|
|
3
3
|
declare const Tag: React.FunctionComponent<Props>;
|
|
4
|
-
export
|
|
4
|
+
export declare type Props = React.ComponentPropsWithoutRef<typeof TagContainer> & {
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
export default Tag;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["className", "children", "block", "outline", "onClick"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
import { TagContainer, TagContent } from './TagStyle';
|
|
@@ -10,7 +11,7 @@ var Tag = function Tag(props) {
|
|
|
10
11
|
block = props.block,
|
|
11
12
|
outline = props.outline,
|
|
12
13
|
onClick = props.onClick,
|
|
13
|
-
restProps = _objectWithoutPropertiesLoose(props,
|
|
14
|
+
restProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
14
15
|
|
|
15
16
|
return /*#__PURE__*/React.createElement(TagContainer, _extends({
|
|
16
17
|
className: classNames('aries-tag', className),
|
package/es/General/Tag/Tag.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["variant", "action", "children", "icon", "block", "outline", "onClick"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { AddIcon, TrashIcon } from '../../General/Icon/components';
|
|
5
6
|
import { StartIconContainer, EndIconContainer } from './TagStyle';
|
|
@@ -17,7 +18,7 @@ var Tag = function Tag(_ref) {
|
|
|
17
18
|
_ref$outline = _ref.outline,
|
|
18
19
|
outline = _ref$outline === void 0 ? false : _ref$outline,
|
|
19
20
|
onClick = _ref.onClick,
|
|
20
|
-
resetProps = _objectWithoutPropertiesLoose(_ref,
|
|
21
|
+
resetProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
21
22
|
|
|
22
23
|
if (variant === 'action') {
|
|
23
24
|
switch (action) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["className", "children", "variant", "bold", "color", "ellipsis", "shouldSetLineHeight"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
import { Paragraph as StyledParagraph } from './ParagraphStyles';
|
|
@@ -17,7 +18,7 @@ export var Paragraph = function Paragraph(_ref) {
|
|
|
17
18
|
ellipsis = _ref$ellipsis === void 0 ? false : _ref$ellipsis,
|
|
18
19
|
_ref$shouldSetLineHei = _ref.shouldSetLineHeight,
|
|
19
20
|
shouldSetLineHeight = _ref$shouldSetLineHei === void 0 ? false : _ref$shouldSetLineHei,
|
|
20
|
-
restProps = _objectWithoutPropertiesLoose(_ref,
|
|
21
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
21
22
|
|
|
22
23
|
return /*#__PURE__*/React.createElement(StyledParagraph, _extends({
|
|
23
24
|
className: classNames('aries-typography-paragraph', className),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["className", "children", "color", "ellipsis", "tag", "uppercase"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
import { Title as StyledTitle } from './TitleStyles';
|
|
@@ -15,7 +16,7 @@ export var Title = function Title(_ref) {
|
|
|
15
16
|
tag = _ref$tag === void 0 ? 'h1' : _ref$tag,
|
|
16
17
|
_ref$uppercase = _ref.uppercase,
|
|
17
18
|
uppercase = _ref$uppercase === void 0 ? false : _ref$uppercase,
|
|
18
|
-
restProps = _objectWithoutPropertiesLoose(_ref,
|
|
19
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
19
20
|
|
|
20
21
|
return /*#__PURE__*/React.createElement(StyledTitle, _extends({
|
|
21
22
|
className: classNames('aries-typography-title', className),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["id", "label", "value", "onClick", "size", "border", "indeterminate", "className", "checked"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
import { CheckboxContainer } from './CheckboxStyle';
|
|
@@ -28,7 +29,7 @@ export var Checkbox = function Checkbox(_ref) {
|
|
|
28
29
|
indeterminate = _ref$indeterminate === void 0 ? undefined : _ref$indeterminate,
|
|
29
30
|
className = _ref.className,
|
|
30
31
|
checked = _ref.checked,
|
|
31
|
-
restProps = _objectWithoutPropertiesLoose(_ref,
|
|
32
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
32
33
|
|
|
33
34
|
var _React$useState = React.useState(false),
|
|
34
35
|
internalChecked = _React$useState[0],
|
|
@@ -2,7 +2,7 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { Greyscale, SecondaryColor } from '../../Utils/Colors';
|
|
3
3
|
export var CheckboxContainer = styled.div.withConfig({
|
|
4
4
|
displayName: "CheckboxStyle__CheckboxContainer",
|
|
5
|
-
componentId: "c3ckvs-0"
|
|
5
|
+
componentId: "sc-c3ckvs-0"
|
|
6
6
|
})(["position:relative;display:inline-flex;font-size:", ";line-height:1.5;&:focus{outline:none;}input{padding:0;height:initial;width:initial;margin-bottom:0;display:none;cursor:pointer;}label:before{content:'';appearance:none;background-color:transparent;border:1px solid ", ";display:inline-block;position:relative;vertical-align:middle;cursor:pointer;margin-right:10px;border-radius:4px;width:1.29em;height:1.29em;box-sizing:border-box;}&[aria-checked='true'] label:before{border-color:transparent;}&[aria-checked='true'][data-border='true'] label:before{background:", ";}&[aria-checked='true'][data-border='false'] label:before{background:", ";}&[aria-checked='mixed'] label:before{background:", ";}label{position:relative;display:flex;align-items:center;line-height:1;cursor:pointer;outline:none;}&[aria-checked='true'] label{border-color:", ";}&[data-border='true'] label{border:1px solid #aaaaaa;cursor:pointer;border-radius:8px;padding:0.57em 0.86em;&:hover{background:rgba(1,126,183,0.1);border-color:", ";}}&[aria-checked='true'] label:after,&[aria-checked='mixed'] label:after{content:'';display:block;position:absolute;border:solid ", ";}&[aria-checked='true'] label:after{top:0.13em;left:0.45em;width:0.43em;height:0.86em;border-width:0 0.143em 0.143em 0;transform:rotate(45deg);}&[aria-checked='mixed'] label:after{top:0.55em;left:0.45em;width:0.43em;border-width:0.143em 0 0 0;}&[aria-checked='true'][data-border='true'] label:after,&[aria-checked='mixed'][data-border='true'] label:after{margin-top:0.61em;margin-left:0.89em;}"], function (_ref) {
|
|
7
7
|
var size = _ref.size;
|
|
8
8
|
return size === 'small' ? '14px' : '16px';
|
|
@@ -23,7 +23,7 @@ declare class Datepicker extends React.Component<Props, State> {
|
|
|
23
23
|
renderTHead: () => JSX.Element;
|
|
24
24
|
renderTBody: () => JSX.Element;
|
|
25
25
|
renderFirstWeekRow: () => JSX.Element;
|
|
26
|
-
renderDayRow: (array?: React.
|
|
26
|
+
renderDayRow: (array?: React.ReactNode[], startingCount?: number) => React.ReactNode;
|
|
27
27
|
renderOffSetDay: () => JSX.Element[];
|
|
28
28
|
renderLeftSideIcon: (showMonths: boolean) => JSX.Element;
|
|
29
29
|
renderRightSideIcon: (showMonths: boolean) => JSX.Element;
|
|
@@ -2,11 +2,11 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { Greyscale, SecondaryColor } from '../../Utils/Colors';
|
|
3
3
|
export var DatepickerContainer = styled.div.withConfig({
|
|
4
4
|
displayName: "DatepickerStyle__DatepickerContainer",
|
|
5
|
-
componentId: "t24o7e-0"
|
|
5
|
+
componentId: "sc-t24o7e-0"
|
|
6
6
|
})(["flex-grow:1;position:relative;"]);
|
|
7
7
|
export var DatepickerWrapper = styled.div.withConfig({
|
|
8
8
|
displayName: "DatepickerStyle__DatepickerWrapper",
|
|
9
|
-
componentId: "t24o7e-1"
|
|
9
|
+
componentId: "sc-t24o7e-1"
|
|
10
10
|
})(["position:absolute;visibility:", ";opacity:", ";transform:", ";transform-origin:center top;transition:", ";background:", ";width:280px;box-shadow:0 2px 8px rgba(0,0,0,0.15);margin-top:0.5em;outline:none;z-index:1000;"], function (_ref) {
|
|
11
11
|
var isOpen = _ref.isOpen;
|
|
12
12
|
return isOpen ? 'visible' : 'hidden';
|
|
@@ -22,52 +22,52 @@ export var DatepickerWrapper = styled.div.withConfig({
|
|
|
22
22
|
}, Greyscale.white);
|
|
23
23
|
export var DatepickerSection = styled.div.withConfig({
|
|
24
24
|
displayName: "DatepickerStyle__DatepickerSection",
|
|
25
|
-
componentId: "t24o7e-2"
|
|
25
|
+
componentId: "sc-t24o7e-2"
|
|
26
26
|
})(["padding:10px;border-bottom:", ";"], function (_ref5) {
|
|
27
27
|
var border = _ref5.border;
|
|
28
28
|
return border && '1px solid #E8E8E8';
|
|
29
29
|
});
|
|
30
30
|
export var DatepickerContent = styled.div.withConfig({
|
|
31
31
|
displayName: "DatepickerStyle__DatepickerContent",
|
|
32
|
-
componentId: "t24o7e-3"
|
|
32
|
+
componentId: "sc-t24o7e-3"
|
|
33
33
|
})(["display:flex;justify-content:", ";align-items:center;"], function (_ref6) {
|
|
34
34
|
var justify = _ref6.justify;
|
|
35
35
|
return justify || 'center';
|
|
36
36
|
});
|
|
37
37
|
export var DatepickerMonthYearBtn = styled.button.withConfig({
|
|
38
38
|
displayName: "DatepickerStyle__DatepickerMonthYearBtn",
|
|
39
|
-
componentId: "t24o7e-4"
|
|
39
|
+
componentId: "sc-t24o7e-4"
|
|
40
40
|
})(["border:none;background:", ";padding:0;cursor:pointer;margin:0 4px;&:hover{color:", ";}"], Greyscale.white, SecondaryColor.actionblue);
|
|
41
41
|
export var DatepickerTodayBtn = styled.button.withConfig({
|
|
42
42
|
displayName: "DatepickerStyle__DatepickerTodayBtn",
|
|
43
|
-
componentId: "t24o7e-5"
|
|
43
|
+
componentId: "sc-t24o7e-5"
|
|
44
44
|
})(["display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;padding:0;&:hover{color:", ";}"], SecondaryColor.actionblue);
|
|
45
45
|
export var DatepickerNavigation = styled.div.withConfig({
|
|
46
46
|
displayName: "DatepickerStyle__DatepickerNavigation",
|
|
47
|
-
componentId: "t24o7e-6"
|
|
47
|
+
componentId: "sc-t24o7e-6"
|
|
48
48
|
})(["display:flex;"]);
|
|
49
49
|
export var DatepickerIconWrapper = styled.div.withConfig({
|
|
50
50
|
displayName: "DatepickerStyle__DatepickerIconWrapper",
|
|
51
|
-
componentId: "t24o7e-7"
|
|
51
|
+
componentId: "sc-t24o7e-7"
|
|
52
52
|
})(["display:flex;font-size:8px;cursor:pointer;margin:", ";"], function (_ref7) {
|
|
53
53
|
var needMargin = _ref7.needMargin;
|
|
54
54
|
return needMargin && '0 8px';
|
|
55
55
|
});
|
|
56
56
|
export var DatepickerTable = styled.table.withConfig({
|
|
57
57
|
displayName: "DatepickerStyle__DatepickerTable",
|
|
58
|
-
componentId: "t24o7e-8"
|
|
58
|
+
componentId: "sc-t24o7e-8"
|
|
59
59
|
})(["width:100%;max-width:100%;"]);
|
|
60
60
|
export var Td = styled.td.withConfig({
|
|
61
61
|
displayName: "DatepickerStyle__Td",
|
|
62
|
-
componentId: "t24o7e-9"
|
|
62
|
+
componentId: "sc-t24o7e-9"
|
|
63
63
|
})(["padding:0;"]);
|
|
64
64
|
export var Th = styled.th.withConfig({
|
|
65
65
|
displayName: "DatepickerStyle__Th",
|
|
66
|
-
componentId: "t24o7e-10"
|
|
66
|
+
componentId: "sc-t24o7e-10"
|
|
67
67
|
})(["padding:0;"]);
|
|
68
68
|
export var HoverContent = styled.div.withConfig({
|
|
69
69
|
displayName: "DatepickerStyle__HoverContent",
|
|
70
|
-
componentId: "t24o7e-11"
|
|
70
|
+
componentId: "sc-t24o7e-11"
|
|
71
71
|
})(["display:flex;justify-content:center;align-items:center;width:", ";height:", ";border-radius:2px;transition:background 0.3s ease;background-color:transparent;line-height:22px;", " ", ""], function (_ref8) {
|
|
72
72
|
var biggerSize = _ref8.biggerSize;
|
|
73
73
|
return !biggerSize ? '35px' : 'auto';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["items", "transformFunction", "components", "isLoading", "isOpenInitially", "helperText", "downshift", "placeholder", "label", "disabled", "disableTyping", "isOpen", "invalid", "onIsOpenChange", "selectedItem", "onSelectedItemChange", "inputValue", "onInputValueChange", "onClear", "onFocus", "onBlur", "emptyListText", "groupKey"];
|
|
4
5
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
7
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
9
|
|
|
9
10
|
import React, { useState } from 'react';
|
|
10
11
|
import { useCombobox } from 'downshift';
|
|
@@ -60,7 +61,7 @@ export var Select = function Select(_ref) {
|
|
|
60
61
|
_ref$emptyListText = _ref.emptyListText,
|
|
61
62
|
emptyListText = _ref$emptyListText === void 0 ? defaultEmptyListText : _ref$emptyListText,
|
|
62
63
|
groupKey = _ref.groupKey,
|
|
63
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
64
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
64
65
|
|
|
65
66
|
var mergedComponents = _objectSpread(_objectSpread({}, internalComponents), externalComponents);
|
|
66
67
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
import { Select } from './Select';
|
|
@@ -17,7 +17,7 @@ import { identity, sample, sampleSize } from 'lodash';
|
|
|
17
17
|
import { TextField } from '../..';
|
|
18
18
|
var StoryContainer = styled(BaseContainer).withConfig({
|
|
19
19
|
displayName: "Selectstories__StoryContainer",
|
|
20
|
-
componentId: "qzffum-0"
|
|
20
|
+
componentId: "sc-qzffum-0"
|
|
21
21
|
})(["min-height:250px;"]);
|
|
22
22
|
export default {
|
|
23
23
|
title: 'Input/DownshiftSelect',
|
|
@@ -71,11 +71,11 @@ var componentNames = Object.keys(Components).filter(function (name) {
|
|
|
71
71
|
});
|
|
72
72
|
var CustomLabel = styled.label.withConfig({
|
|
73
73
|
displayName: "Selectstories__CustomLabel",
|
|
74
|
-
componentId: "qzffum-1"
|
|
74
|
+
componentId: "sc-qzffum-1"
|
|
75
75
|
})(["color:green;"]);
|
|
76
76
|
var CustomStyledItem = styled(Select.Components.Item).withConfig({
|
|
77
77
|
displayName: "Selectstories__CustomStyledItem",
|
|
78
|
-
componentId: "qzffum-2"
|
|
78
|
+
componentId: "sc-qzffum-2"
|
|
79
79
|
})(["display:flex;justify-content:space-between;&[aria-selected='true']{color:", ";}"], SecondaryColor.darkgreen);
|
|
80
80
|
|
|
81
81
|
var CustomItem = function CustomItem(props) {
|
|
@@ -438,7 +438,7 @@ OnClearCallback.parameters = {
|
|
|
438
438
|
};
|
|
439
439
|
var ShortContainer = styled(Select.Components.Container).withConfig({
|
|
440
440
|
displayName: "Selectstories__ShortContainer",
|
|
441
|
-
componentId: "qzffum-3"
|
|
441
|
+
componentId: "sc-qzffum-3"
|
|
442
442
|
})(["max-width:280px;"]);
|
|
443
443
|
export var ConfigurableWidth = Template.bind({});
|
|
444
444
|
ConfigurableWidth.args = {
|
|
@@ -458,7 +458,7 @@ ConfigurableWidth.parameters = {
|
|
|
458
458
|
};
|
|
459
459
|
var SmallContainer = styled(Select.Components.Container).withConfig({
|
|
460
460
|
displayName: "Selectstories__SmallContainer",
|
|
461
|
-
componentId: "qzffum-4"
|
|
461
|
+
componentId: "sc-qzffum-4"
|
|
462
462
|
})(["max-width:200px;font-size:11px;"]);
|
|
463
463
|
export var Small = Template.bind({});
|
|
464
464
|
Small.args = {
|
|
@@ -478,7 +478,7 @@ Small.parameters = {
|
|
|
478
478
|
};
|
|
479
479
|
var StyledEmptyList = styled(Select.Components.EmptyList).withConfig({
|
|
480
480
|
displayName: "Selectstories__StyledEmptyList",
|
|
481
|
-
componentId: "qzffum-5"
|
|
481
|
+
componentId: "sc-qzffum-5"
|
|
482
482
|
})(["display:flex;justify-content:center;color:green;"]);
|
|
483
483
|
export var EmptyListText = Template.bind({});
|
|
484
484
|
EmptyListText.args = {
|
|
@@ -4,65 +4,65 @@ import { Greyscale, PrimaryColor, SecondaryColor } from '../../Utils/Colors';
|
|
|
4
4
|
import { Shadow } from '../../Utils/Shadow';
|
|
5
5
|
export var Container = styled.div.withConfig({
|
|
6
6
|
displayName: "SelectStyle__Container",
|
|
7
|
-
componentId: "qr1jv6-0"
|
|
7
|
+
componentId: "sc-qr1jv6-0"
|
|
8
8
|
})(["position:relative;font-size:16px;"]);
|
|
9
9
|
export var Label = styled.label.withConfig({
|
|
10
10
|
displayName: "SelectStyle__Label",
|
|
11
|
-
componentId: "qr1jv6-1"
|
|
11
|
+
componentId: "sc-qr1jv6-1"
|
|
12
12
|
})(["display:block;margin-bottom:8px;color:", ";font-weight:500;&[data-active='true']{color:", ";}&[data-disabled='true']{color:", ";}&[data-invalid='true']{color:", ";}"], Greyscale.devilsgrey, SecondaryColor.actionblue, Greyscale.lightgrey, PrimaryColor.glintsred);
|
|
13
13
|
export var Combobox = styled.div.withConfig({
|
|
14
14
|
displayName: "SelectStyle__Combobox",
|
|
15
|
-
componentId: "qr1jv6-2"
|
|
15
|
+
componentId: "sc-qr1jv6-2"
|
|
16
16
|
})(["display:grid;grid-template-columns:1fr auto;grid-column-gap:0.75em;padding:0.75em 1em 0.75em 1em;border-radius:0.5em;background-color:#ebf5fa;:hover{background-color:#d6eaf2;}&[aria-expanded='true'],&[data-active='true']{background-color:#c2e0ed;}&[data-disabled='true']{background-color:", ";}&[data-invalid='true']{background-color:#feeeee;}"], Greyscale.softgrey);
|
|
17
17
|
export var Input = styled.input.withConfig({
|
|
18
18
|
displayName: "SelectStyle__Input",
|
|
19
|
-
componentId: "qr1jv6-3"
|
|
19
|
+
componentId: "sc-qr1jv6-3"
|
|
20
20
|
})(["border:none;background-color:transparent;outline:none;color:", ";font-size:inherit;text-overflow:ellipsis;&:not([value='']){color:black;}:disabled::placeholder{color:", ";}"], Greyscale.devilsgrey, Greyscale.lightgrey);
|
|
21
21
|
export var IndicatorsContainer = styled.div.withConfig({
|
|
22
22
|
displayName: "SelectStyle__IndicatorsContainer",
|
|
23
|
-
componentId: "qr1jv6-4"
|
|
23
|
+
componentId: "sc-qr1jv6-4"
|
|
24
24
|
})(["display:flex;flex-direction:row;>:not(:last-child){margin-right:0.75em;}"]);
|
|
25
25
|
export var _IndicatorButton = styled.button.withConfig({
|
|
26
26
|
displayName: "SelectStyle___IndicatorButton",
|
|
27
|
-
componentId: "qr1jv6-5"
|
|
27
|
+
componentId: "sc-qr1jv6-5"
|
|
28
28
|
})(["padding:0;border:none;background:none;color:", ";font-size:inherit;"], Greyscale.devilsgrey);
|
|
29
29
|
export var ClearButton = styled(_IndicatorButton).withConfig({
|
|
30
30
|
displayName: "SelectStyle__ClearButton",
|
|
31
|
-
componentId: "qr1jv6-6"
|
|
31
|
+
componentId: "sc-qr1jv6-6"
|
|
32
32
|
})([""]);
|
|
33
33
|
export var ToggleButton = styled(_IndicatorButton).withConfig({
|
|
34
34
|
displayName: "SelectStyle__ToggleButton",
|
|
35
|
-
componentId: "qr1jv6-7"
|
|
35
|
+
componentId: "sc-qr1jv6-7"
|
|
36
36
|
})([""]);
|
|
37
37
|
export var LoadingIndicator = styled(Loading).withConfig({
|
|
38
38
|
displayName: "SelectStyle__LoadingIndicator",
|
|
39
|
-
componentId: "qr1jv6-8"
|
|
39
|
+
componentId: "sc-qr1jv6-8"
|
|
40
40
|
})(["align-items:center;font-size:0.5625em;"]);
|
|
41
41
|
export var Menu = styled.ul.withConfig({
|
|
42
42
|
displayName: "SelectStyle__Menu",
|
|
43
|
-
componentId: "qr1jv6-9"
|
|
43
|
+
componentId: "sc-qr1jv6-9"
|
|
44
44
|
})(["margin-top:4px;position:absolute;width:100%;padding:0.5em 0 0.5em 0;border:1px solid #eeeeee;border-radius:0.5em;box-shadow:", ";background-color:white;z-index:1;[aria-expanded='false'] + &{visibility:hidden;}"], Shadow.down3);
|
|
45
45
|
export var Item = styled.li.withConfig({
|
|
46
46
|
displayName: "SelectStyle__Item",
|
|
47
|
-
componentId: "qr1jv6-10"
|
|
47
|
+
componentId: "sc-qr1jv6-10"
|
|
48
48
|
})(["padding:0.5em 1em;list-style-type:none;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&[aria-selected='true']{background-color:", ";color:", ";}&[disabled]{background-color:transparent;color:", ";cursor:not-allowed;}"], Greyscale.softgrey, SecondaryColor.actionblue, Greyscale.lightgrey);
|
|
49
49
|
export var EmptyList = styled.li.withConfig({
|
|
50
50
|
displayName: "SelectStyle__EmptyList",
|
|
51
|
-
componentId: "qr1jv6-11"
|
|
51
|
+
componentId: "sc-qr1jv6-11"
|
|
52
52
|
})(["padding:0.5em 1em;list-style-type:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:", ";cursor:not-allowed;"], Greyscale.lightgrey);
|
|
53
53
|
export var HelperText = styled.span.withConfig({
|
|
54
54
|
displayName: "SelectStyle__HelperText",
|
|
55
|
-
componentId: "qr1jv6-12"
|
|
55
|
+
componentId: "sc-qr1jv6-12"
|
|
56
56
|
})(["margin-top:4px;color:", ";font-size:0.875em;&[data-invalid='true']{color:", ";}"], Greyscale.devilsgrey, PrimaryColor.glintsred);
|
|
57
57
|
export var GroupContainer = styled.li.withConfig({
|
|
58
58
|
displayName: "SelectStyle__GroupContainer",
|
|
59
|
-
componentId: "qr1jv6-13"
|
|
59
|
+
componentId: "sc-qr1jv6-13"
|
|
60
60
|
})(["margin-bottom:0.5em;padding:0;list-style-type:none;"]);
|
|
61
61
|
export var Group = styled.ul.withConfig({
|
|
62
62
|
displayName: "SelectStyle__Group",
|
|
63
|
-
componentId: "qr1jv6-14"
|
|
63
|
+
componentId: "sc-qr1jv6-14"
|
|
64
64
|
})(["padding:0;"]);
|
|
65
65
|
export var GroupHeading = styled.li.withConfig({
|
|
66
66
|
displayName: "SelectStyle__GroupHeading",
|
|
67
|
-
componentId: "qr1jv6-15"
|
|
67
|
+
componentId: "sc-qr1jv6-15"
|
|
68
68
|
})(["padding:0.5em 1em;list-style-type:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:", ";font-size:0.75em;text-transform:uppercase;"], Greyscale.devilsgrey);
|
|
@@ -8,7 +8,7 @@ import { TextFieldInput } from '../TextField/TextFieldStyle';
|
|
|
8
8
|
* Use small to set the size of the input field. The ...rest is passed to the
|
|
9
9
|
* internal field input. */
|
|
10
10
|
export declare const NumberInput: (props: Props) => JSX.Element;
|
|
11
|
-
export
|
|
11
|
+
export declare type Props = React.ComponentPropsWithoutRef<typeof TextFieldInput> & {
|
|
12
12
|
/** Placeholder for the text field. */
|
|
13
13
|
label: string;
|
|
14
14
|
disabled?: boolean;
|
|
@@ -23,5 +23,5 @@ export interface Props extends React.ComponentPropsWithoutRef<typeof TextFieldIn
|
|
|
23
23
|
forwardedRef?: React.RefObject<HTMLInputElement>;
|
|
24
24
|
/** Icon at the start of the input element. */
|
|
25
25
|
startIcon?: React.ReactNode;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
export default NumberInput;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
var _excluded = ["value", "onChange", "onFocus", "onBlur", "callingCodeOptions", "onInputChange", "filterValue", "isLoadingCallingCodeOptions", "label", "featuredOptionsLabel", "otherOptionsLabel", "callingCodeFilterInputPlaceholder", "callingCodeNoOptionsLabel", "error", "addon"];
|
|
4
5
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
7
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
9
|
|
|
9
10
|
import { useCombobox } from 'downshift';
|
|
10
11
|
import { find, orderBy } from 'lodash';
|
|
@@ -36,7 +37,7 @@ export var PhoneNumberInput = function PhoneNumberInput(_ref) {
|
|
|
36
37
|
callingCodeNoOptionsLabel = _ref.callingCodeNoOptionsLabel,
|
|
37
38
|
error = _ref.error,
|
|
38
39
|
addon = _ref.addon,
|
|
39
|
-
restProps = _objectWithoutPropertiesLoose(_ref,
|
|
40
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
40
41
|
|
|
41
42
|
var _useState = useState(false),
|
|
42
43
|
isCallingCodeInputOpen = _useState[0],
|
|
@@ -10,7 +10,7 @@ export interface Props extends HTMLInputProps {
|
|
|
10
10
|
/** Sets the label of Radio Button. */
|
|
11
11
|
label?: React.ReactNode;
|
|
12
12
|
/** Sets the props on the label element. */
|
|
13
|
-
labelProps?: React.LabelHTMLAttributes<
|
|
13
|
+
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
14
14
|
/** Sets theme for Radio Button. */
|
|
15
15
|
theme?: 'white';
|
|
16
16
|
/** Sets a border around the radio button. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["className", "children", "error", "label", "labelProps", "theme", "border", "disabled", "size"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
import { RadioContainer, RadioLabel, RadioIcon, Border } from './RadioButtonStyle';
|
|
@@ -21,7 +22,7 @@ export var RadioButton = function RadioButton(_ref) {
|
|
|
21
22
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
22
23
|
_ref$size = _ref.size,
|
|
23
24
|
size = _ref$size === void 0 ? 'regular' : _ref$size,
|
|
24
|
-
inputProps = _objectWithoutPropertiesLoose(_ref,
|
|
25
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
25
26
|
|
|
26
27
|
var content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(RadioIcon, {
|
|
27
28
|
error: error,
|
|
@@ -12,7 +12,7 @@ export interface SelectInputProps {
|
|
|
12
12
|
/** Deprecated! */
|
|
13
13
|
status?: string;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export declare type Props = React.ComponentPropsWithoutRef<typeof SelectInput> & SelectInputProps & {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
/** Sets value for Input. */
|
|
18
18
|
value?: string;
|
|
@@ -46,6 +46,6 @@ export interface Props extends React.ComponentPropsWithoutRef<typeof SelectInput
|
|
|
46
46
|
onChange?(value: string): void;
|
|
47
47
|
/** Called when value of input is changed. */
|
|
48
48
|
onInputChange?(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
export declare const Option: React.FC<SelectItemProps>;
|
|
51
51
|
export default Select;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["label", "status", "disabled", "className", "onFocus", "onBlur", "onChange", "onInputChange", "noOptionResult", "small", "disableTyping", "removeFloatingLabel", "removeDropIcon", "error", "renderError", "value", "defaultValue", "defaultOpen", "children", "isLoading", "filterFunction"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import * as ReactDOM from 'react-dom';
|
|
5
6
|
import get from 'lodash/get';
|
|
@@ -39,7 +40,7 @@ var Select = function Select(props) {
|
|
|
39
40
|
isLoading = props.isLoading,
|
|
40
41
|
_props$filterFunction = props.filterFunction,
|
|
41
42
|
filterFunction = _props$filterFunction === void 0 ? defaultFilterFunction : _props$filterFunction,
|
|
42
|
-
defaultProps = _objectWithoutPropertiesLoose(props,
|
|
43
|
+
defaultProps = _objectWithoutPropertiesLoose(props, _excluded); // warn deprecated prop "status"
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
React.useEffect(function warnDeprecatedProp() {
|
|
@@ -250,17 +251,17 @@ var Select = function Select(props) {
|
|
|
250
251
|
setShouldScrollToActiveOption(true);
|
|
251
252
|
} // down arrow key
|
|
252
253
|
else if (e.keyCode === 40 && activeOptionIndex < options.length - 1) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
254
|
+
setActiveOptionIndex(activeOptionIndex + 1);
|
|
255
|
+
setShouldScrollToActiveOption(true);
|
|
256
|
+
} // enter key
|
|
257
|
+
else if (e.keyCode === 13) {
|
|
258
|
+
inputElement.blur();
|
|
259
|
+
handleClickOnOption();
|
|
260
|
+
} // escape key
|
|
261
|
+
else if (e.keyCode === 27) {
|
|
262
|
+
inputElement.blur();
|
|
263
|
+
setIsFocus(false);
|
|
264
|
+
}
|
|
264
265
|
}, [disableTyping, options, activeOptionIndex, handleClickOnOption]);
|
|
265
266
|
React.useEffect(function handleScrollToActiveElement() {
|
|
266
267
|
if (shouldScrollToActiveOption) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SelectItemWrapper } from './SelectStyle';
|
|
3
3
|
declare const SelectItem: React.FunctionComponent<Props>;
|
|
4
|
-
|
|
4
|
+
declare type Props = React.ComponentPropsWithoutRef<typeof SelectItemWrapper> & {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
onClick?(event: React.MouseEvent<HTMLLIElement, MouseEvent>): void;
|
|
7
7
|
className?: string;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export default SelectItem;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["children", "className", "onClick"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { SelectItemWrapper } from './SelectStyle';
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ var SelectItem = function SelectItem(props) {
|
|
|
7
8
|
var children = props.children,
|
|
8
9
|
className = props.className,
|
|
9
10
|
onClick = props.onClick,
|
|
10
|
-
defaultProps = _objectWithoutPropertiesLoose(props,
|
|
11
|
+
defaultProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
11
12
|
|
|
12
13
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectItemWrapper, _extends({
|
|
13
14
|
className: className,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["value", "children"];
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import SelectItem from './SelectItem';
|
|
5
6
|
import Loading from '../../General/Loading';
|
|
@@ -25,7 +26,7 @@ var SelectList = function SelectList(_ref) {
|
|
|
25
26
|
var _data$props = data.props,
|
|
26
27
|
value = _data$props.value,
|
|
27
28
|
children = _data$props.children,
|
|
28
|
-
restProps = _objectWithoutPropertiesLoose(_data$props,
|
|
29
|
+
restProps = _objectWithoutPropertiesLoose(_data$props, _excluded);
|
|
29
30
|
|
|
30
31
|
delete restProps.onOptionClick;
|
|
31
32
|
return /*#__PURE__*/React.createElement(SelectItem, _extends({}, restProps, {
|
|
@@ -3,11 +3,11 @@ import { PrimaryColor, SecondaryColor, Greyscale } from '../../Utils/Colors';
|
|
|
3
3
|
import { Shadow } from '../../Utils/Shadow';
|
|
4
4
|
export var SelectContainer = styled.div.withConfig({
|
|
5
5
|
displayName: "SelectStyle__SelectContainer",
|
|
6
|
-
componentId: "gv8n2w-0"
|
|
6
|
+
componentId: "sc-gv8n2w-0"
|
|
7
7
|
})(["flex-grow:1;position:relative;font-weight:normal;"]);
|
|
8
8
|
export var SelectWrapper = styled.div.withConfig({
|
|
9
9
|
displayName: "SelectStyle__SelectWrapper",
|
|
10
|
-
componentId: "gv8n2w-1"
|
|
10
|
+
componentId: "sc-gv8n2w-1"
|
|
11
11
|
})(["display:flex;align-items:center;.select-icon{font-size:", ";position:absolute;right:15px;display:flex;align-items:center;cursor:pointer;svg{transform:", ";transition:", ";}}"], function (_ref) {
|
|
12
12
|
var small = _ref.small;
|
|
13
13
|
return small ? '12px' : '15px';
|
|
@@ -20,7 +20,7 @@ export var SelectWrapper = styled.div.withConfig({
|
|
|
20
20
|
});
|
|
21
21
|
export var SelectLabel = styled.label.withConfig({
|
|
22
22
|
displayName: "SelectStyle__SelectLabel",
|
|
23
|
-
componentId: "gv8n2w-2"
|
|
23
|
+
componentId: "sc-gv8n2w-2"
|
|
24
24
|
})(["position:absolute;left:", ";background:", ";color:", ";transition:all .2s;pointer-events:none;font-size:", ";", " ", " ", ""], function (_ref4) {
|
|
25
25
|
var small = _ref4.small;
|
|
26
26
|
return small ? '16px' : '22px';
|
|
@@ -53,7 +53,7 @@ export var SelectLabel = styled.label.withConfig({
|
|
|
53
53
|
});
|
|
54
54
|
export var SelectInput = styled.input.withConfig({
|
|
55
55
|
displayName: "SelectStyle__SelectInput",
|
|
56
|
-
componentId: "gv8n2w-3"
|
|
56
|
+
componentId: "sc-gv8n2w-3"
|
|
57
57
|
})(["width:100%;outline:none;height:", ";padding:", ";border:", ";transition:all .5s;font-size:", ";line-height:1.5;&::placeholder{color:", ";}", " ", " &:disabled{cursor:not-allowed;background:", ";+ ", "{", " color:", ";}&:hover{border:2px solid ", ";}}&:hover{border:2px solid ", ";transition:all .5s;", " + ", "{", "}}&:focus{border:2px solid ", ";", " + ", "{padding:0 5px;top:1em;transform:", ";transition:all .2s;color:", ";font-size:12px;", "}}"], function (_ref10) {
|
|
58
58
|
var small = _ref10.small;
|
|
59
59
|
return small ? '46px' : '53px';
|
|
@@ -117,7 +117,7 @@ export var SelectInput = styled.input.withConfig({
|
|
|
117
117
|
});
|
|
118
118
|
export var SelectListWrapper = styled.ul.withConfig({
|
|
119
119
|
displayName: "SelectStyle__SelectListWrapper",
|
|
120
|
-
componentId: "gv8n2w-4"
|
|
120
|
+
componentId: "sc-gv8n2w-4"
|
|
121
121
|
})(["position:absolute;visibility:", ";opacity:", ";transform:", ";transform-origin:center top;transition:", ";background:", ";min-width:100%;height:auto;box-shadow:", ";z-index:9999;max-height:200px;overflow:auto;font-size:", ";padding:0;margin:0;"], function (_ref22) {
|
|
122
122
|
var open = _ref22.open;
|
|
123
123
|
return open ? 'visible' : 'hidden';
|
|
@@ -136,7 +136,7 @@ export var SelectListWrapper = styled.ul.withConfig({
|
|
|
136
136
|
});
|
|
137
137
|
export var SelectItemWrapper = styled.li.withConfig({
|
|
138
138
|
displayName: "SelectStyle__SelectItemWrapper",
|
|
139
|
-
componentId: "gv8n2w-5"
|
|
139
|
+
componentId: "sc-gv8n2w-5"
|
|
140
140
|
})(["display:flex;align-items:center;cursor:pointer;padding:0.5em 1em;list-style-type:none;&:first-child{margin-top:0.5em;}&:last-child{margin-bottom:0.5em;}&.active{color:", ";background:", ";}&.select-loading{justify-content:center;}", ""], SecondaryColor.actionblue, Greyscale.softgrey, function (_ref27) {
|
|
141
141
|
var disabled = _ref27.disabled;
|
|
142
142
|
|
|
@@ -146,5 +146,5 @@ export var SelectItemWrapper = styled.li.withConfig({
|
|
|
146
146
|
});
|
|
147
147
|
export var SelectErrorDefault = styled.span.withConfig({
|
|
148
148
|
displayName: "SelectStyle__SelectErrorDefault",
|
|
149
|
-
componentId: "gv8n2w-6"
|
|
149
|
+
componentId: "sc-gv8n2w-6"
|
|
150
150
|
})(["color:", ";"], PrimaryColor.glintsred);
|