box-ui-elements 15.0.0-beta.7 → 15.0.0
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/CONTRIBUTING.md +3 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +58 -26
- package/dist/openwith.css +1 -1
- package/dist/openwith.js +10 -17
- package/dist/picker.css +1 -1
- package/dist/picker.js +12 -19
- package/dist/preview.css +1 -1
- package/dist/preview.js +56 -24
- package/dist/sharing.css +1 -1
- package/dist/sharing.js +54 -22
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +56 -24
- package/dist/uploader.css +1 -1
- package/dist/uploader.js +12 -19
- package/es/api/uploads/UploadsReachability.js.flow +2 -2
- package/es/api/uploads/UploadsReachability.js.map +1 -1
- package/es/common/messages.js +4 -0
- package/es/common/messages.js.flow +5 -0
- package/es/common/messages.js.map +1 -1
- package/es/common/types/core.js.flow +2 -0
- package/es/common/types/core.js.map +1 -1
- package/es/components/avatar/UnknownUserAvatar.js +6 -9
- package/es/components/avatar/UnknownUserAvatar.js.map +1 -1
- package/es/components/close-button/CloseButton.js +24 -0
- package/es/components/close-button/CloseButton.js.flow +26 -0
- package/es/components/close-button/CloseButton.js.map +1 -0
- package/es/components/close-button/CloseButton.scss +10 -0
- package/es/components/close-button/CloseButton.stories.js +14 -0
- package/es/components/close-button/CloseButton.stories.js.map +1 -0
- package/es/components/close-button/index.js +2 -0
- package/es/components/close-button/index.js.flow +2 -0
- package/es/components/close-button/index.js.map +1 -0
- package/es/components/date-picker/AccessiblePikaday.js +113 -0
- package/es/components/date-picker/AccessiblePikaday.js.map +1 -0
- package/es/components/date-picker/DatePicker.js +426 -106
- package/es/components/date-picker/DatePicker.js.map +1 -1
- package/es/components/date-picker/DatePicker.scss +32 -22
- package/es/components/date-picker/DatePicker.stories.js +10 -0
- package/es/components/date-picker/DatePicker.stories.js.map +1 -1
- package/es/components/date-picker/_pikaday.scss +8 -2
- package/es/components/flyout/Flyout.js +13 -3
- package/es/components/flyout/Flyout.js.flow +14 -3
- package/es/components/flyout/Flyout.js.map +1 -1
- package/es/components/flyout/Flyout.scss +40 -0
- package/es/components/flyout/FlyoutContext.js +6 -0
- package/es/components/flyout/FlyoutContext.js.flow +9 -0
- package/es/components/flyout/FlyoutContext.js.map +1 -0
- package/es/components/flyout/OverlayHeader.js +33 -0
- package/es/components/flyout/OverlayHeader.js.map +1 -0
- package/es/components/flyout/OverlayHeader.scss +9 -0
- package/es/components/flyout/_variables.scss +1 -0
- package/es/components/flyout/index.js +2 -0
- package/es/components/flyout/index.js.flow +2 -0
- package/es/components/flyout/index.js.map +1 -1
- package/es/components/image-tooltip/ImageTooltip.js +1 -2
- package/es/components/image-tooltip/ImageTooltip.js.map +1 -1
- package/es/components/media-query/constants.js +26 -0
- package/es/components/media-query/constants.js.flow +32 -0
- package/es/components/media-query/constants.js.map +1 -0
- package/es/components/media-query/index.js +3 -0
- package/es/components/media-query/index.js.flow +4 -0
- package/es/components/media-query/index.js.map +1 -0
- package/es/components/media-query/stories/MediaQuery.stories.js +37 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.flow +80 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.map +1 -0
- package/es/components/media-query/types.js +2 -0
- package/es/components/media-query/types.js.flow +29 -0
- package/es/components/media-query/types.js.map +1 -0
- package/es/components/media-query/useMediaQuery.js +91 -0
- package/es/components/media-query/useMediaQuery.js.flow +97 -0
- package/es/components/media-query/useMediaQuery.js.map +1 -0
- package/es/components/media-query/withMediaQuery.js +21 -0
- package/es/components/media-query/withMediaQuery.js.flow +23 -0
- package/es/components/media-query/withMediaQuery.js.map +1 -0
- package/es/components/modal/Modal.scss +27 -0
- package/es/components/preview/previewIcons.js +4 -0
- package/es/components/preview/previewIcons.js.map +1 -1
- package/es/components/search-form/SearchForm.scss +0 -5
- package/es/components/selector-dropdown/SelectorDropdown.js +5 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.flow +3 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.map +1 -1
- package/es/components/tab-view/Tabs.scss +0 -4
- package/es/components/tooltip/Tooltip.js +21 -4
- package/es/components/tooltip/Tooltip.js.map +1 -1
- package/es/constants.js +1 -0
- package/es/constants.js.flow +1 -0
- package/es/constants.js.map +1 -1
- package/es/elements/content-open-with/IconFileMap.js +0 -2
- package/es/elements/content-open-with/IconFileMap.js.flow +0 -2
- package/es/elements/content-open-with/IconFileMap.js.map +1 -1
- package/es/elements/content-sidebar/Sidebar.js +2 -1
- package/es/elements/content-sidebar/Sidebar.js.flow +1 -1
- package/es/elements/content-sidebar/Sidebar.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js +14 -4
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.flow +18 -5
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.map +1 -1
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js +78 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.flow +97 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.map +1 -0
- package/es/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/es/elements/content-sidebar/versions/VersionsSidebar.js +12 -4
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.flow +16 -3
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -10
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.flow +42 -7
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.map +1 -1
- package/es/elements/content-sidebar/versions/flowTypes.js.flow +1 -0
- package/es/elements/content-sidebar/versions/messages.js +20 -0
- package/es/elements/content-sidebar/versions/messages.js.flow +28 -0
- package/es/elements/content-sidebar/versions/messages.js.map +1 -1
- package/es/features/classification/constants.js +2 -1
- package/es/features/classification/constants.js.flow +2 -0
- package/es/features/classification/constants.js.map +1 -1
- package/es/features/classification/flowTypes.js +1 -0
- package/es/features/classification/flowTypes.js.flow +7 -1
- package/es/features/classification/flowTypes.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControls.js +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.flow +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js.flow +20 -17
- package/es/features/classification/security-controls/SecurityControlsItem.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/es/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.flow +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.map +1 -1
- package/es/features/classification/security-controls/messages.js +4 -0
- package/es/features/classification/security-controls/messages.js.flow +5 -0
- package/es/features/classification/security-controls/messages.js.map +1 -1
- package/es/features/classification/security-controls/utils.js +56 -35
- package/es/features/classification/security-controls/utils.js.flow +51 -27
- package/es/features/classification/security-controls/utils.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js +9 -3
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.flow +13 -5
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/es/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/es/features/content-explorer/item-list/ItemList.js +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.flow +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.map +1 -1
- package/es/features/content-explorer/item-list/ItemListName.js +13 -2
- package/es/features/content-explorer/item-list/ItemListName.js.flow +3 -2
- package/es/features/content-explorer/item-list/ItemListName.js.map +1 -1
- package/es/features/header-flyout/HeaderFlyout.js +8 -10
- package/es/features/header-flyout/HeaderFlyout.js.flow +4 -8
- package/es/features/header-flyout/HeaderFlyout.js.map +1 -1
- package/es/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/es/features/header-flyout/styles/_variables.scss +4 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.flow +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.map +1 -1
- package/es/features/presence/PresenceCollaborator.js +90 -0
- package/es/features/presence/PresenceCollaborator.js.flow +81 -0
- package/es/features/presence/PresenceCollaborator.js.map +1 -0
- package/es/features/presence/PresenceCollaborator.scss +28 -0
- package/es/features/presence/PresenceCollaboratorsList.js +9 -57
- package/es/features/presence/PresenceCollaboratorsList.js.flow +7 -58
- package/es/features/presence/PresenceCollaboratorsList.js.map +1 -1
- package/es/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/es/features/quick-search/QuickSearch.js +4 -2
- package/es/features/quick-search/QuickSearch.js.flow +13 -1
- package/es/features/quick-search/QuickSearch.js.map +1 -1
- package/es/features/unified-share-modal/SharedLinkSection.js +9 -20
- package/es/features/unified-share-modal/SharedLinkSection.js.flow +6 -27
- package/es/features/unified-share-modal/SharedLinkSection.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +95 -53
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +70 -14
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/es/features/unified-share-modal/flowTypes.js.flow +6 -0
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/es/features/unified-share-modal/messages.js +8 -0
- package/es/features/unified-share-modal/messages.js.flow +10 -0
- package/es/features/unified-share-modal/messages.js.map +1 -1
- package/es/features/unified-share-modal/utils/mergeContacts.js +13 -10
- package/es/features/unified-share-modal/utils/mergeContacts.js.flow +4 -2
- package/es/features/unified-share-modal/utils/mergeContacts.js.map +1 -1
- package/es/icon/content/FileXbd32.js +39 -0
- package/es/icon/content/FileXbd32.js.flow +38 -0
- package/es/icon/content/FileXbd32.js.map +1 -0
- package/es/icon/content/FileXbd32.stories.js +13 -0
- package/es/icon/content/FileXbd32.stories.js.map +1 -0
- package/es/icon/content/FileXdw32.js +39 -0
- package/es/icon/content/FileXdw32.js.flow +38 -0
- package/es/icon/content/FileXdw32.js.map +1 -0
- package/es/icon/content/FileXdw32.stories.js +13 -0
- package/es/icon/content/FileXdw32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js.map +1 -0
- package/es/icons/avatars/UnknownUserAvatar.js +10 -34
- package/es/icons/avatars/UnknownUserAvatar.js.map +1 -1
- package/es/icons/file-icon/FileIcon.js +8 -2
- package/es/icons/file-icon/FileIcon.js.flow +2 -2
- package/es/icons/file-icon/FileIcon.js.map +1 -1
- package/es/icons/general/IconSearch.js +1 -1
- package/es/icons/general/IconSearch.js.flow +1 -1
- package/es/icons/general/IconSearch.js.map +1 -1
- package/es/icons/general/IconSearchJuicy.js +30 -0
- package/es/icons/general/IconSearchJuicy.js.flow +26 -0
- package/es/icons/general/IconSearchJuicy.js.map +1 -0
- package/es/icons/google-docs/IconGoogle.js +89 -0
- package/es/icons/google-docs/IconGoogle.js.flow +57 -0
- package/es/icons/google-docs/IconGoogle.js.map +1 -0
- package/es/icons/item-icon/ItemIcon.js +4 -0
- package/es/icons/item-icon/ItemIcon.js.map +1 -1
- package/es/icons/microsoft-office/IconOffice.js +80 -0
- package/es/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/es/icons/microsoft-office/IconOffice.js.map +1 -0
- package/es/illustration/EmailVerification140.js +111 -0
- package/es/illustration/EmailVerification140.js.flow +102 -0
- package/es/illustration/EmailVerification140.js.map +1 -0
- package/es/illustration/EmailVerification140.stories.js +13 -0
- package/es/illustration/EmailVerification140.stories.js.map +1 -0
- package/es/src/components/close-button/CloseButton.d.ts +9 -0
- package/es/src/components/close-button/CloseButton.stories.d.ts +9 -0
- package/es/src/components/close-button/__tests__/CloseButton.stories.test.d.ts +0 -0
- package/es/src/components/close-button/__tests__/CloseButton.test.d.ts +1 -0
- package/es/src/components/close-button/index.d.ts +1 -0
- package/es/src/components/date-picker/AccessiblePikaday.d.ts +16 -0
- package/es/src/components/date-picker/DatePicker.d.ts +33 -6
- package/es/src/components/date-picker/DatePicker.stories.d.ts +2 -1
- package/es/src/components/flyout/OverlayHeader.d.ts +10 -0
- package/es/src/components/tooltip/Tooltip.d.ts +4 -3
- package/es/src/icon/content/FileXbd32.d.ts +13 -0
- package/es/src/icon/content/FileXbd32.stories.d.ts +9 -0
- package/es/src/icon/content/FileXdw32.d.ts +13 -0
- package/es/src/icon/content/FileXdw32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.stories.d.ts +9 -0
- package/es/src/icons/avatars/UnknownUserAvatar.d.ts +0 -1
- package/es/src/icons/general/IconSearchJuicy.d.ts +3 -0
- package/es/src/icons/general/__tests__/IconSearchJuicy.test.d.ts +1 -0
- package/es/src/icons/google-docs/IconGoogle.d.ts +12 -0
- package/es/src/icons/google-docs/__tests__/IconGoogle.test.d.ts +1 -0
- package/es/src/icons/item-icon/ItemIcon.d.ts +2 -0
- package/es/src/icons/microsoft-office/IconOffice.d.ts +12 -0
- package/es/src/icons/microsoft-office/__tests__/IconOffice.test.d.ts +1 -0
- package/es/src/illustration/EmailVerification140.d.ts +13 -0
- package/es/src/illustration/EmailVerification140.stories.d.ts +9 -0
- package/es/src/styles/variables.d.ts +9 -0
- package/es/styles/_variables.scss +1 -0
- package/es/styles/common/_forms.scss +6 -0
- package/es/styles/constants/_layout.scss +3 -0
- package/es/styles/constants/_media-queries.scss +15 -0
- package/es/styles/variables.js +18 -0
- package/es/styles/variables.js.flow +10 -1
- package/es/styles/variables.js.map +1 -1
- package/es/utils/Browser.js +12 -0
- package/es/utils/Browser.js.flow +10 -0
- package/es/utils/Browser.js.map +1 -1
- package/es/utils/validators.js +26 -4
- package/es/utils/validators.js.flow +25 -3
- package/es/utils/validators.js.map +1 -1
- package/i18n/bn-IN.js +12 -0
- package/i18n/bn-IN.properties +24 -0
- package/i18n/da-DK.js +12 -0
- package/i18n/da-DK.properties +24 -0
- package/i18n/de-DE.js +12 -0
- package/i18n/de-DE.properties +24 -0
- package/i18n/en-AU.js +12 -0
- package/i18n/en-AU.properties +24 -0
- package/i18n/en-CA.js +12 -0
- package/i18n/en-CA.properties +24 -0
- package/i18n/en-GB.js +12 -0
- package/i18n/en-GB.properties +24 -0
- package/i18n/en-US.js +12 -0
- package/i18n/en-US.properties +24 -0
- package/i18n/en-x-pseudo.js +12 -0
- package/i18n/es-419.js +12 -0
- package/i18n/es-419.properties +24 -0
- package/i18n/es-ES.js +12 -0
- package/i18n/es-ES.properties +24 -0
- package/i18n/fi-FI.js +12 -0
- package/i18n/fi-FI.properties +24 -0
- package/i18n/fr-CA.js +12 -0
- package/i18n/fr-CA.properties +24 -0
- package/i18n/fr-FR.js +12 -0
- package/i18n/fr-FR.properties +24 -0
- package/i18n/hi-IN.js +12 -0
- package/i18n/hi-IN.properties +24 -0
- package/i18n/it-IT.js +12 -0
- package/i18n/it-IT.properties +24 -0
- package/i18n/ja-JP.js +25 -13
- package/i18n/ja-JP.properties +37 -13
- package/i18n/ko-KR.js +12 -0
- package/i18n/ko-KR.properties +24 -0
- package/i18n/nb-NO.js +12 -0
- package/i18n/nb-NO.properties +24 -0
- package/i18n/nl-NL.js +12 -0
- package/i18n/nl-NL.properties +24 -0
- package/i18n/pl-PL.js +12 -0
- package/i18n/pl-PL.properties +24 -0
- package/i18n/pt-BR.js +12 -0
- package/i18n/pt-BR.properties +24 -0
- package/i18n/ru-RU.js +12 -0
- package/i18n/ru-RU.properties +24 -0
- package/i18n/sv-SE.js +12 -0
- package/i18n/sv-SE.properties +24 -0
- package/i18n/tr-TR.js +12 -0
- package/i18n/tr-TR.properties +24 -0
- package/i18n/zh-CN.js +12 -0
- package/i18n/zh-CN.properties +24 -0
- package/i18n/zh-TW.js +12 -0
- package/i18n/zh-TW.properties +24 -0
- package/package.json +8 -5
- package/src/__mocks__/pikaday.js +1 -0
- package/src/api/__tests__/MockOpenWithData.json +2 -25
- package/src/api/uploads/UploadsReachability.js +2 -2
- package/src/common/messages.js +5 -0
- package/src/common/types/core.js +2 -0
- package/src/components/avatar/UnknownUserAvatar.tsx +5 -4
- package/src/components/close-button/CloseButton.js.flow +26 -0
- package/src/components/close-button/CloseButton.scss +10 -0
- package/src/components/close-button/CloseButton.stories.md +1 -0
- package/src/components/close-button/CloseButton.stories.tsx +14 -0
- package/src/components/close-button/CloseButton.tsx +30 -0
- package/src/components/close-button/__tests__/CloseButton.stories.test.tsx +6 -0
- package/src/components/close-button/__tests__/CloseButton.test.tsx +40 -0
- package/src/components/close-button/__tests__/__image_snapshots__/close-button-stories-test-tsx-components-close-button-close-button-looks-visually-correct-when-using-story-components-buttons-closebutton-regular-1-snap.png +0 -0
- package/src/components/close-button/index.js.flow +2 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/date-picker/AccessiblePikaday.ts +79 -0
- package/src/components/date-picker/DatePicker.scss +32 -22
- package/src/components/date-picker/DatePicker.stories.tsx +6 -0
- package/src/components/date-picker/DatePicker.tsx +350 -64
- package/src/components/date-picker/__tests__/DatePicker.test.tsx +44 -2
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-editing-in-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-keyboard-selection-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-closes-calendar-and-clears-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-custom-error-tooltip-position-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-disabled-with-error-message-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-description-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-reflects-changes-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-calendar-and-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-limited-range-in-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/_pikaday.scss +8 -2
- package/src/components/flyout/Flyout.js +14 -3
- package/src/components/flyout/Flyout.scss +40 -0
- package/src/components/flyout/FlyoutContext.js +9 -0
- package/src/components/flyout/OverlayHeader.scss +9 -0
- package/src/components/flyout/OverlayHeader.tsx +38 -0
- package/src/components/flyout/__tests__/Flyout.test.js +15 -0
- package/src/components/flyout/__tests__/OverlayHeader.test.js +56 -0
- package/src/components/flyout/_variables.scss +1 -0
- package/src/components/flyout/index.js +2 -0
- package/src/components/image-tooltip/ImageTooltip.tsx +1 -2
- package/src/components/media-query/__tests__/useMediaQuery.test.js +48 -0
- package/src/components/media-query/__tests__/withMediaQuery.test.js +29 -0
- package/src/components/media-query/constants.js +32 -0
- package/src/components/media-query/index.js +4 -0
- package/src/components/media-query/stories/MediaQuery.stories.js +80 -0
- package/src/components/media-query/stories/MediaQuery.stories.md +29 -0
- package/src/components/media-query/types.js +29 -0
- package/src/components/media-query/useMediaQuery.js +97 -0
- package/src/components/media-query/withMediaQuery.js +23 -0
- package/src/components/modal/Modal.scss +27 -0
- package/src/components/modal/__tests__/Modal.stories.test.js +10 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-basic-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-with-custom-backdrop-click-handler-1-snap.png +0 -0
- package/src/components/preview/previewIcons.ts +4 -0
- package/src/components/search-form/SearchForm.scss +0 -5
- package/src/components/selector-dropdown/SelectorDropdown.js +3 -3
- package/src/components/selector-dropdown/__tests__/SelectorDropdown.test.js +5 -1
- package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +0 -8
- package/src/components/tab-view/Tabs.scss +0 -4
- package/src/components/tooltip/Tooltip.tsx +20 -5
- package/src/components/tooltip/__tests__/Tooltip.test.tsx +17 -4
- package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +0 -2
- package/src/constants.js +1 -0
- package/src/elements/content-open-with/IconFileMap.js +0 -2
- package/src/elements/content-open-with/__tests__/ContentOpenWith.test.js +13 -13
- package/src/elements/content-open-with/__tests__/OpenWithButton.test.js +1 -1
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenu.test.js +1 -5
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenuItem.test.js +2 -2
- package/src/elements/content-open-with/__tests__/__snapshots__/ContentOpenWith.test.js.snap +5 -5
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithButton.test.js.snap +1 -1
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenu.test.js.snap +1 -11
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenuItem.test.js.snap +4 -3
- package/src/elements/content-sidebar/Sidebar.js +1 -1
- package/src/elements/content-sidebar/__tests__/AddTaskButton.test.js +15 -0
- package/src/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/src/elements/content-sidebar/activity-feed/task-form/TaskForm.js +18 -5
- package/src/elements/content-sidebar/versions/StaticVersionSidebar.js +97 -0
- package/src/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/src/elements/content-sidebar/versions/VersionsSidebar.js +16 -3
- package/src/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/src/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -7
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebar.test.js +18 -1
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebarContainer.test.js +51 -2
- package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +75 -0
- package/src/elements/content-sidebar/versions/flowTypes.js +1 -0
- package/src/elements/content-sidebar/versions/messages.js +28 -0
- package/src/features/classification/constants.js +2 -0
- package/src/features/classification/flowTypes.js +7 -1
- package/src/features/classification/security-controls/SecurityControls.js +3 -4
- package/src/features/classification/security-controls/SecurityControlsItem.js +20 -17
- package/src/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/src/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/src/features/classification/security-controls/__tests__/SecurityControlsItem.test.js +10 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControls.test.js.snap +6 -6
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsItem.test.js.snap +35 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsModal.test.js.snap +2 -2
- package/src/features/classification/security-controls/__tests__/__snapshots__/utils.test.js.snap +20 -0
- package/src/features/classification/security-controls/__tests__/utils.test.js +38 -18
- package/src/features/classification/security-controls/messages.js +5 -0
- package/src/features/classification/security-controls/utils.js +51 -27
- package/src/features/collapsible-sidebar/CollapsibleSidebar.js +13 -5
- package/src/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/src/features/collapsible-sidebar/__tests__/CollapsibleSidebar.test.js +35 -0
- package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebar.test.js.snap +1 -0
- package/src/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/src/features/content-explorer/item-list/ItemList.js +1 -0
- package/src/features/content-explorer/item-list/ItemListName.js +3 -2
- package/src/features/content-explorer/item-list/__tests__/ItemListName.test.js +16 -2
- package/src/features/header-flyout/HeaderFlyout.js +4 -8
- package/src/features/header-flyout/__tests__/__snapshots__/HeaderFlyout.test.js.snap +14 -11
- package/src/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/src/features/header-flyout/styles/_variables.scss +4 -0
- package/src/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/src/features/metadata-instance-editor/__tests__/__snapshots__/TemplateDropdown.test.js.snap +7 -0
- package/src/features/pagination/__tests__/__snapshots__/MarkerBasedPagination.test.js.snap +0 -8
- package/src/features/pagination/__tests__/__snapshots__/OffsetBasedPagination.test.js.snap +0 -16
- package/src/features/presence/PresenceCollaborator.js +81 -0
- package/src/features/presence/PresenceCollaborator.scss +28 -0
- package/src/features/presence/PresenceCollaboratorsList.js +7 -58
- package/src/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/src/features/presence/__tests__/PresenceCollaborator.test.js +36 -0
- package/src/features/presence/__tests__/PresenceCollaboratorsList.test.js +13 -57
- package/src/features/presence/__tests__/__snapshots__/Presence.test.js.snap +5 -0
- package/src/features/presence/__tests__/__snapshots__/PresenceLink.test.js.snap +3 -0
- package/src/features/query-bar/__tests__/__snapshots__/ColumnButton.test.js.snap +3 -0
- package/src/features/quick-search/QuickSearch.js +13 -1
- package/src/features/quick-search/__tests__/QuickSearch.test.js +17 -0
- package/src/features/unified-share-modal/SharedLinkSection.js +6 -27
- package/src/features/unified-share-modal/UnifiedShareForm.js +70 -14
- package/src/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/src/features/unified-share-modal/__tests__/EmailForm.test.js +9 -0
- package/src/features/unified-share-modal/__tests__/SharedLinkSection.test.js +14 -4
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +53 -4
- package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkSection.test.js.snap +9 -0
- package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +0 -159
- package/src/features/unified-share-modal/flowTypes.js +6 -0
- package/src/features/unified-share-modal/messages.js +10 -0
- package/src/features/unified-share-modal/utils/__tests__/mergeContacts.test.js +23 -0
- package/src/features/unified-share-modal/utils/mergeContacts.js +4 -2
- package/src/icon/content/FileXbd32.js.flow +38 -0
- package/src/icon/content/FileXbd32.stories.tsx +13 -0
- package/src/icon/content/FileXbd32.tsx +37 -0
- package/src/icon/content/FileXdw32.js.flow +38 -0
- package/src/icon/content/FileXdw32.stories.tsx +13 -0
- package/src/icon/content/FileXdw32.tsx +37 -0
- package/src/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyModifiable32.tsx +29 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.tsx +29 -0
- package/src/icons/adobe-sign/README.md +1 -1
- package/src/icons/avatars/UnknownUserAvatar.tsx +7 -15
- package/src/icons/file-icon/FileIcon.js.flow +2 -2
- package/src/icons/file-icon/FileIcon.tsx +8 -2
- package/src/icons/file-icon/__tests__/FileIcon.test.tsx +28 -69
- package/src/icons/file-icon/__tests__/__snapshots__/FileIcon.test.tsx.snap +48 -34
- package/src/icons/general/IconSearch.js.flow +1 -1
- package/src/icons/general/IconSearch.tsx +1 -1
- package/src/icons/general/IconSearchJuicy.js.flow +26 -0
- package/src/icons/general/IconSearchJuicy.tsx +25 -0
- package/src/icons/general/README.md +5 -0
- package/src/icons/general/__tests__/IconSearchJuicy.test.tsx +38 -0
- package/src/icons/google-docs/IconGoogle.js.flow +57 -0
- package/src/icons/google-docs/IconGoogle.tsx +50 -0
- package/src/icons/google-docs/__tests__/IconGoogle.test.tsx +44 -0
- package/src/icons/item-icon/ItemIcon.tsx +4 -0
- package/src/icons/item-icon/__tests__/ItemIcon.test.tsx +47 -115
- package/src/icons/item-icon/__tests__/__snapshots__/ItemIcon.test.tsx.snap +229 -229
- package/src/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/src/icons/microsoft-office/IconOffice.tsx +38 -0
- package/src/icons/microsoft-office/__tests__/IconOffice.test.tsx +44 -0
- package/src/illustration/EmailVerification140.js.flow +102 -0
- package/src/illustration/EmailVerification140.stories.tsx +13 -0
- package/src/illustration/EmailVerification140.tsx +100 -0
- package/src/styles/_variables.scss +1 -0
- package/src/styles/common/_forms.scss +6 -0
- package/src/styles/constants/_layout.scss +3 -0
- package/src/styles/constants/_media-queries.scss +15 -0
- package/src/styles/variables.js +10 -1
- package/src/styles/variables.json +10 -1
- package/src/styles/variables.ts +9 -0
- package/src/utils/Browser.js +10 -0
- package/src/utils/validators.js +25 -3
|
@@ -66,19 +66,20 @@ declare class Tooltip extends React.Component<TooltipProps, State> {
|
|
|
66
66
|
static defaultProps: DefaultTooltipProps;
|
|
67
67
|
constructor(props: TooltipProps);
|
|
68
68
|
componentDidMount(): void;
|
|
69
|
-
componentDidUpdate(prevProps: TooltipProps): void;
|
|
69
|
+
componentDidUpdate(prevProps: TooltipProps, prevState: State): void;
|
|
70
|
+
componentWillUnmount(): void;
|
|
70
71
|
tooltipID: string;
|
|
71
72
|
tetherRef: React.RefObject<TetherComponent>;
|
|
72
73
|
position: () => void;
|
|
73
74
|
closeTooltip: () => void;
|
|
74
|
-
fireChildEvent: (type: string, event: React.SyntheticEvent<HTMLElement, Event>) => void;
|
|
75
|
+
fireChildEvent: (type: string, event: Event | React.SyntheticEvent<HTMLElement, Event>) => void;
|
|
75
76
|
handleTooltipEvent: (event: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
|
|
76
77
|
handleMouseEnter: (event: React.SyntheticEvent<HTMLElement, Event>) => void;
|
|
77
78
|
handleMouseLeave: (event: React.SyntheticEvent<HTMLElement, Event>) => void;
|
|
78
79
|
handleFocus: (event: React.SyntheticEvent<HTMLElement, Event>) => void;
|
|
79
80
|
handleBlur: (event: React.SyntheticEvent<HTMLElement, Event>) => void;
|
|
80
81
|
isControlled: () => boolean;
|
|
81
|
-
handleKeyDown: (event:
|
|
82
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
82
83
|
isShown: () => boolean | undefined;
|
|
83
84
|
render(): string | number | JSX.Element;
|
|
84
85
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
2
|
+
/**
|
|
3
|
+
* This is an auto-generated component and should not be edited
|
|
4
|
+
* manually in contributor pull requests.
|
|
5
|
+
*
|
|
6
|
+
* If you have problems with this component:
|
|
7
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
8
|
+
*
|
|
9
|
+
* If there are missing features in this component:
|
|
10
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
11
|
+
*/
|
|
12
|
+
declare const FileXbd32: (props: SVGProps) => JSX.Element;
|
|
13
|
+
export default FileXbd32;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const fileXbd32: () => JSX.Element;
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../../components/accessible-svg/AccessibleSVG").SVGProps) => JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
2
|
+
/**
|
|
3
|
+
* This is an auto-generated component and should not be edited
|
|
4
|
+
* manually in contributor pull requests.
|
|
5
|
+
*
|
|
6
|
+
* If you have problems with this component:
|
|
7
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
8
|
+
*
|
|
9
|
+
* If there are missing features in this component:
|
|
10
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
11
|
+
*/
|
|
12
|
+
declare const FileXdw32: (props: SVGProps) => JSX.Element;
|
|
13
|
+
export default FileXdw32;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const fileXdw32: () => JSX.Element;
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../../components/accessible-svg/AccessibleSVG").SVGProps) => JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
2
|
+
/**
|
|
3
|
+
* This is an auto-generated component and should not be edited
|
|
4
|
+
* manually in contributor pull requests.
|
|
5
|
+
*
|
|
6
|
+
* If you have problems with this component:
|
|
7
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
8
|
+
*
|
|
9
|
+
* If there are missing features in this component:
|
|
10
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
11
|
+
*/
|
|
12
|
+
declare const RetentionPolicyModifiable32: (props: SVGProps) => JSX.Element;
|
|
13
|
+
export default RetentionPolicyModifiable32;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const retentionPolicyModifiable32: () => JSX.Element;
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../../components/accessible-svg/AccessibleSVG").SVGProps) => JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
2
|
+
/**
|
|
3
|
+
* This is an auto-generated component and should not be edited
|
|
4
|
+
* manually in contributor pull requests.
|
|
5
|
+
*
|
|
6
|
+
* If you have problems with this component:
|
|
7
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
8
|
+
*
|
|
9
|
+
* If there are missing features in this component:
|
|
10
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
11
|
+
*/
|
|
12
|
+
declare const RetentionPolicyNonModifiable32: (props: SVGProps) => JSX.Element;
|
|
13
|
+
export default RetentionPolicyNonModifiable32;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const retentionPolicyNonModifiable32: () => JSX.Element;
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../../components/accessible-svg/AccessibleSVG").SVGProps) => JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TwoTonedIcon } from '../iconTypes';
|
|
3
|
+
declare class IconGoogle extends React.Component<TwoTonedIcon> {
|
|
4
|
+
static defaultProps: {
|
|
5
|
+
className: string;
|
|
6
|
+
height: number;
|
|
7
|
+
width: number;
|
|
8
|
+
};
|
|
9
|
+
idPrefix: string;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export default IconGoogle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,6 +7,8 @@ declare const itemIconTable: {
|
|
|
7
7
|
code: (props: SVGProps) => JSX.Element;
|
|
8
8
|
default: (props: SVGProps) => JSX.Element;
|
|
9
9
|
document: (props: SVGProps) => JSX.Element;
|
|
10
|
+
'docuworks-binder': (props: SVGProps) => JSX.Element;
|
|
11
|
+
'docuworks-file': (props: SVGProps) => JSX.Element;
|
|
10
12
|
dwg: (props: SVGProps) => JSX.Element;
|
|
11
13
|
'excel-spreadsheet': (props: SVGProps) => JSX.Element;
|
|
12
14
|
'folder-collab': (props: SVGProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TwoTonedIcon } from '../iconTypes';
|
|
3
|
+
declare class IconOffice extends React.Component<TwoTonedIcon> {
|
|
4
|
+
static defaultProps: {
|
|
5
|
+
className: string;
|
|
6
|
+
height: number;
|
|
7
|
+
width: number;
|
|
8
|
+
};
|
|
9
|
+
idPrefix: string;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export default IconOffice;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SVGProps } from '../components/accessible-svg/AccessibleSVG';
|
|
2
|
+
/**
|
|
3
|
+
* This is an auto-generated component and should not be edited
|
|
4
|
+
* manually in contributor pull requests.
|
|
5
|
+
*
|
|
6
|
+
* If you have problems with this component:
|
|
7
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
8
|
+
*
|
|
9
|
+
* If there are missing features in this component:
|
|
10
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
11
|
+
*/
|
|
12
|
+
declare const EmailVerification140: (props: SVGProps) => JSX.Element;
|
|
13
|
+
export default EmailVerification140;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const emailVerification140: () => JSX.Element;
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../components/accessible-svg/AccessibleSVG").SVGProps) => JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -88,6 +88,7 @@ export declare const bdlBorderRadiusSize = "4px";
|
|
|
88
88
|
export declare const bdlBorderRadiusSizeMed = "6px";
|
|
89
89
|
export declare const bdlBorderRadiusSizeLarge = "8px";
|
|
90
90
|
export declare const bdlBorderRadiusSizeXlarge = "12px";
|
|
91
|
+
export declare const bdlHeaderBoxShadow: string[];
|
|
91
92
|
export declare const bdlGridUnit = "4px";
|
|
92
93
|
export declare const bdlGridUnitPx = "4";
|
|
93
94
|
export declare const bdlBtnBorderWidth = "1px";
|
|
@@ -98,3 +99,11 @@ export declare const bdlBtnTextIconSize = "16px";
|
|
|
98
99
|
export declare const bdlBtnPaddingHorizontal = "16px";
|
|
99
100
|
export declare const bdlTransitionDurationBase = "0.15s";
|
|
100
101
|
export declare const bdlTimingFunction: string[];
|
|
102
|
+
export declare const sizeSmallMax = "374px";
|
|
103
|
+
export declare const sizeSmallMediumMax = "460px";
|
|
104
|
+
export declare const sizeMediumMax = "767px";
|
|
105
|
+
export declare const sizeLargeMax = "1023px";
|
|
106
|
+
export declare const smallScreen = "(max-width: 374px)";
|
|
107
|
+
export declare const smallMediumScreen = "(max-width: 460px)";
|
|
108
|
+
export declare const mediumScreen = "(max-width: 767px)";
|
|
109
|
+
export declare const largeScreen = "(max-width: 1023px)";
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/* Inputs */
|
|
8
8
|
|
|
9
9
|
input[type='text'],
|
|
10
|
+
input[type='date'],
|
|
10
11
|
input[type='password'],
|
|
11
12
|
input[type='search'],
|
|
12
13
|
input[type='email'],
|
|
@@ -21,6 +22,7 @@ textarea {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
input[type='text']:hover,
|
|
25
|
+
input[type='date']:hover,
|
|
24
26
|
input[type='password']:hover,
|
|
25
27
|
input[type='search']:hover,
|
|
26
28
|
input[type='email']:hover,
|
|
@@ -33,6 +35,7 @@ textarea:hover {
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
input[type='text']:focus,
|
|
38
|
+
input[type='date']:focus,
|
|
36
39
|
input[type='password']:focus,
|
|
37
40
|
input[type='search']:focus,
|
|
38
41
|
input[type='email']:focus,
|
|
@@ -51,6 +54,7 @@ input:-ms-input-placeholder {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
input[type='text'].is-invalid,
|
|
57
|
+
input[type='date'].is-invalid,
|
|
54
58
|
input[type='password'].is-invalid,
|
|
55
59
|
input[type='search'].is-invalid,
|
|
56
60
|
input[type='email'].is-invalid,
|
|
@@ -63,6 +67,7 @@ textarea.is-invalid {
|
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
input[type='text'].is-invalid:focus,
|
|
70
|
+
input[type='date'].is-invalid:focus,
|
|
66
71
|
input[type='password'].is-invalid:focus,
|
|
67
72
|
input[type='search'].is-invalid:focus,
|
|
68
73
|
input[type='email'].is-invalid:focus,
|
|
@@ -75,6 +80,7 @@ textarea.is-invalid:focus {
|
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
input[type='text']:disabled,
|
|
83
|
+
input[type='date']:disabled,
|
|
78
84
|
input[type='password']:disabled,
|
|
79
85
|
input[type='search']:disabled,
|
|
80
86
|
input[type='email']:disabled,
|
|
@@ -11,6 +11,9 @@ $bdl-border-radius-size-med: $bdl-border-radius-size * 1.5;
|
|
|
11
11
|
$bdl-border-radius-size-large: $bdl-border-radius-size * 2;
|
|
12
12
|
$bdl-border-radius-size-xlarge: $bdl-border-radius-size * 3;
|
|
13
13
|
|
|
14
|
+
// Drop shadows
|
|
15
|
+
$bdl-header-box-shadow: 0 0 10px 0 rgba(0, 0, 0, .05);
|
|
16
|
+
|
|
14
17
|
// Spacing
|
|
15
18
|
$bdl-grid-unit: 4px !default;
|
|
16
19
|
$bdl-grid-unit-px: 4 !default; // unitless grid unit (defined in pixels for manual multiplication in JS)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$size-small-max: 374px;
|
|
2
|
+
$size-small-medium-max: 460px;
|
|
3
|
+
$size-medium-max: 767px;
|
|
4
|
+
$size-large-max: 1023px;
|
|
5
|
+
|
|
6
|
+
$small-screen: unquote('(max-width: #{$size-small-max})');
|
|
7
|
+
$small-medium-screen: unquote('(max-width: #{$size-small-medium-max})');
|
|
8
|
+
$medium-screen: unquote('(max-width: #{$size-medium-max})');
|
|
9
|
+
$large-screen: unquote('(max-width: #{$size-large-max})');
|
|
10
|
+
|
|
11
|
+
@mixin breakpoint($media-query) {
|
|
12
|
+
@media #{$media-query} {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/es/styles/variables.js
CHANGED
|
@@ -179,6 +179,8 @@ export var bdlBorderRadiusSizeLarge = '8px'; // bdl-border-radius-size-large
|
|
|
179
179
|
|
|
180
180
|
export var bdlBorderRadiusSizeXlarge = '12px'; // bdl-border-radius-size-xlarge
|
|
181
181
|
|
|
182
|
+
export var bdlHeaderBoxShadow = ['0 0 10px 0 rgba(0', '0', '0', '0.05)']; // bdl-header-box-shadow
|
|
183
|
+
|
|
182
184
|
export var bdlGridUnit = '4px'; // bdl-grid-unit
|
|
183
185
|
|
|
184
186
|
export var bdlGridUnitPx = '4'; // bdl-grid-unit-px
|
|
@@ -198,4 +200,20 @@ export var bdlBtnPaddingHorizontal = '16px'; // bdl-btn-padding-horizontal
|
|
|
198
200
|
export var bdlTransitionDurationBase = '0.15s'; // bdl-transitionDurationBase
|
|
199
201
|
|
|
200
202
|
export var bdlTimingFunction = ['cubic-bezier(0', '0', '0.6', '1)']; // bdl-timingFunction
|
|
203
|
+
|
|
204
|
+
export var sizeSmallMax = '374px'; // size-small-max
|
|
205
|
+
|
|
206
|
+
export var sizeSmallMediumMax = '460px'; // size-small-medium-max
|
|
207
|
+
|
|
208
|
+
export var sizeMediumMax = '767px'; // size-medium-max
|
|
209
|
+
|
|
210
|
+
export var sizeLargeMax = '1023px'; // size-large-max
|
|
211
|
+
|
|
212
|
+
export var smallScreen = '(max-width: 374px)'; // small-screen
|
|
213
|
+
|
|
214
|
+
export var smallMediumScreen = '(max-width: 460px)'; // small-medium-screen
|
|
215
|
+
|
|
216
|
+
export var mediumScreen = '(max-width: 767px)'; // medium-screen
|
|
217
|
+
|
|
218
|
+
export var largeScreen = '(max-width: 1023px)'; // large-screen
|
|
201
219
|
//# sourceMappingURL=variables.js.map
|
|
@@ -92,6 +92,7 @@ export const bdlBorderRadiusSize = "4px"; // bdl-border-radius-size
|
|
|
92
92
|
export const bdlBorderRadiusSizeMed = "6px"; // bdl-border-radius-size-med
|
|
93
93
|
export const bdlBorderRadiusSizeLarge = "8px"; // bdl-border-radius-size-large
|
|
94
94
|
export const bdlBorderRadiusSizeXlarge = "12px"; // bdl-border-radius-size-xlarge
|
|
95
|
+
export const bdlHeaderBoxShadow = ["0 0 10px 0 rgba(0","0","0","0.05)"]; // bdl-header-box-shadow
|
|
95
96
|
export const bdlGridUnit = "4px"; // bdl-grid-unit
|
|
96
97
|
export const bdlGridUnitPx = "4"; // bdl-grid-unit-px
|
|
97
98
|
export const bdlBtnBorderWidth = "1px"; // bdl-btn-border-width
|
|
@@ -101,4 +102,12 @@ export const bdlBtnIconSize = "20px"; // bdl-btn-icon-size
|
|
|
101
102
|
export const bdlBtnTextIconSize = "16px"; // bdl-btn-text-icon-size
|
|
102
103
|
export const bdlBtnPaddingHorizontal = "16px"; // bdl-btn-padding-horizontal
|
|
103
104
|
export const bdlTransitionDurationBase = "0.15s"; // bdl-transitionDurationBase
|
|
104
|
-
export const bdlTimingFunction = ["cubic-bezier(0","0","0.6","1)"]; // bdl-timingFunction
|
|
105
|
+
export const bdlTimingFunction = ["cubic-bezier(0","0","0.6","1)"]; // bdl-timingFunction
|
|
106
|
+
export const sizeSmallMax = "374px"; // size-small-max
|
|
107
|
+
export const sizeSmallMediumMax = "460px"; // size-small-medium-max
|
|
108
|
+
export const sizeMediumMax = "767px"; // size-medium-max
|
|
109
|
+
export const sizeLargeMax = "1023px"; // size-large-max
|
|
110
|
+
export const smallScreen = "(max-width: 374px)"; // small-screen
|
|
111
|
+
export const smallMediumScreen = "(max-width: 460px)"; // small-medium-screen
|
|
112
|
+
export const mediumScreen = "(max-width: 767px)"; // medium-screen
|
|
113
|
+
export const largeScreen = "(max-width: 1023px)"; // large-screen
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/styles/variables.ts"],"names":["white","black","countBadgeBackground","bdlBoxBlue","bdlBoxBlue80","bdlBoxBlue50","bdlBoxBlue40","bdlBoxBlue30","bdlBoxBlue20","bdlBoxBlue10","bdlBoxBlue05","bdlBoxBlue02","bdlGray","bdlGray80","bdlGray62","bdlGray50","bdlGray40","bdlGray30","bdlGray20","bdlGray10","bdlGray05","bdlGray02","bdlDarkBlue","bdlDarkBlue50","bdlDarkBlue20","bdlDarkBlue10","bdlDarkBlue05","bdlDarkBlue02","bdlLightBlue","bdlLightBlue50","bdlLightBlue20","bdlLightBlue10","bdlLightBlue05","bdlLightBlue02","bdlYellorange","bdlYellorange50","bdlYellorange20","bdlYellorange10","bdlYellorange05","bdlYellorange02","bdlYellow","bdlYellow50","bdlYellow20","bdlYellow10","bdlYellow05","bdlYellow02","bdlGreenLight","bdlGreenLight50","bdlGreenLight20","bdlGreenLight10","bdlGreenLight05","bdlGreenLight02","bdlGrimace","bdlGrimace50","bdlGrimace20","bdlGrimace10","bdlGrimace05","bdlGrimace02","bdlOrange","bdlOrange50","bdlOrange20","bdlOrange10","bdlOrange05","bdlOrange02","bdlPurpleRain","bdlPurpleRain50","bdlPurpleRain20","bdlPurpleRain10","bdlPurpleRain05","bdlPurpleRain02","bdlWatermelonRed","bdlWatermelonRed50","bdlWatermelonRed20","bdlWatermelonRed10","bdlWatermelonRed05","bdlWatermelonRed02","bdlLineHeight","bdlFontSize","bdlFontSizeMinimum","bdlFontSizeDejaBlue","avatarColors","modalDialogZIndex","menuZIndex","notificationsWrapperZIndex","overlayZIndex","tooltipZIndex","bdlBorderRadiusSize","bdlBorderRadiusSizeMed","bdlBorderRadiusSizeLarge","bdlBorderRadiusSizeXlarge","bdlGridUnit","bdlGridUnitPx","bdlBtnBorderWidth","bdlBtnHeight","bdlBtnHeightLarge","bdlBtnIconSize","bdlBtnTextIconSize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AO,IAAMC,kBAAkB,GAAG,MAA3B,C,CAAmC;;AAC1C,OAAO,IAAMC,uBAAuB,GAAG,MAAhC,C,CAAwC;;AAC/C,OAAO,IAAMC,yBAAyB,GAAG,OAAlC,C,CAA2C;;AAClD,OAAO,IAAMC,iBAAiB,GAAG,CAAC,gBAAD,EAAmB,GAAnB,EAAwB,KAAxB,EAA+B,IAA/B,CAA1B,C,CAAgE","sourcesContent":["/* File auto-generated */\nexport const white = '#fff'; // white\nexport const black = '#000'; // black\nexport const countBadgeBackground = '#e9163c'; // countBadgeBackground\nexport const bdlBoxBlue = '#0061d5'; // bdl-box-blue\nexport const bdlBoxBlue80 = '#3381dd'; // bdl-box-blue-80\nexport const bdlBoxBlue50 = '#7fb0ea'; // bdl-box-blue-50\nexport const bdlBoxBlue40 = '#99c0ee'; // bdl-box-blue-40\nexport const bdlBoxBlue30 = '#b2cff2'; // bdl-box-blue-30\nexport const bdlBoxBlue20 = '#ccdff7'; // bdl-box-blue-20\nexport const bdlBoxBlue10 = '#e5effa'; // bdl-box-blue-10\nexport const bdlBoxBlue05 = '#f2f7fd'; // bdl-box-blue-05\nexport const bdlBoxBlue02 = '#fafcfe'; // bdl-box-blue-02\nexport const bdlGray = '#222'; // bdl-gray\nexport const bdlGray80 = '#4e4e4e'; // bdl-gray-80\nexport const bdlGray62 = '#767676'; // bdl-gray-62\nexport const bdlGray50 = '#909090'; // bdl-gray-50\nexport const bdlGray40 = '#a7a7a7'; // bdl-gray-40\nexport const bdlGray30 = '#bcbcbc'; // bdl-gray-30\nexport const bdlGray20 = '#d3d3d3'; // bdl-gray-20\nexport const bdlGray10 = '#e8e8e8'; // bdl-gray-10\nexport const bdlGray05 = '#f4f4f4'; // bdl-gray-05\nexport const bdlGray02 = '#fbfbfb'; // bdl-gray-02\nexport const bdlDarkBlue = '#003c84'; // bdl-dark-blue\nexport const bdlDarkBlue50 = '#7f9dc1'; // bdl-dark-blue-50\nexport const bdlDarkBlue20 = '#ccd8e6'; // bdl-dark-blue-20\nexport const bdlDarkBlue10 = '#e5ebf2'; // bdl-dark-blue-10\nexport const bdlDarkBlue05 = '#f2f5f9'; // bdl-dark-blue-05\nexport const bdlDarkBlue02 = '#fafbfd'; // bdl-dark-blue-02\nexport const bdlLightBlue = '#2486fc'; // bdl-light-blue\nexport const bdlLightBlue50 = '#91c2fd'; // bdl-light-blue-50\nexport const bdlLightBlue20 = '#d3e7fe'; // bdl-light-blue-20\nexport const bdlLightBlue10 = '#e9f2fe'; // bdl-light-blue-10\nexport const bdlLightBlue05 = '#f4f9ff'; // bdl-light-blue-05\nexport const bdlLightBlue02 = '#fbfdff'; // bdl-light-blue-02\nexport const bdlYellorange = '#f5b31b'; // bdl-yellorange\nexport const bdlYellorange50 = '#fad98d'; // bdl-yellorange-50\nexport const bdlYellorange20 = '#fdf0d1'; // bdl-yellorange-20\nexport const bdlYellorange10 = '#fef7e8'; // bdl-yellorange-10\nexport const bdlYellorange05 = '#fefbf3'; // bdl-yellorange-05\nexport const bdlYellorange02 = '#fffefb'; // bdl-yellorange-02\nexport const bdlYellow = '#ffd700'; // bdl-yellow\nexport const bdlYellow50 = '#ffeb7f'; // bdl-yellow-50\nexport const bdlYellow20 = '#fff7cc'; // bdl-yellow-20\nexport const bdlYellow10 = '#fffbe5'; // bdl-yellow-10\nexport const bdlYellow05 = '#fffdf2'; // bdl-yellow-05\nexport const bdlYellow02 = '#fffefa'; // bdl-yellow-02\nexport const bdlGreenLight = '#26c281'; // bdl-green-light\nexport const bdlGreenLight50 = '#92e0c0'; // bdl-green-light-50\nexport const bdlGreenLight20 = '#d4f3e6'; // bdl-green-light-20\nexport const bdlGreenLight10 = '#e9f8f2'; // bdl-green-light-10\nexport const bdlGreenLight05 = '#f4fcf8'; // bdl-green-light-05\nexport const bdlGreenLight02 = '#fbfefd'; // bdl-green-light-02\nexport const bdlGrimace = '#4826c2'; // bdl-grimace\nexport const bdlGrimace50 = '#a392e0'; // bdl-grimace-50\nexport const bdlGrimace20 = '#dad4f3'; // bdl-grimace-20\nexport const bdlGrimace10 = '#ece9f8'; // bdl-grimace-10\nexport const bdlGrimace05 = '#f6f4fc'; // bdl-grimace-05\nexport const bdlGrimace02 = '#fbfbfe'; // bdl-grimace-02\nexport const bdlOrange = '#f1811a'; // bdl-orange\nexport const bdlOrange50 = '#f8c08c'; // bdl-orange-50\nexport const bdlOrange20 = '#fce6d1'; // bdl-orange-20\nexport const bdlOrange10 = '#fdf2e8'; // bdl-orange-10\nexport const bdlOrange05 = '#fef8f3'; // bdl-orange-05\nexport const bdlOrange02 = '#fffdfb'; // bdl-orange-02\nexport const bdlPurpleRain = '#9f3fed'; // bdl-purple-rain\nexport const bdlPurpleRain50 = '#cf9ff6'; // bdl-purple-rain-50\nexport const bdlPurpleRain20 = '#ecd9fb'; // bdl-purple-rain-20\nexport const bdlPurpleRain10 = '#f5ebfd'; // bdl-purple-rain-10\nexport const bdlPurpleRain05 = '#faf5fe'; // bdl-purple-rain-05\nexport const bdlPurpleRain02 = '#fdfbff'; // bdl-purple-rain-02\nexport const bdlWatermelonRed = '#ed3757'; // bdl-watermelon-red\nexport const bdlWatermelonRed50 = '#f69bab'; // bdl-watermelon-red-50\nexport const bdlWatermelonRed20 = '#fbd7dd'; // bdl-watermelon-red-20\nexport const bdlWatermelonRed10 = '#fdebee'; // bdl-watermelon-red-10\nexport const bdlWatermelonRed05 = '#fef5f6'; // bdl-watermelon-red-05\nexport const bdlWatermelonRed02 = '#fffbfc'; // bdl-watermelon-red-02\nexport const bdlLineHeight = '20px'; // bdl-line-height\nexport const bdlFontSize = '13px'; // bdl-fontSize\nexport const bdlFontSizeMinimum = '11px'; // bdl-fontSize-minimum\nexport const bdlFontSizeDejaBlue = '14px'; // bdl-fontSize--dejaBlue\nexport const avatarColors = ['#0061d5', '#003c84', '#767676', '#222', '#4826c2', '#9f3fed']; // avatar-colors\nexport const modalDialogZIndex = '160'; // modal-dialog-z-index\nexport const menuZIndex = '170'; // menu-z-index\nexport const notificationsWrapperZIndex = '180'; // notifications-wrapper-z-index\nexport const overlayZIndex = '190'; // overlay-z-index\nexport const tooltipZIndex = '190'; // tooltip-z-index\nexport const bdlBorderRadiusSize = '4px'; // bdl-border-radius-size\nexport const bdlBorderRadiusSizeMed = '6px'; // bdl-border-radius-size-med\nexport const bdlBorderRadiusSizeLarge = '8px'; // bdl-border-radius-size-large\nexport const bdlBorderRadiusSizeXlarge = '12px'; // bdl-border-radius-size-xlarge\nexport const bdlGridUnit = '4px'; // bdl-grid-unit\nexport const bdlGridUnitPx = '4'; // bdl-grid-unit-px\nexport const bdlBtnBorderWidth = '1px'; // bdl-btn-border-width\nexport const bdlBtnHeight = '32px'; // bdl-btn-height\nexport const bdlBtnHeightLarge = '40px'; // bdl-btn-height-large\nexport const bdlBtnIconSize = '20px'; // bdl-btn-icon-size\nexport const bdlBtnTextIconSize = '16px'; // bdl-btn-text-icon-size\nexport const bdlBtnPaddingHorizontal = '16px'; // bdl-btn-padding-horizontal\nexport const bdlTransitionDurationBase = '0.15s'; // bdl-transitionDurationBase\nexport const bdlTimingFunction = ['cubic-bezier(0', '0', '0.6', '1)']; // bdl-timingFunction\n"],"file":"variables.js"}
|
|
1
|
+
{"version":3,"sources":["../../src/styles/variables.ts"],"names":["white","black","countBadgeBackground","bdlBoxBlue","bdlBoxBlue80","bdlBoxBlue50","bdlBoxBlue40","bdlBoxBlue30","bdlBoxBlue20","bdlBoxBlue10","bdlBoxBlue05","bdlBoxBlue02","bdlGray","bdlGray80","bdlGray62","bdlGray50","bdlGray40","bdlGray30","bdlGray20","bdlGray10","bdlGray05","bdlGray02","bdlDarkBlue","bdlDarkBlue50","bdlDarkBlue20","bdlDarkBlue10","bdlDarkBlue05","bdlDarkBlue02","bdlLightBlue","bdlLightBlue50","bdlLightBlue20","bdlLightBlue10","bdlLightBlue05","bdlLightBlue02","bdlYellorange","bdlYellorange50","bdlYellorange20","bdlYellorange10","bdlYellorange05","bdlYellorange02","bdlYellow","bdlYellow50","bdlYellow20","bdlYellow10","bdlYellow05","bdlYellow02","bdlGreenLight","bdlGreenLight50","bdlGreenLight20","bdlGreenLight10","bdlGreenLight05","bdlGreenLight02","bdlGrimace","bdlGrimace50","bdlGrimace20","bdlGrimace10","bdlGrimace05","bdlGrimace02","bdlOrange","bdlOrange50","bdlOrange20","bdlOrange10","bdlOrange05","bdlOrange02","bdlPurpleRain","bdlPurpleRain50","bdlPurpleRain20","bdlPurpleRain10","bdlPurpleRain05","bdlPurpleRain02","bdlWatermelonRed","bdlWatermelonRed50","bdlWatermelonRed20","bdlWatermelonRed10","bdlWatermelonRed05","bdlWatermelonRed02","bdlLineHeight","bdlFontSize","bdlFontSizeMinimum","bdlFontSizeDejaBlue","avatarColors","modalDialogZIndex","menuZIndex","notificationsWrapperZIndex","overlayZIndex","tooltipZIndex","bdlBorderRadiusSize","bdlBorderRadiusSizeMed","bdlBorderRadiusSizeLarge","bdlBorderRadiusSizeXlarge","bdlHeaderBoxShadow","bdlGridUnit","bdlGridUnitPx","bdlBtnBorderWidth","bdlBtnHeight","bdlBtnHeightLarge","bdlBtnIconSize","bdlBtnTextIconSize","bdlBtnPaddingHorizontal","bdlTransitionDurationBase","bdlTimingFunction","sizeSmallMax","sizeSmallMediumMax","sizeMediumMax","sizeLargeMax","smallScreen","smallMediumScreen","mediumScreen","largeScreen"],"mappings":"AAAA;AACA,OAAO,IAAMA,KAAK,GAAG,MAAd,C,CAAsB;;AAC7B,OAAO,IAAMC,KAAK,GAAG,MAAd,C,CAAsB;;AAC7B,OAAO,IAAMC,oBAAoB,GAAG,SAA7B,C,CAAwC;;AAC/C,OAAO,IAAMC,UAAU,GAAG,SAAnB,C,CAA8B;;AACrC,OAAO,IAAMC,YAAY,GAAG,SAArB,C,CAAgC;;AACvC,OAAO,IAAMC,YAAY,GAAG,SAArB,C,CAAgC;;AACvC,OAAO,IAAMC,YAAY,GAAG,SAArB,C,CAAgC;;AACvC,OAAO,IAAMC,YAAY,GAAG,SAArB,C,CAAgC;;AACvC,OAAO,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AAC3C,OAAO,IAAMC,aAAa,GAAG,OAAtB,C,CAA+B;;AACtC,OAAO,IAAMC,YAAY,GAAG,QAArB,C,CAA+B;;AACtC,OAAO,IAAMC,WAAW,GAAG,oBAApB,C,CAA0C;;AACjD,OAAO,IAAMC,iBAAiB,GAAG,oBAA1B,C,CAAgD;;AACvD,OAAO,IAAMC,YAAY,GAAG,oBAArB,C,CAA2C;;AAClD,OAAO,IAAMC,WAAW,GAAG,qBAApB,C,CAA2C","sourcesContent":["/* File auto-generated */\nexport const white = '#fff'; // white\nexport const black = '#000'; // black\nexport const countBadgeBackground = '#e9163c'; // countBadgeBackground\nexport const bdlBoxBlue = '#0061d5'; // bdl-box-blue\nexport const bdlBoxBlue80 = '#3381dd'; // bdl-box-blue-80\nexport const bdlBoxBlue50 = '#7fb0ea'; // bdl-box-blue-50\nexport const bdlBoxBlue40 = '#99c0ee'; // bdl-box-blue-40\nexport const bdlBoxBlue30 = '#b2cff2'; // bdl-box-blue-30\nexport const bdlBoxBlue20 = '#ccdff7'; // bdl-box-blue-20\nexport const bdlBoxBlue10 = '#e5effa'; // bdl-box-blue-10\nexport const bdlBoxBlue05 = '#f2f7fd'; // bdl-box-blue-05\nexport const bdlBoxBlue02 = '#fafcfe'; // bdl-box-blue-02\nexport const bdlGray = '#222'; // bdl-gray\nexport const bdlGray80 = '#4e4e4e'; // bdl-gray-80\nexport const bdlGray62 = '#767676'; // bdl-gray-62\nexport const bdlGray50 = '#909090'; // bdl-gray-50\nexport const bdlGray40 = '#a7a7a7'; // bdl-gray-40\nexport const bdlGray30 = '#bcbcbc'; // bdl-gray-30\nexport const bdlGray20 = '#d3d3d3'; // bdl-gray-20\nexport const bdlGray10 = '#e8e8e8'; // bdl-gray-10\nexport const bdlGray05 = '#f4f4f4'; // bdl-gray-05\nexport const bdlGray02 = '#fbfbfb'; // bdl-gray-02\nexport const bdlDarkBlue = '#003c84'; // bdl-dark-blue\nexport const bdlDarkBlue50 = '#7f9dc1'; // bdl-dark-blue-50\nexport const bdlDarkBlue20 = '#ccd8e6'; // bdl-dark-blue-20\nexport const bdlDarkBlue10 = '#e5ebf2'; // bdl-dark-blue-10\nexport const bdlDarkBlue05 = '#f2f5f9'; // bdl-dark-blue-05\nexport const bdlDarkBlue02 = '#fafbfd'; // bdl-dark-blue-02\nexport const bdlLightBlue = '#2486fc'; // bdl-light-blue\nexport const bdlLightBlue50 = '#91c2fd'; // bdl-light-blue-50\nexport const bdlLightBlue20 = '#d3e7fe'; // bdl-light-blue-20\nexport const bdlLightBlue10 = '#e9f2fe'; // bdl-light-blue-10\nexport const bdlLightBlue05 = '#f4f9ff'; // bdl-light-blue-05\nexport const bdlLightBlue02 = '#fbfdff'; // bdl-light-blue-02\nexport const bdlYellorange = '#f5b31b'; // bdl-yellorange\nexport const bdlYellorange50 = '#fad98d'; // bdl-yellorange-50\nexport const bdlYellorange20 = '#fdf0d1'; // bdl-yellorange-20\nexport const bdlYellorange10 = '#fef7e8'; // bdl-yellorange-10\nexport const bdlYellorange05 = '#fefbf3'; // bdl-yellorange-05\nexport const bdlYellorange02 = '#fffefb'; // bdl-yellorange-02\nexport const bdlYellow = '#ffd700'; // bdl-yellow\nexport const bdlYellow50 = '#ffeb7f'; // bdl-yellow-50\nexport const bdlYellow20 = '#fff7cc'; // bdl-yellow-20\nexport const bdlYellow10 = '#fffbe5'; // bdl-yellow-10\nexport const bdlYellow05 = '#fffdf2'; // bdl-yellow-05\nexport const bdlYellow02 = '#fffefa'; // bdl-yellow-02\nexport const bdlGreenLight = '#26c281'; // bdl-green-light\nexport const bdlGreenLight50 = '#92e0c0'; // bdl-green-light-50\nexport const bdlGreenLight20 = '#d4f3e6'; // bdl-green-light-20\nexport const bdlGreenLight10 = '#e9f8f2'; // bdl-green-light-10\nexport const bdlGreenLight05 = '#f4fcf8'; // bdl-green-light-05\nexport const bdlGreenLight02 = '#fbfefd'; // bdl-green-light-02\nexport const bdlGrimace = '#4826c2'; // bdl-grimace\nexport const bdlGrimace50 = '#a392e0'; // bdl-grimace-50\nexport const bdlGrimace20 = '#dad4f3'; // bdl-grimace-20\nexport const bdlGrimace10 = '#ece9f8'; // bdl-grimace-10\nexport const bdlGrimace05 = '#f6f4fc'; // bdl-grimace-05\nexport const bdlGrimace02 = '#fbfbfe'; // bdl-grimace-02\nexport const bdlOrange = '#f1811a'; // bdl-orange\nexport const bdlOrange50 = '#f8c08c'; // bdl-orange-50\nexport const bdlOrange20 = '#fce6d1'; // bdl-orange-20\nexport const bdlOrange10 = '#fdf2e8'; // bdl-orange-10\nexport const bdlOrange05 = '#fef8f3'; // bdl-orange-05\nexport const bdlOrange02 = '#fffdfb'; // bdl-orange-02\nexport const bdlPurpleRain = '#9f3fed'; // bdl-purple-rain\nexport const bdlPurpleRain50 = '#cf9ff6'; // bdl-purple-rain-50\nexport const bdlPurpleRain20 = '#ecd9fb'; // bdl-purple-rain-20\nexport const bdlPurpleRain10 = '#f5ebfd'; // bdl-purple-rain-10\nexport const bdlPurpleRain05 = '#faf5fe'; // bdl-purple-rain-05\nexport const bdlPurpleRain02 = '#fdfbff'; // bdl-purple-rain-02\nexport const bdlWatermelonRed = '#ed3757'; // bdl-watermelon-red\nexport const bdlWatermelonRed50 = '#f69bab'; // bdl-watermelon-red-50\nexport const bdlWatermelonRed20 = '#fbd7dd'; // bdl-watermelon-red-20\nexport const bdlWatermelonRed10 = '#fdebee'; // bdl-watermelon-red-10\nexport const bdlWatermelonRed05 = '#fef5f6'; // bdl-watermelon-red-05\nexport const bdlWatermelonRed02 = '#fffbfc'; // bdl-watermelon-red-02\nexport const bdlLineHeight = '20px'; // bdl-line-height\nexport const bdlFontSize = '13px'; // bdl-fontSize\nexport const bdlFontSizeMinimum = '11px'; // bdl-fontSize-minimum\nexport const bdlFontSizeDejaBlue = '14px'; // bdl-fontSize--dejaBlue\nexport const avatarColors = ['#0061d5', '#003c84', '#767676', '#222', '#4826c2', '#9f3fed']; // avatar-colors\nexport const modalDialogZIndex = '160'; // modal-dialog-z-index\nexport const menuZIndex = '170'; // menu-z-index\nexport const notificationsWrapperZIndex = '180'; // notifications-wrapper-z-index\nexport const overlayZIndex = '190'; // overlay-z-index\nexport const tooltipZIndex = '190'; // tooltip-z-index\nexport const bdlBorderRadiusSize = '4px'; // bdl-border-radius-size\nexport const bdlBorderRadiusSizeMed = '6px'; // bdl-border-radius-size-med\nexport const bdlBorderRadiusSizeLarge = '8px'; // bdl-border-radius-size-large\nexport const bdlBorderRadiusSizeXlarge = '12px'; // bdl-border-radius-size-xlarge\nexport const bdlHeaderBoxShadow = ['0 0 10px 0 rgba(0', '0', '0', '0.05)']; // bdl-header-box-shadow\nexport const bdlGridUnit = '4px'; // bdl-grid-unit\nexport const bdlGridUnitPx = '4'; // bdl-grid-unit-px\nexport const bdlBtnBorderWidth = '1px'; // bdl-btn-border-width\nexport const bdlBtnHeight = '32px'; // bdl-btn-height\nexport const bdlBtnHeightLarge = '40px'; // bdl-btn-height-large\nexport const bdlBtnIconSize = '20px'; // bdl-btn-icon-size\nexport const bdlBtnTextIconSize = '16px'; // bdl-btn-text-icon-size\nexport const bdlBtnPaddingHorizontal = '16px'; // bdl-btn-padding-horizontal\nexport const bdlTransitionDurationBase = '0.15s'; // bdl-transitionDurationBase\nexport const bdlTimingFunction = ['cubic-bezier(0', '0', '0.6', '1)']; // bdl-timingFunction\nexport const sizeSmallMax = '374px'; // size-small-max\nexport const sizeSmallMediumMax = '460px'; // size-small-medium-max\nexport const sizeMediumMax = '767px'; // size-medium-max\nexport const sizeLargeMax = '1023px'; // size-large-max\nexport const smallScreen = '(max-width: 374px)'; // small-screen\nexport const smallMediumScreen = '(max-width: 460px)'; // small-medium-screen\nexport const mediumScreen = '(max-width: 767px)'; // medium-screen\nexport const largeScreen = '(max-width: 1023px)'; // large-screen\n"],"file":"variables.js"}
|
package/es/utils/Browser.js
CHANGED
|
@@ -56,6 +56,18 @@ function () {
|
|
|
56
56
|
value: function isIE() {
|
|
57
57
|
return /Trident/i.test(Browser.getUserAgent());
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns whether browser is Firefox.
|
|
61
|
+
*
|
|
62
|
+
* @return {boolean} Whether browser is Firefox
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
}, {
|
|
66
|
+
key: "isFirefox",
|
|
67
|
+
value: function isFirefox() {
|
|
68
|
+
var userAgent = Browser.getUserAgent();
|
|
69
|
+
return /Firefox/i.test(userAgent) && !/Seamonkey\//i.test(userAgent);
|
|
70
|
+
}
|
|
59
71
|
/**
|
|
60
72
|
* Returns whether browser is Safari.
|
|
61
73
|
*
|
package/es/utils/Browser.js.flow
CHANGED
|
@@ -41,6 +41,16 @@ class Browser {
|
|
|
41
41
|
return /Trident/i.test(Browser.getUserAgent());
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Returns whether browser is Firefox.
|
|
46
|
+
*
|
|
47
|
+
* @return {boolean} Whether browser is Firefox
|
|
48
|
+
*/
|
|
49
|
+
static isFirefox() {
|
|
50
|
+
const userAgent = Browser.getUserAgent();
|
|
51
|
+
return /Firefox/i.test(userAgent) && !/Seamonkey\//i.test(userAgent);
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
/**
|
|
45
55
|
* Returns whether browser is Safari.
|
|
46
56
|
*
|
package/es/utils/Browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/Browser.js"],"names":["isDashSupported","Browser","global","navigator","userAgent","getUserAgent","test","isMobile","isSafari","isMobileChromeOniOS","recheck","mse","MediaSource","isTypeSupported","clipboard","writeText","readText"],"mappings":";;;;;;AAAA;;;;;AAMA,IAAIA,eAAJ;;IAEMC,O;;;;;;;;;;AACF;;;;;;mCAM8B;AAC1B,aAAOC,MAAM,CAACC,SAAP,CAAiBC,SAAxB;AACH;AAED;;;;;;;;;;;+BAQ2B;AACvB,UAAMA,SAAS,GAAGH,OAAO,CAACI,YAAR,EAAlB;AACA,aACI,kEAAkEC,IAAlE,CAAuEF,SAAvE,KAAqF,QAAQE,IAAR,CAAaF,SAAb,CADzF;AAGH;AAED;;;;;;;;2BAKc;AACV,aAAO,WAAWE,IAAX,CAAgBL,OAAO,CAACI,YAAR,EAAhB,CAAP;AACH;AAED;;;;;;;;+BAKkB;AACd,
|
|
1
|
+
{"version":3,"sources":["../../src/utils/Browser.js"],"names":["isDashSupported","Browser","global","navigator","userAgent","getUserAgent","test","isMobile","isSafari","isMobileChromeOniOS","recheck","mse","MediaSource","isTypeSupported","clipboard","writeText","readText"],"mappings":";;;;;;AAAA;;;;;AAMA,IAAIA,eAAJ;;IAEMC,O;;;;;;;;;;AACF;;;;;;mCAM8B;AAC1B,aAAOC,MAAM,CAACC,SAAP,CAAiBC,SAAxB;AACH;AAED;;;;;;;;;;;+BAQ2B;AACvB,UAAMA,SAAS,GAAGH,OAAO,CAACI,YAAR,EAAlB;AACA,aACI,kEAAkEC,IAAlE,CAAuEF,SAAvE,KAAqF,QAAQE,IAAR,CAAaF,SAAb,CADzF;AAGH;AAED;;;;;;;;2BAKc;AACV,aAAO,WAAWE,IAAX,CAAgBL,OAAO,CAACI,YAAR,EAAhB,CAAP;AACH;AAED;;;;;;;;gCAKmB;AACf,UAAMD,SAAS,GAAGH,OAAO,CAACI,YAAR,EAAlB;AACA,aAAO,WAAWC,IAAX,CAAgBF,SAAhB,KAA8B,CAAC,eAAeE,IAAf,CAAoBF,SAApB,CAAtC;AACH;AAED;;;;;;;;+BAKkB;AACd,UAAMA,SAAS,GAAGH,OAAO,CAACI,YAAR,EAAlB;AACA,aAAO,eAAeC,IAAf,CAAoBF,SAApB,KAAkC,CAAC,YAAYE,IAAZ,CAAiBF,SAAjB,CAA1C;AACH;AAED;;;;;;;;;qCAMwB;AACpB,aAAOH,OAAO,CAACM,QAAR,MAAsBN,OAAO,CAACO,QAAR,EAAtB,IAA4C,CAACP,OAAO,CAACQ,mBAAR,EAApD;AACH;AAED;;;;;;;;;0CAM6B;AACzB,UAAML,SAAS,GAAGH,OAAO,CAACI,YAAR,EAAlB;AACA,aAAOJ,OAAO,CAACM,QAAR,MAAsB,eAAeD,IAAf,CAAoBF,SAApB,CAAtB,IAAwD,WAAWE,IAAX,CAAgBF,SAAhB,CAA/D;AACH;AAED;;;;;;;;;;;;kCAS6C;AAAA,UAA1BM,OAA0B,uEAAP,KAAO;;AACzC,UAAI,OAAOV,eAAP,KAA2B,WAA3B,IAA0CU,OAA9C,EAAuD;AACnD,YAAMC,GAAG,GAAGT,MAAM,CAACU,WAAnB;AACAZ,QAAAA,eAAe,GACX,CAAC,CAACW,GAAF,IACA,OAAOA,GAAG,CAACE,eAAX,KAA+B,UAD/B,IAEAF,GAAG,CAACE,eAAJ,CAAoB,iCAApB,CAHJ;AAIH;;AAED,aAAOb,eAAP;AACH;AAED;;;;;;;;;;;;;0CAU6B;AACzB,aAAO,CAAC,EAAEE,MAAM,CAACC,SAAP,CAAiBW,SAAjB,IAA8BZ,MAAM,CAACC,SAAP,CAAiBW,SAAjB,CAA2BC,SAA3D,CAAR;AACH;AAED;;;;;;;;;;;;;2CAU8B;AAC1B,aAAO,CAAC,EAAEb,MAAM,CAACC,SAAP,CAAiBW,SAAjB,IAA8BZ,MAAM,CAACC,SAAP,CAAiBW,SAAjB,CAA2BE,QAA3D,CAAR;AACH;;;;;;AAGL,eAAef,OAAf","sourcesContent":["/**\n * @flow\n * @file Helper for some browser utilities\n * @author Box\n */\n\nlet isDashSupported;\n\nclass Browser {\n /**\n * Returns the user agent.\n * Helps in mocking out.\n *\n * @return {String} navigator userAgent\n */\n static getUserAgent(): string {\n return global.navigator.userAgent;\n }\n\n /**\n * Returns whether browser is mobile, including tablets.\n *\n * We rely on user agent (UA) to avoid matching desktops with touchscreens.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#mobile_tablet_or_desktop\n *\n * @return {boolean} Whether browser is mobile\n */\n static isMobile(): boolean {\n const userAgent = Browser.getUserAgent();\n return (\n /iphone|ipad|ipod|android|blackberry|bb10|mini|windows\\sce|palm/i.test(userAgent) || /Mobi/i.test(userAgent)\n );\n }\n\n /**\n * Returns whether browser is IE.\n *\n * @return {boolena} Whether browser is IE\n */\n static isIE() {\n return /Trident/i.test(Browser.getUserAgent());\n }\n\n /**\n * Returns whether browser is Firefox.\n *\n * @return {boolean} Whether browser is Firefox\n */\n static isFirefox() {\n const userAgent = Browser.getUserAgent();\n return /Firefox/i.test(userAgent) && !/Seamonkey\\//i.test(userAgent);\n }\n\n /**\n * Returns whether browser is Safari.\n *\n * @return {boolean} Whether browser is Safari\n */\n static isSafari() {\n const userAgent = Browser.getUserAgent();\n return /AppleWebKit/i.test(userAgent) && !/Chrome\\//i.test(userAgent);\n }\n\n /**\n * Returns whether browser is Mobile Safari.\n *\n * @see https://developer.chrome.com/docs/multidevice/user-agent/\n * @return {boolean} Whether browser is Mobile Safari\n */\n static isMobileSafari() {\n return Browser.isMobile() && Browser.isSafari() && !Browser.isMobileChromeOniOS();\n }\n\n /**\n * Returns whether browser is Mobile Chrome on iOS.\n *\n * @see https://developer.chrome.com/docs/multidevice/user-agent/\n * @return {boolean} Whether browser is Mobile Chrome on iOS\n */\n static isMobileChromeOniOS() {\n const userAgent = Browser.getUserAgent();\n return Browser.isMobile() && /AppleWebKit/i.test(userAgent) && /CriOS\\//i.test(userAgent);\n }\n\n /**\n * Checks the browser for Dash support using H264 high.\n * Dash requires MediaSource extensions to exist and be applicable\n * to the H264 container (since we use H264 and not webm)\n *\n * @public\n * @param {boolean} recheck - recheck support\n * @return {boolean} true if dash is usable\n */\n static canPlayDash(recheck: boolean = false) {\n if (typeof isDashSupported === 'undefined' || recheck) {\n const mse = global.MediaSource;\n isDashSupported =\n !!mse &&\n typeof mse.isTypeSupported === 'function' &&\n mse.isTypeSupported('video/mp4; codecs=\"avc1.64001E\"');\n }\n\n return isDashSupported;\n }\n\n /**\n * Checks whether the browser has support for the Clipboard API. This new API supercedes\n * the `execCommand`-based API and uses Promises for detecting whether it works or not.\n *\n * This check determines if the browser can support writing to the clipboard.\n * @see https://www.w3.org/TR/clipboard-apis/#async-clipboard-api\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Clipboard\n *\n * @return {boolean} whether writing to the clipboard is possible\n */\n static canWriteToClipboard() {\n return !!(global.navigator.clipboard && global.navigator.clipboard.writeText);\n }\n\n /**\n * Checks whether the browser has support for the Clipboard API. This new API supercedes\n * the `execCommand`-based API and uses Promises for detecting whether it works or not.\n *\n * This check determines if the browser can support reading from the clipboard.\n * @see https://www.w3.org/TR/clipboard-apis/#async-clipboard-api\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Clipboard\n *\n * @return {boolean} whether reading from the clipboard is possible\n */\n static canReadFromClipboard() {\n return !!(global.navigator.clipboard && global.navigator.clipboard.readText);\n }\n}\n\nexport default Browser;\n"],"file":"Browser.js"}
|
package/es/utils/validators.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
4
|
+
|
|
5
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6
|
+
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
8
|
+
|
|
1
9
|
import Address from '@hapi/address';
|
|
10
|
+
import tldsHapi from '@hapi/address/lib/tlds';
|
|
2
11
|
|
|
3
12
|
function hostnameValidator(value) {
|
|
4
13
|
// @see https://github.com/hapijs/joi/blame/3516cf0b995c9fe415634c4612c0ac2f8792f0b4/lib/types/string/index.js#L530
|
|
@@ -14,11 +23,24 @@ function ipv4AddressValidator(value) {
|
|
|
14
23
|
|
|
15
24
|
function domainNameValidator(value) {
|
|
16
25
|
return Address.domain.isValid(value);
|
|
17
|
-
}
|
|
26
|
+
} // @sideway/address ^4 has exhaustive TLDs, but upgrading requires a TextEncoder polyfill (such as fast-text-encoder) for IE11 support.
|
|
27
|
+
// We can freely upgrade and remove manual TLD supplementation after IE11 EOL.
|
|
28
|
+
// Diff of '@hapi/address/lib/tlds' and:
|
|
29
|
+
// https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
|
30
|
+
// Version 2022020100, Last Updated Tue Feb 1 07:07:01 2022 UTC,
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
|
|
33
|
+
var tldSupplements = ['AMAZON', 'CPA', 'LLP', 'MUSIC', 'SPA', 'XN--4DBRK0CE', 'XN--CCKWCXETD', 'XN--JLQ480N2RG', 'XN--MGBCPQ6GPA1A', 'XN--Q7CE6A', 'ZW'];
|
|
34
|
+
|
|
35
|
+
var emailValidator = function emailValidator(value) {
|
|
36
|
+
return Address.email.isValid(value, {
|
|
37
|
+
tlds: {
|
|
38
|
+
allow: new Set([].concat(_toConsumableArray(tldsHapi), _toConsumableArray(tldSupplements.map(function (tld) {
|
|
39
|
+
return tld.toLowerCase();
|
|
40
|
+
}))))
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
};
|
|
22
44
|
|
|
23
45
|
export { domainNameValidator, emailValidator, hostnameValidator, ipv4AddressValidator };
|
|
24
46
|
//# sourceMappingURL=validators.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import Address from '@hapi/address';
|
|
3
|
+
import tldsHapi from '@hapi/address/lib/tlds';
|
|
3
4
|
|
|
4
5
|
function hostnameValidator(value: string): boolean {
|
|
5
6
|
// @see https://github.com/hapijs/joi/blame/3516cf0b995c9fe415634c4612c0ac2f8792f0b4/lib/types/string/index.js#L530
|
|
@@ -17,8 +18,29 @@ function domainNameValidator(value: string): boolean {
|
|
|
17
18
|
return Address.domain.isValid(value);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
// @sideway/address ^4 has exhaustive TLDs, but upgrading requires a TextEncoder polyfill (such as fast-text-encoder) for IE11 support.
|
|
22
|
+
// We can freely upgrade and remove manual TLD supplementation after IE11 EOL.
|
|
23
|
+
|
|
24
|
+
// Diff of '@hapi/address/lib/tlds' and:
|
|
25
|
+
// https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
|
26
|
+
// Version 2022020100, Last Updated Tue Feb 1 07:07:01 2022 UTC,
|
|
27
|
+
const tldSupplements = [
|
|
28
|
+
'AMAZON',
|
|
29
|
+
'CPA',
|
|
30
|
+
'LLP',
|
|
31
|
+
'MUSIC',
|
|
32
|
+
'SPA',
|
|
33
|
+
'XN--4DBRK0CE',
|
|
34
|
+
'XN--CCKWCXETD',
|
|
35
|
+
'XN--JLQ480N2RG',
|
|
36
|
+
'XN--MGBCPQ6GPA1A',
|
|
37
|
+
'XN--Q7CE6A',
|
|
38
|
+
'ZW',
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
const emailValidator = (value: string): boolean =>
|
|
42
|
+
Address.email.isValid(value, {
|
|
43
|
+
tlds: { allow: new Set([...tldsHapi, ...tldSupplements.map(tld => tld.toLowerCase())]) },
|
|
44
|
+
});
|
|
23
45
|
|
|
24
46
|
export { domainNameValidator, emailValidator, hostnameValidator, ipv4AddressValidator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/validators.js"],"names":["Address","hostnameValidator","value","regex","test","ipv4AddressValidator","domainNameValidator","domain","isValid","emailValidator","email"],"mappings":"AACA,OAAOA,OAAP,MAAoB,eAApB;;AAEA,SAASC,iBAAT,CAA2BC,KAA3B,EAAmD;AAC/C;AACA,MAAMC,KAAK,GAAG,2GAAd;AACA,SAAOA,KAAK,CAACC,IAAN,CAAWF,KAAX,CAAP;AACH;;AAED,SAASG,oBAAT,CAA8BH,KAA9B,EAAsD;AAClD;AACA,MAAMC,KAAK,GAAG,6FAAd;AACA,SAAOA,KAAK,CAACC,IAAN,CAAWF,KAAX,CAAP;AACH;;AAED,SAASI,mBAAT,CAA6BJ,KAA7B,EAAqD;AACjD,
|
|
1
|
+
{"version":3,"sources":["../../src/utils/validators.js"],"names":["Address","tldsHapi","hostnameValidator","value","regex","test","ipv4AddressValidator","domainNameValidator","domain","isValid","tldSupplements","emailValidator","email","tlds","allow","Set","map","tld","toLowerCase"],"mappings":";;;;;;;;AACA,OAAOA,OAAP,MAAoB,eAApB;AACA,OAAOC,QAAP,MAAqB,wBAArB;;AAEA,SAASC,iBAAT,CAA2BC,KAA3B,EAAmD;AAC/C;AACA,MAAMC,KAAK,GAAG,2GAAd;AACA,SAAOA,KAAK,CAACC,IAAN,CAAWF,KAAX,CAAP;AACH;;AAED,SAASG,oBAAT,CAA8BH,KAA9B,EAAsD;AAClD;AACA,MAAMC,KAAK,GAAG,6FAAd;AACA,SAAOA,KAAK,CAACC,IAAN,CAAWF,KAAX,CAAP;AACH;;AAED,SAASI,mBAAT,CAA6BJ,KAA7B,EAAqD;AACjD,SAAOH,OAAO,CAACQ,MAAR,CAAeC,OAAf,CAAuBN,KAAvB,CAAP;AACH,C,CAED;AACA;AAEA;AACA;AACA;;;AACA,IAAMO,cAAc,GAAG,CACnB,QADmB,EAEnB,KAFmB,EAGnB,KAHmB,EAInB,OAJmB,EAKnB,KALmB,EAMnB,cANmB,EAOnB,eAPmB,EAQnB,gBARmB,EASnB,kBATmB,EAUnB,YAVmB,EAWnB,IAXmB,CAAvB;;AAcA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACR,KAAD;AAAA,SACnBH,OAAO,CAACY,KAAR,CAAcH,OAAd,CAAsBN,KAAtB,EAA6B;AACzBU,IAAAA,IAAI,EAAE;AAAEC,MAAAA,KAAK,EAAE,IAAIC,GAAJ,8BAAYd,QAAZ,sBAAyBS,cAAc,CAACM,GAAf,CAAmB,UAAAC,GAAG;AAAA,eAAIA,GAAG,CAACC,WAAJ,EAAJ;AAAA,OAAtB,CAAzB;AAAT;AADmB,GAA7B,CADmB;AAAA,CAAvB;;AAKA,SAASX,mBAAT,EAA8BI,cAA9B,EAA8CT,iBAA9C,EAAiEI,oBAAjE","sourcesContent":["// @flow\nimport Address from '@hapi/address';\nimport tldsHapi from '@hapi/address/lib/tlds';\n\nfunction hostnameValidator(value: string): boolean {\n // @see https://github.com/hapijs/joi/blame/3516cf0b995c9fe415634c4612c0ac2f8792f0b4/lib/types/string/index.js#L530\n const regex = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/;\n return regex.test(value);\n}\n\nfunction ipv4AddressValidator(value: string): boolean {\n // @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n const regex = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;\n return regex.test(value);\n}\n\nfunction domainNameValidator(value: string): boolean {\n return Address.domain.isValid(value);\n}\n\n// @sideway/address ^4 has exhaustive TLDs, but upgrading requires a TextEncoder polyfill (such as fast-text-encoder) for IE11 support.\n// We can freely upgrade and remove manual TLD supplementation after IE11 EOL.\n\n// Diff of '@hapi/address/lib/tlds' and:\n// https://data.iana.org/TLD/tlds-alpha-by-domain.txt\n// Version 2022020100, Last Updated Tue Feb 1 07:07:01 2022 UTC,\nconst tldSupplements = [\n 'AMAZON',\n 'CPA',\n 'LLP',\n 'MUSIC',\n 'SPA',\n 'XN--4DBRK0CE',\n 'XN--CCKWCXETD',\n 'XN--JLQ480N2RG',\n 'XN--MGBCPQ6GPA1A',\n 'XN--Q7CE6A',\n 'ZW',\n];\n\nconst emailValidator = (value: string): boolean =>\n Address.email.isValid(value, {\n tlds: { allow: new Set([...tldsHapi, ...tldSupplements.map(tld => tld.toLowerCase())]) },\n });\n\nexport { domainNameValidator, emailValidator, hostnameValidator, ipv4AddressValidator };\n"],"file":"validators.js"}
|