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,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports._IndicatorButton = exports.ToggleButton = exports.Menu = exports.LoadingIndicator = exports.Label = exports.Item = exports.Input = exports.IndicatorsContainer = exports.HelperText = exports.GroupHeading = exports.GroupContainer = exports.Group = exports.EmptyList = exports.Container = exports.Combobox = exports.ClearButton = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -15,106 +15,106 @@ var _Shadow = require("../../Utils/Shadow");
|
|
|
15
15
|
|
|
16
16
|
var Container = _styledComponents["default"].div.withConfig({
|
|
17
17
|
displayName: "SelectStyle__Container",
|
|
18
|
-
componentId: "qr1jv6-0"
|
|
18
|
+
componentId: "sc-qr1jv6-0"
|
|
19
19
|
})(["position:relative;font-size:16px;"]);
|
|
20
20
|
|
|
21
21
|
exports.Container = Container;
|
|
22
22
|
|
|
23
23
|
var Label = _styledComponents["default"].label.withConfig({
|
|
24
24
|
displayName: "SelectStyle__Label",
|
|
25
|
-
componentId: "qr1jv6-1"
|
|
25
|
+
componentId: "sc-qr1jv6-1"
|
|
26
26
|
})(["display:block;margin-bottom:8px;color:", ";font-weight:500;&[data-active='true']{color:", ";}&[data-disabled='true']{color:", ";}&[data-invalid='true']{color:", ";}"], _Colors.Greyscale.devilsgrey, _Colors.SecondaryColor.actionblue, _Colors.Greyscale.lightgrey, _Colors.PrimaryColor.glintsred);
|
|
27
27
|
|
|
28
28
|
exports.Label = Label;
|
|
29
29
|
|
|
30
30
|
var Combobox = _styledComponents["default"].div.withConfig({
|
|
31
31
|
displayName: "SelectStyle__Combobox",
|
|
32
|
-
componentId: "qr1jv6-2"
|
|
32
|
+
componentId: "sc-qr1jv6-2"
|
|
33
33
|
})(["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;}"], _Colors.Greyscale.softgrey);
|
|
34
34
|
|
|
35
35
|
exports.Combobox = Combobox;
|
|
36
36
|
|
|
37
37
|
var Input = _styledComponents["default"].input.withConfig({
|
|
38
38
|
displayName: "SelectStyle__Input",
|
|
39
|
-
componentId: "qr1jv6-3"
|
|
39
|
+
componentId: "sc-qr1jv6-3"
|
|
40
40
|
})(["border:none;background-color:transparent;outline:none;color:", ";font-size:inherit;text-overflow:ellipsis;&:not([value='']){color:black;}:disabled::placeholder{color:", ";}"], _Colors.Greyscale.devilsgrey, _Colors.Greyscale.lightgrey);
|
|
41
41
|
|
|
42
42
|
exports.Input = Input;
|
|
43
43
|
|
|
44
44
|
var IndicatorsContainer = _styledComponents["default"].div.withConfig({
|
|
45
45
|
displayName: "SelectStyle__IndicatorsContainer",
|
|
46
|
-
componentId: "qr1jv6-4"
|
|
46
|
+
componentId: "sc-qr1jv6-4"
|
|
47
47
|
})(["display:flex;flex-direction:row;>:not(:last-child){margin-right:0.75em;}"]);
|
|
48
48
|
|
|
49
49
|
exports.IndicatorsContainer = IndicatorsContainer;
|
|
50
50
|
|
|
51
51
|
var _IndicatorButton = _styledComponents["default"].button.withConfig({
|
|
52
52
|
displayName: "SelectStyle___IndicatorButton",
|
|
53
|
-
componentId: "qr1jv6-5"
|
|
53
|
+
componentId: "sc-qr1jv6-5"
|
|
54
54
|
})(["padding:0;border:none;background:none;color:", ";font-size:inherit;"], _Colors.Greyscale.devilsgrey);
|
|
55
55
|
|
|
56
56
|
exports._IndicatorButton = _IndicatorButton;
|
|
57
57
|
var ClearButton = (0, _styledComponents["default"])(_IndicatorButton).withConfig({
|
|
58
58
|
displayName: "SelectStyle__ClearButton",
|
|
59
|
-
componentId: "qr1jv6-6"
|
|
59
|
+
componentId: "sc-qr1jv6-6"
|
|
60
60
|
})([""]);
|
|
61
61
|
exports.ClearButton = ClearButton;
|
|
62
62
|
var ToggleButton = (0, _styledComponents["default"])(_IndicatorButton).withConfig({
|
|
63
63
|
displayName: "SelectStyle__ToggleButton",
|
|
64
|
-
componentId: "qr1jv6-7"
|
|
64
|
+
componentId: "sc-qr1jv6-7"
|
|
65
65
|
})([""]);
|
|
66
66
|
exports.ToggleButton = ToggleButton;
|
|
67
67
|
var LoadingIndicator = (0, _styledComponents["default"])(_Loading["default"]).withConfig({
|
|
68
68
|
displayName: "SelectStyle__LoadingIndicator",
|
|
69
|
-
componentId: "qr1jv6-8"
|
|
69
|
+
componentId: "sc-qr1jv6-8"
|
|
70
70
|
})(["align-items:center;font-size:0.5625em;"]);
|
|
71
71
|
exports.LoadingIndicator = LoadingIndicator;
|
|
72
72
|
|
|
73
73
|
var Menu = _styledComponents["default"].ul.withConfig({
|
|
74
74
|
displayName: "SelectStyle__Menu",
|
|
75
|
-
componentId: "qr1jv6-9"
|
|
75
|
+
componentId: "sc-qr1jv6-9"
|
|
76
76
|
})(["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.Shadow.down3);
|
|
77
77
|
|
|
78
78
|
exports.Menu = Menu;
|
|
79
79
|
|
|
80
80
|
var Item = _styledComponents["default"].li.withConfig({
|
|
81
81
|
displayName: "SelectStyle__Item",
|
|
82
|
-
componentId: "qr1jv6-10"
|
|
82
|
+
componentId: "sc-qr1jv6-10"
|
|
83
83
|
})(["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;}"], _Colors.Greyscale.softgrey, _Colors.SecondaryColor.actionblue, _Colors.Greyscale.lightgrey);
|
|
84
84
|
|
|
85
85
|
exports.Item = Item;
|
|
86
86
|
|
|
87
87
|
var EmptyList = _styledComponents["default"].li.withConfig({
|
|
88
88
|
displayName: "SelectStyle__EmptyList",
|
|
89
|
-
componentId: "qr1jv6-11"
|
|
89
|
+
componentId: "sc-qr1jv6-11"
|
|
90
90
|
})(["padding:0.5em 1em;list-style-type:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:", ";cursor:not-allowed;"], _Colors.Greyscale.lightgrey);
|
|
91
91
|
|
|
92
92
|
exports.EmptyList = EmptyList;
|
|
93
93
|
|
|
94
94
|
var HelperText = _styledComponents["default"].span.withConfig({
|
|
95
95
|
displayName: "SelectStyle__HelperText",
|
|
96
|
-
componentId: "qr1jv6-12"
|
|
96
|
+
componentId: "sc-qr1jv6-12"
|
|
97
97
|
})(["margin-top:4px;color:", ";font-size:0.875em;&[data-invalid='true']{color:", ";}"], _Colors.Greyscale.devilsgrey, _Colors.PrimaryColor.glintsred);
|
|
98
98
|
|
|
99
99
|
exports.HelperText = HelperText;
|
|
100
100
|
|
|
101
101
|
var GroupContainer = _styledComponents["default"].li.withConfig({
|
|
102
102
|
displayName: "SelectStyle__GroupContainer",
|
|
103
|
-
componentId: "qr1jv6-13"
|
|
103
|
+
componentId: "sc-qr1jv6-13"
|
|
104
104
|
})(["margin-bottom:0.5em;padding:0;list-style-type:none;"]);
|
|
105
105
|
|
|
106
106
|
exports.GroupContainer = GroupContainer;
|
|
107
107
|
|
|
108
108
|
var Group = _styledComponents["default"].ul.withConfig({
|
|
109
109
|
displayName: "SelectStyle__Group",
|
|
110
|
-
componentId: "qr1jv6-14"
|
|
110
|
+
componentId: "sc-qr1jv6-14"
|
|
111
111
|
})(["padding:0;"]);
|
|
112
112
|
|
|
113
113
|
exports.Group = Group;
|
|
114
114
|
|
|
115
115
|
var GroupHeading = _styledComponents["default"].li.withConfig({
|
|
116
116
|
displayName: "SelectStyle__GroupHeading",
|
|
117
|
-
componentId: "qr1jv6-15"
|
|
117
|
+
componentId: "sc-qr1jv6-15"
|
|
118
118
|
})(["padding:0.5em 1em;list-style-type:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:", ";font-size:0.75em;text-transform:uppercase;"], _Colors.Greyscale.devilsgrey);
|
|
119
119
|
|
|
120
120
|
exports.GroupHeading = GroupHeading;
|
|
@@ -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,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -13,6 +11,10 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
13
11
|
|
|
14
12
|
var _TextField = _interopRequireDefault(require("../TextField"));
|
|
15
13
|
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
16
18
|
/** Use onChange to listen to input changes.
|
|
17
19
|
* Use onBlur to listen to focus loss.
|
|
18
20
|
* <br/>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
8
|
-
exports.StepValue2 = exports.MinimumValue3AndMaximumValue10 = exports.Interactive =
|
|
6
|
+
exports["default"] = exports.StepValue2 = exports.MinimumValue3AndMaximumValue10 = exports.Interactive = void 0;
|
|
9
7
|
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
|
|
@@ -15,6 +13,10 @@ var _NumberInput = require("./NumberInput");
|
|
|
15
13
|
|
|
16
14
|
var _GlintsContainer = require("../../Layout/GlintsContainer/GlintsContainer");
|
|
17
15
|
|
|
16
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Input/NumberInput',
|
|
20
22
|
component: _NumberInput.NumberInput,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -27,9 +25,15 @@ var _useOutsideAlerter = require("../../Utils/useOutsideAlerter");
|
|
|
27
25
|
|
|
28
26
|
var S = _interopRequireWildcard(require("./PhoneNumberInputStyles"));
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
var _excluded = ["value", "onChange", "onFocus", "onBlur", "callingCodeOptions", "onInputChange", "filterValue", "isLoadingCallingCodeOptions", "label", "featuredOptionsLabel", "otherOptionsLabel", "callingCodeFilterInputPlaceholder", "callingCodeNoOptionsLabel", "error", "addon"];
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
31
35
|
|
|
32
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
36
|
+
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) { (0, _defineProperty2["default"])(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; }
|
|
33
37
|
|
|
34
38
|
// Downshift wants a ref to this, but we need one ourselves, and there is no way
|
|
35
39
|
// to share.
|
|
@@ -55,7 +59,7 @@ var PhoneNumberInput = function PhoneNumberInput(_ref) {
|
|
|
55
59
|
callingCodeNoOptionsLabel = _ref.callingCodeNoOptionsLabel,
|
|
56
60
|
error = _ref.error,
|
|
57
61
|
addon = _ref.addon,
|
|
58
|
-
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref,
|
|
62
|
+
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
59
63
|
|
|
60
64
|
var _useState = (0, _react.useState)(false),
|
|
61
65
|
isCallingCodeInputOpen = _useState[0],
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
8
|
-
exports
|
|
6
|
+
exports["default"] = exports.WithError = exports.WithAddon = exports.NoCallingCodeOptions = exports.Loading = exports.Default = void 0;
|
|
9
7
|
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
|
|
@@ -17,6 +15,10 @@ var _GlintsContainer = require("../../Layout/GlintsContainer/GlintsContainer");
|
|
|
17
15
|
|
|
18
16
|
var _ = require("../..");
|
|
19
17
|
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
20
22
|
var _default = {
|
|
21
23
|
title: 'Input/PhoneNumberInput',
|
|
22
24
|
component: _PhoneNumberInput.PhoneNumberInput,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
4
|
+
exports.TopRowAddon = exports.TopRow = exports.SignificantNumberInput = exports.PhoneNumberInputContainer = exports.NoOptions = exports.Label = exports.GroupHeader = exports.Error = exports.CallingCodeOptionsList = exports.CallingCodeOptionLabel = exports.CallingCodeOptionCallingCode = exports.CallingCodeOption = exports.CallingCodeInputToggle = exports.CallingCodeInputOpenIndicator = exports.CallingCodeInputLoading = exports.CallingCodeInput = exports.CallingCodeFilterInputGroup = exports.CallingCodeFilterInput = void 0;
|
|
7
5
|
|
|
8
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
7
|
|
|
@@ -13,6 +11,10 @@ var _Shadow = require("../../Utils/Shadow");
|
|
|
13
11
|
|
|
14
12
|
var _Loading = require("../../General/Loading");
|
|
15
13
|
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
16
18
|
var PhoneNumberInputContainer = _styledComponents["default"].div.withConfig({
|
|
17
19
|
displayName: "PhoneNumberInputStyles__PhoneNumberInputContainer",
|
|
18
20
|
componentId: "sc-80kraj-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,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -17,6 +15,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
17
15
|
|
|
18
16
|
var _RadioButtonStyle = require("./RadioButtonStyle");
|
|
19
17
|
|
|
18
|
+
var _excluded = ["className", "children", "error", "label", "labelProps", "theme", "border", "disabled", "size"];
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
20
24
|
/** The className will be passed to
|
|
21
25
|
* the main radio button container. ...inputProps is passed to the
|
|
22
26
|
* input tag. */
|
|
@@ -34,7 +38,7 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
34
38
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
35
39
|
_ref$size = _ref.size,
|
|
36
40
|
size = _ref$size === void 0 ? 'regular' : _ref$size,
|
|
37
|
-
inputProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref,
|
|
41
|
+
inputProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
38
42
|
var content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_RadioButtonStyle.RadioIcon, {
|
|
39
43
|
error: error,
|
|
40
44
|
theme: theme,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.SmallRadioButton = exports.RadioButtonWithError = exports.RadioButtonWithBorder = exports.Interactive = exports.DisabledRadioButton = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
4
|
+
exports.RadioLabel = exports.RadioIcon = exports.RadioContainer = exports.Border = void 0;
|
|
7
5
|
|
|
8
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
7
|
|
|
10
8
|
var _Colors = require("../../Utils/Colors");
|
|
11
9
|
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
|
|
12
14
|
var getStateColor = function getStateColor(_ref, checked) {
|
|
13
15
|
var disabled = _ref.disabled,
|
|
14
16
|
error = _ref.error,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.SearchFilterResultContainer = exports.SearchFilterListWrapper = exports.SearchFilterItemWrapper = exports.SearchFilterContainer = exports.SearchFilterButton = exports.SearchFilterBodyWrapper = exports.SearchFilterBar = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -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,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -29,6 +27,12 @@ var _SelectStyle = require("./SelectStyle");
|
|
|
29
27
|
|
|
30
28
|
var _canWarn = require("../../Utils/canWarn");
|
|
31
29
|
|
|
30
|
+
var _excluded = ["label", "status", "disabled", "className", "onFocus", "onBlur", "onChange", "onInputChange", "noOptionResult", "small", "disableTyping", "removeFloatingLabel", "removeDropIcon", "error", "renderError", "value", "defaultValue", "defaultOpen", "children", "isLoading", "filterFunction"];
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
32
36
|
var defaultFilterFunction = function defaultFilterFunction(option, search) {
|
|
33
37
|
return (0, _toLower["default"])(option).includes((0, _toLower["default"])(search));
|
|
34
38
|
};
|
|
@@ -58,7 +62,7 @@ var Select = function Select(props) {
|
|
|
58
62
|
isLoading = props.isLoading,
|
|
59
63
|
_props$filterFunction = props.filterFunction,
|
|
60
64
|
filterFunction = _props$filterFunction === void 0 ? defaultFilterFunction : _props$filterFunction,
|
|
61
|
-
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props,
|
|
65
|
+
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded); // warn deprecated prop "status"
|
|
62
66
|
|
|
63
67
|
React.useEffect(function warnDeprecatedProp() {
|
|
64
68
|
if (status) {
|
|
@@ -268,17 +272,17 @@ var Select = function Select(props) {
|
|
|
268
272
|
setShouldScrollToActiveOption(true);
|
|
269
273
|
} // down arrow key
|
|
270
274
|
else if (e.keyCode === 40 && activeOptionIndex < options.length - 1) {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
setActiveOptionIndex(activeOptionIndex + 1);
|
|
276
|
+
setShouldScrollToActiveOption(true);
|
|
277
|
+
} // enter key
|
|
278
|
+
else if (e.keyCode === 13) {
|
|
279
|
+
inputElement.blur();
|
|
280
|
+
handleClickOnOption();
|
|
281
|
+
} // escape key
|
|
282
|
+
else if (e.keyCode === 27) {
|
|
283
|
+
inputElement.blur();
|
|
284
|
+
setIsFocus(false);
|
|
285
|
+
}
|
|
282
286
|
}, [disableTyping, options, activeOptionIndex, handleClickOnOption]);
|
|
283
287
|
React.useEffect(function handleScrollToActiveElement() {
|
|
284
288
|
if (shouldScrollToActiveOption) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.Sizes = exports.RemoveFloatingLabel = exports.RemoveDropIcon = exports.LoadingOptions = exports.Error = exports.Disabled = exports.DisableTyping = exports.DefaultValue = exports.DefaultSelect = exports.CustomizeNoOptionResultMessage = exports.CustomizeFilterFunction = exports.BasicUsage = void 0;
|
|
7
7
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
|
|
@@ -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,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -15,11 +13,17 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
15
13
|
|
|
16
14
|
var _SelectStyle = require("./SelectStyle");
|
|
17
15
|
|
|
16
|
+
var _excluded = ["children", "className", "onClick"];
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
18
22
|
var SelectItem = function SelectItem(props) {
|
|
19
23
|
var children = props.children,
|
|
20
24
|
className = props.className,
|
|
21
25
|
onClick = props.onClick,
|
|
22
|
-
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props,
|
|
26
|
+
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
23
27
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_SelectStyle.SelectItemWrapper, (0, _extends2["default"])({
|
|
24
28
|
className: className,
|
|
25
29
|
onMouseDown: onClick
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -19,6 +17,12 @@ var _Loading = _interopRequireDefault(require("../../General/Loading"));
|
|
|
19
17
|
|
|
20
18
|
var _SelectStyle = require("./SelectStyle");
|
|
21
19
|
|
|
20
|
+
var _excluded = ["value", "children"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
22
26
|
var SelectList = function SelectList(_ref) {
|
|
23
27
|
var activeOptionIndex = _ref.activeOptionIndex,
|
|
24
28
|
options = _ref.options,
|
|
@@ -39,7 +43,7 @@ var SelectList = function SelectList(_ref) {
|
|
|
39
43
|
var _data$props = data.props,
|
|
40
44
|
value = _data$props.value,
|
|
41
45
|
children = _data$props.children,
|
|
42
|
-
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_data$props,
|
|
46
|
+
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_data$props, _excluded);
|
|
43
47
|
delete restProps.onOptionClick;
|
|
44
48
|
return /*#__PURE__*/React.createElement(_SelectItem["default"], (0, _extends2["default"])({}, restProps, {
|
|
45
49
|
className: activeOptionIndex === index ? 'active' : null,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.SelectWrapper = exports.SelectListWrapper = exports.SelectLabel = exports.SelectItemWrapper = exports.SelectInput = exports.SelectErrorDefault = exports.SelectContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -13,14 +13,14 @@ var _Shadow = require("../../Utils/Shadow");
|
|
|
13
13
|
|
|
14
14
|
var SelectContainer = _styledComponents["default"].div.withConfig({
|
|
15
15
|
displayName: "SelectStyle__SelectContainer",
|
|
16
|
-
componentId: "gv8n2w-0"
|
|
16
|
+
componentId: "sc-gv8n2w-0"
|
|
17
17
|
})(["flex-grow:1;position:relative;font-weight:normal;"]);
|
|
18
18
|
|
|
19
19
|
exports.SelectContainer = SelectContainer;
|
|
20
20
|
|
|
21
21
|
var SelectWrapper = _styledComponents["default"].div.withConfig({
|
|
22
22
|
displayName: "SelectStyle__SelectWrapper",
|
|
23
|
-
componentId: "gv8n2w-1"
|
|
23
|
+
componentId: "sc-gv8n2w-1"
|
|
24
24
|
})(["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) {
|
|
25
25
|
var small = _ref.small;
|
|
26
26
|
return small ? '12px' : '15px';
|
|
@@ -36,7 +36,7 @@ exports.SelectWrapper = SelectWrapper;
|
|
|
36
36
|
|
|
37
37
|
var SelectLabel = _styledComponents["default"].label.withConfig({
|
|
38
38
|
displayName: "SelectStyle__SelectLabel",
|
|
39
|
-
componentId: "gv8n2w-2"
|
|
39
|
+
componentId: "sc-gv8n2w-2"
|
|
40
40
|
})(["position:absolute;left:", ";background:", ";color:", ";transition:all .2s;pointer-events:none;font-size:", ";", " ", " ", ""], function (_ref4) {
|
|
41
41
|
var small = _ref4.small;
|
|
42
42
|
return small ? '16px' : '22px';
|
|
@@ -72,7 +72,7 @@ exports.SelectLabel = SelectLabel;
|
|
|
72
72
|
|
|
73
73
|
var SelectInput = _styledComponents["default"].input.withConfig({
|
|
74
74
|
displayName: "SelectStyle__SelectInput",
|
|
75
|
-
componentId: "gv8n2w-3"
|
|
75
|
+
componentId: "sc-gv8n2w-3"
|
|
76
76
|
})(["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) {
|
|
77
77
|
var small = _ref10.small;
|
|
78
78
|
return small ? '46px' : '53px';
|
|
@@ -139,7 +139,7 @@ exports.SelectInput = SelectInput;
|
|
|
139
139
|
|
|
140
140
|
var SelectListWrapper = _styledComponents["default"].ul.withConfig({
|
|
141
141
|
displayName: "SelectStyle__SelectListWrapper",
|
|
142
|
-
componentId: "gv8n2w-4"
|
|
142
|
+
componentId: "sc-gv8n2w-4"
|
|
143
143
|
})(["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) {
|
|
144
144
|
var open = _ref22.open;
|
|
145
145
|
return open ? 'visible' : 'hidden';
|
|
@@ -161,7 +161,7 @@ exports.SelectListWrapper = SelectListWrapper;
|
|
|
161
161
|
|
|
162
162
|
var SelectItemWrapper = _styledComponents["default"].li.withConfig({
|
|
163
163
|
displayName: "SelectStyle__SelectItemWrapper",
|
|
164
|
-
componentId: "gv8n2w-5"
|
|
164
|
+
componentId: "sc-gv8n2w-5"
|
|
165
165
|
})(["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;}", ""], _Colors.SecondaryColor.actionblue, _Colors.Greyscale.softgrey, function (_ref27) {
|
|
166
166
|
var disabled = _ref27.disabled;
|
|
167
167
|
|
|
@@ -174,7 +174,7 @@ exports.SelectItemWrapper = SelectItemWrapper;
|
|
|
174
174
|
|
|
175
175
|
var SelectErrorDefault = _styledComponents["default"].span.withConfig({
|
|
176
176
|
displayName: "SelectStyle__SelectErrorDefault",
|
|
177
|
-
componentId: "gv8n2w-6"
|
|
177
|
+
componentId: "sc-gv8n2w-6"
|
|
178
178
|
})(["color:", ";"], _Colors.PrimaryColor.glintsred);
|
|
179
179
|
|
|
180
180
|
exports.SelectErrorDefault = SelectErrorDefault;
|