@veeqo/ui 16.5.0 → 16.6.0-beta-1
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/dist/components/Accordion/Accordion.module.scss.cjs +2 -2
- package/dist/components/Accordion/Accordion.module.scss.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.module.scss.js +1 -1
- package/dist/components/Action/styles/button.module.scss.cjs +2 -2
- package/dist/components/Action/styles/button.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/button.module.scss.js +1 -1
- package/dist/components/Action/styles/link.module.scss.cjs +2 -2
- package/dist/components/Action/styles/link.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/link.module.scss.js +1 -1
- package/dist/components/Action/styles/reset.module.scss.cjs +2 -2
- package/dist/components/Action/styles/reset.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/reset.module.scss.js +1 -1
- package/dist/components/ActionMenu/ActionMenu.module.scss.cjs +2 -2
- package/dist/components/ActionMenu/ActionMenu.module.scss.cjs.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.module.scss.js +1 -1
- package/dist/components/Alerts/Alert/Alert.module.scss.cjs +2 -2
- package/dist/components/Alerts/Alert/Alert.module.scss.cjs.map +1 -1
- package/dist/components/Alerts/Alert/Alert.module.scss.js +1 -1
- package/dist/components/Alerts/Alerts.module.scss.cjs +2 -2
- package/dist/components/Alerts/Alerts.module.scss.cjs.map +1 -1
- package/dist/components/Alerts/Alerts.module.scss.js +1 -1
- package/dist/components/Alerts/MiniAlert/MiniAlert.module.scss.cjs +2 -2
- package/dist/components/Alerts/MiniAlert/MiniAlert.module.scss.cjs.map +1 -1
- package/dist/components/Alerts/MiniAlert/MiniAlert.module.scss.js +1 -1
- package/dist/components/Anchor/Anchor.module.scss.cjs +2 -2
- package/dist/components/Anchor/Anchor.module.scss.cjs.map +1 -1
- package/dist/components/Anchor/Anchor.module.scss.js +1 -1
- package/dist/components/AnimatedDropdown/AnimatedDropdown.module.scss.cjs +2 -2
- package/dist/components/AnimatedDropdown/AnimatedDropdown.module.scss.cjs.map +1 -1
- package/dist/components/AnimatedDropdown/AnimatedDropdown.module.scss.js +1 -1
- package/dist/components/AnimatedDropdown/components/BasicDropdown.module.scss.cjs +2 -2
- package/dist/components/AnimatedDropdown/components/BasicDropdown.module.scss.cjs.map +1 -1
- package/dist/components/AnimatedDropdown/components/BasicDropdown.module.scss.js +1 -1
- package/dist/components/Avatar/Avatar.module.scss.cjs +2 -2
- package/dist/components/Avatar/Avatar.module.scss.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.module.scss.js +1 -1
- package/dist/components/Badge/Badge.module.scss.cjs +2 -2
- package/dist/components/Badge/Badge.module.scss.cjs.map +1 -1
- package/dist/components/Badge/Badge.module.scss.js +1 -1
- package/dist/components/Banner/Banner.module.scss.cjs +2 -2
- package/dist/components/Banner/Banner.module.scss.cjs.map +1 -1
- package/dist/components/Banner/Banner.module.scss.js +1 -1
- package/dist/components/BaseContainer/BaseContainer.module.scss.cjs +2 -2
- package/dist/components/BaseContainer/BaseContainer.module.scss.cjs.map +1 -1
- package/dist/components/BaseContainer/BaseContainer.module.scss.js +1 -1
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.cjs +2 -2
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.cjs.map +1 -1
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.js +1 -1
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.cjs +2 -2
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.cjs.map +1 -1
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.js +1 -1
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.cjs +2 -2
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.cjs.map +1 -1
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.js +1 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.cjs +2 -2
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.cjs.map +1 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.js +1 -1
- package/dist/components/Card/Card.module.scss.cjs +2 -2
- package/dist/components/Card/Card.module.scss.cjs.map +1 -1
- package/dist/components/Card/Card.module.scss.js +1 -1
- package/dist/components/CardHeader/CardHeader.module.scss.cjs +2 -2
- package/dist/components/CardHeader/CardHeader.module.scss.cjs.map +1 -1
- package/dist/components/CardHeader/CardHeader.module.scss.js +1 -1
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +2 -2
- package/dist/components/Checkbox/Checkbox.module.scss.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.module.scss.js +1 -1
- package/dist/components/Choice/Choice.module.scss.cjs +2 -2
- package/dist/components/Choice/Choice.module.scss.cjs.map +1 -1
- package/dist/components/Choice/Choice.module.scss.js +1 -1
- package/dist/components/ChoiceList/ChoiceList.module.scss.cjs +2 -2
- package/dist/components/ChoiceList/ChoiceList.module.scss.cjs.map +1 -1
- package/dist/components/ChoiceList/ChoiceList.module.scss.js +1 -1
- package/dist/components/Container/Container.module.scss.cjs +2 -2
- package/dist/components/Container/Container.module.scss.cjs.map +1 -1
- package/dist/components/Container/Container.module.scss.js +1 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.cjs +2 -2
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.cjs.map +1 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.js +1 -1
- package/dist/components/DataGrid/DataGrid.module.scss.cjs +2 -2
- package/dist/components/DataGrid/DataGrid.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/DataGrid.module.scss.js +1 -1
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.js +1 -1
- package/dist/components/DataGrid/components/Body/EmptyBody/EmptyBody.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/Body/EmptyBody/EmptyBody.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/Body/EmptyBody/EmptyBody.module.scss.js +1 -1
- package/dist/components/DataGrid/components/Body/Row/Row.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/Body/Row/Row.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/Body/Row/Row.module.scss.js +1 -1
- package/dist/components/DataGrid/components/CellContent/CellContent.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/CellContent/CellContent.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/CellContent/CellContent.module.scss.js +1 -1
- package/dist/components/DataGrid/components/CellContent/ExpandButton/ExpandButton.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/CellContent/ExpandButton/ExpandButton.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/CellContent/ExpandButton/ExpandButton.module.scss.js +1 -1
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.js +1 -1
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/GridContainer/Container/Container.module.scss.js +1 -1
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/GridContainer/GridContainer.module.scss.js +1 -1
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.js +1 -1
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.scss.cjs +2 -2
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.scss.cjs.map +1 -1
- package/dist/components/DataGrid/components/Header/Resizer/Resizer.module.scss.js +1 -1
- package/dist/components/DataTable/components/DataTable.module.scss.cjs +2 -2
- package/dist/components/DataTable/components/DataTable.module.scss.cjs.map +1 -1
- package/dist/components/DataTable/components/DataTable.module.scss.js +1 -1
- package/dist/components/DataTable/components/TableGrid.cjs +2 -1
- package/dist/components/DataTable/components/TableGrid.cjs.map +1 -1
- package/dist/components/DataTable/components/TableGrid.js +2 -1
- package/dist/components/DataTable/components/TableGrid.js.map +1 -1
- package/dist/components/DateInputField/DateInputField.module.scss.cjs +2 -2
- package/dist/components/DateInputField/DateInputField.module.scss.cjs.map +1 -1
- package/dist/components/DateInputField/DateInputField.module.scss.js +1 -1
- package/dist/components/DatePicker/DatePicker.module.scss.cjs +2 -2
- package/dist/components/DatePicker/DatePicker.module.scss.cjs.map +1 -1
- package/dist/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.module.scss.cjs +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.module.scss.cjs.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.module.scss.js +1 -1
- package/dist/components/DateRangePicker/components/Divider.module.scss.cjs +2 -2
- package/dist/components/DateRangePicker/components/Divider.module.scss.cjs.map +1 -1
- package/dist/components/DateRangePicker/components/Divider.module.scss.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.module.scss.cjs +2 -2
- package/dist/components/DescriptionList/DescriptionList.module.scss.cjs.map +1 -1
- package/dist/components/DescriptionList/DescriptionList.module.scss.js +1 -1
- package/dist/components/DetailPage/DetailPage.module.scss.cjs +2 -2
- package/dist/components/DetailPage/DetailPage.module.scss.cjs.map +1 -1
- package/dist/components/DetailPage/DetailPage.module.scss.js +1 -1
- package/dist/components/Divider/Divider.module.scss.cjs +2 -2
- package/dist/components/Divider/Divider.module.scss.cjs.map +1 -1
- package/dist/components/Divider/Divider.module.scss.js +1 -1
- package/dist/components/Dropdown/Dropdown.module.scss.cjs +2 -2
- package/dist/components/Dropdown/Dropdown.module.scss.cjs.map +1 -1
- package/dist/components/Dropdown/Dropdown.module.scss.js +1 -1
- package/dist/components/FeatureBanner/FeatureBanner.module.scss.cjs +2 -2
- package/dist/components/FeatureBanner/FeatureBanner.module.scss.cjs.map +1 -1
- package/dist/components/FeatureBanner/FeatureBanner.module.scss.js +1 -1
- package/dist/components/FilterTag/FilterTag.module.scss.cjs +2 -2
- package/dist/components/FilterTag/FilterTag.module.scss.cjs.map +1 -1
- package/dist/components/FilterTag/FilterTag.module.scss.js +1 -1
- package/dist/components/Flex/Flex.module.scss.cjs +2 -2
- package/dist/components/Flex/Flex.module.scss.js +1 -1
- package/dist/components/Flex/FlexCol/FlexCol.module.scss.cjs +2 -2
- package/dist/components/Flex/FlexCol/FlexCol.module.scss.cjs.map +1 -1
- package/dist/components/Flex/FlexCol/FlexCol.module.scss.js +1 -1
- package/dist/components/Flex/FlexRow/FlexRow.module.scss.cjs +2 -2
- package/dist/components/Flex/FlexRow/FlexRow.module.scss.cjs.map +1 -1
- package/dist/components/Flex/FlexRow/FlexRow.module.scss.js +1 -1
- package/dist/components/Grid/Grid.module.scss.cjs +2 -2
- package/dist/components/Grid/Grid.module.scss.cjs.map +1 -1
- package/dist/components/Grid/Grid.module.scss.js +1 -1
- package/dist/components/IconGroup/IconGroup.module.scss.cjs +2 -2
- package/dist/components/IconGroup/IconGroup.module.scss.cjs.map +1 -1
- package/dist/components/IconGroup/IconGroup.module.scss.js +1 -1
- package/dist/components/Image/Image.module.scss.cjs +2 -2
- package/dist/components/Image/Image.module.scss.cjs.map +1 -1
- package/dist/components/Image/Image.module.scss.js +1 -1
- package/dist/components/Indicator/Indicator.module.scss.cjs +2 -2
- package/dist/components/Indicator/Indicator.module.scss.cjs.map +1 -1
- package/dist/components/Indicator/Indicator.module.scss.js +1 -1
- package/dist/components/InputAffix/InputAffix.module.scss.cjs +2 -2
- package/dist/components/InputAffix/InputAffix.module.scss.cjs.map +1 -1
- package/dist/components/InputAffix/InputAffix.module.scss.js +1 -1
- package/dist/components/InputGroup/InputGroup.module.scss.cjs +2 -2
- package/dist/components/InputGroup/InputGroup.module.scss.js +1 -1
- package/dist/components/LegacyDataTable/LegacyDataTable.module.scss.cjs +2 -2
- package/dist/components/LegacyDataTable/LegacyDataTable.module.scss.cjs.map +1 -1
- package/dist/components/LegacyDataTable/LegacyDataTable.module.scss.js +1 -1
- package/dist/components/LegacyDataTable/SkeletonContent/SkeletonContent.module.scss.cjs +2 -2
- package/dist/components/LegacyDataTable/SkeletonContent/SkeletonContent.module.scss.cjs.map +1 -1
- package/dist/components/LegacyDataTable/SkeletonContent/SkeletonContent.module.scss.js +1 -1
- package/dist/components/LegacyDataTable/SpecificState/SpecificState.module.scss.cjs +2 -2
- package/dist/components/LegacyDataTable/SpecificState/SpecificState.module.scss.cjs.map +1 -1
- package/dist/components/LegacyDataTable/SpecificState/SpecificState.module.scss.js +1 -1
- package/dist/components/LegacyDataTable/cells/cells.module.scss.cjs +2 -2
- package/dist/components/LegacyDataTable/cells/cells.module.scss.cjs.map +1 -1
- package/dist/components/LegacyDataTable/cells/cells.module.scss.js +1 -1
- package/dist/components/LegacyDataTable/styled.cjs +21 -12
- package/dist/components/LegacyDataTable/styled.cjs.map +1 -1
- package/dist/components/LegacyDataTable/styled.js +21 -12
- package/dist/components/LegacyDataTable/styled.js.map +1 -1
- package/dist/components/Loader/loader.module.scss.cjs +2 -2
- package/dist/components/Loader/loader.module.scss.cjs.map +1 -1
- package/dist/components/Loader/loader.module.scss.js +1 -1
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.cjs +2 -2
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.cjs.map +1 -1
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.js +1 -1
- package/dist/components/Mark/Mark.module.scss.cjs +2 -2
- package/dist/components/Mark/Mark.module.scss.cjs.map +1 -1
- package/dist/components/Mark/Mark.module.scss.js +1 -1
- package/dist/components/Modal/Modal.module.scss.cjs +2 -2
- package/dist/components/Modal/Modal.module.scss.cjs.map +1 -1
- package/dist/components/Modal/Modal.module.scss.js +1 -1
- package/dist/components/Pagination/Pagination.module.scss.cjs +2 -2
- package/dist/components/Pagination/Pagination.module.scss.cjs.map +1 -1
- package/dist/components/Pagination/Pagination.module.scss.js +1 -1
- package/dist/components/PhoneInput/PhoneInput.module.scss.cjs +2 -2
- package/dist/components/PhoneInput/PhoneInput.module.scss.cjs.map +1 -1
- package/dist/components/PhoneInput/PhoneInput.module.scss.js +1 -1
- package/dist/components/Popover/Popover.module.scss.cjs +2 -2
- package/dist/components/Popover/Popover.module.scss.cjs.map +1 -1
- package/dist/components/Popover/Popover.module.scss.js +1 -1
- package/dist/components/Popup/Popup.module.scss.cjs +2 -2
- package/dist/components/Popup/Popup.module.scss.cjs.map +1 -1
- package/dist/components/Popup/Popup.module.scss.js +1 -1
- package/dist/components/Radio/Radio.module.scss.cjs +2 -2
- package/dist/components/Radio/Radio.module.scss.cjs.map +1 -1
- package/dist/components/Radio/Radio.module.scss.js +1 -1
- package/dist/components/ScreenReaderOnly/ScreenReaderOnly.module.scss.cjs +2 -2
- package/dist/components/ScreenReaderOnly/ScreenReaderOnly.module.scss.cjs.map +1 -1
- package/dist/components/ScreenReaderOnly/ScreenReaderOnly.module.scss.js +1 -1
- package/dist/components/Search/Search.module.scss.cjs +2 -2
- package/dist/components/Search/Search.module.scss.cjs.map +1 -1
- package/dist/components/Search/Search.module.scss.js +1 -1
- package/dist/components/SectionLayout/SectionLayout.module.scss.cjs +2 -2
- package/dist/components/SectionLayout/SectionLayout.module.scss.cjs.map +1 -1
- package/dist/components/SectionLayout/SectionLayout.module.scss.js +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.cjs +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.js +1 -1
- package/dist/components/Select/Select.module.scss.cjs +2 -2
- package/dist/components/Select/Select.module.scss.cjs.map +1 -1
- package/dist/components/Select/Select.module.scss.js +1 -1
- package/dist/components/SelectDropdown/SelectDropdown.module.scss.cjs +2 -2
- package/dist/components/SelectDropdown/SelectDropdown.module.scss.cjs.map +1 -1
- package/dist/components/SelectDropdown/SelectDropdown.module.scss.js +1 -1
- package/dist/components/SelectDropdown/components/GridItem/GridItem.module.scss.cjs +2 -2
- package/dist/components/SelectDropdown/components/GridItem/GridItem.module.scss.cjs.map +1 -1
- package/dist/components/SelectDropdown/components/GridItem/GridItem.module.scss.js +1 -1
- package/dist/components/SelectDropdown/components/ItemContent/ItemContent.module.scss.cjs +2 -2
- package/dist/components/SelectDropdown/components/ItemContent/ItemContent.module.scss.cjs.map +1 -1
- package/dist/components/SelectDropdown/components/ItemContent/ItemContent.module.scss.js +1 -1
- package/dist/components/SelectDropdown/components/ListItemSection/ListItemSection.module.scss.cjs +2 -2
- package/dist/components/SelectDropdown/components/ListItemSection/ListItemSection.module.scss.cjs.map +1 -1
- package/dist/components/SelectDropdown/components/ListItemSection/ListItemSection.module.scss.js +1 -1
- package/dist/components/SelectDropdown/components/OptionsContainers/OptionsContainer.module.scss.cjs +2 -2
- package/dist/components/SelectDropdown/components/OptionsContainers/OptionsContainer.module.scss.cjs.map +1 -1
- package/dist/components/SelectDropdown/components/OptionsContainers/OptionsContainer.module.scss.js +1 -1
- package/dist/components/SelectDropdown/components/item.module.scss.cjs +2 -2
- package/dist/components/SelectDropdown/components/item.module.scss.cjs.map +1 -1
- package/dist/components/SelectDropdown/components/item.module.scss.js +1 -1
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.cjs +2 -2
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.cjs.map +1 -1
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.js +1 -1
- package/dist/components/SimpleTable/SimpleTable.module.scss.cjs +2 -2
- package/dist/components/SimpleTable/SimpleTable.module.scss.cjs.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.module.scss.js +1 -1
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +2 -2
- package/dist/components/Skeleton/Skeleton.module.scss.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.module.scss.js +1 -1
- package/dist/components/Slider/Slider.module.scss.cjs +2 -2
- package/dist/components/Slider/Slider.module.scss.cjs.map +1 -1
- package/dist/components/Slider/Slider.module.scss.js +1 -1
- package/dist/components/Slider/components/SliderHandle/SliderHandle.module.scss.cjs +2 -2
- package/dist/components/Slider/components/SliderHandle/SliderHandle.module.scss.cjs.map +1 -1
- package/dist/components/Slider/components/SliderHandle/SliderHandle.module.scss.js +1 -1
- package/dist/components/Slider/components/SliderTrack/SliderTrack.module.scss.cjs +2 -2
- package/dist/components/Slider/components/SliderTrack/SliderTrack.module.scss.cjs.map +1 -1
- package/dist/components/Slider/components/SliderTrack/SliderTrack.module.scss.js +1 -1
- package/dist/components/Stack/Stack.module.scss.cjs +2 -2
- package/dist/components/Stack/Stack.module.scss.cjs.map +1 -1
- package/dist/components/Stack/Stack.module.scss.js +1 -1
- package/dist/components/Stepper/Stepper.module.scss.cjs +2 -2
- package/dist/components/Stepper/Stepper.module.scss.js +1 -1
- package/dist/components/SystemBanner/SystemBanner.module.scss.cjs +2 -2
- package/dist/components/SystemBanner/SystemBanner.module.scss.cjs.map +1 -1
- package/dist/components/SystemBanner/SystemBanner.module.scss.js +1 -1
- package/dist/components/Tag/Tag.module.scss.cjs +2 -2
- package/dist/components/Tag/Tag.module.scss.cjs.map +1 -1
- package/dist/components/Tag/Tag.module.scss.js +1 -1
- package/dist/components/Text/Text.module.scss.cjs +2 -2
- package/dist/components/Text/Text.module.scss.cjs.map +1 -1
- package/dist/components/Text/Text.module.scss.js +1 -1
- package/dist/components/TextField/TextField.module.scss.cjs +2 -2
- package/dist/components/TextField/TextField.module.scss.cjs.map +1 -1
- package/dist/components/TextField/TextField.module.scss.js +1 -1
- package/dist/components/ThemeInjector/ThemeInjector.cjs +17 -1
- package/dist/components/ThemeInjector/ThemeInjector.cjs.map +1 -1
- package/dist/components/ThemeInjector/ThemeInjector.d.ts +10 -7
- package/dist/components/ThemeInjector/ThemeInjector.js +17 -1
- package/dist/components/ThemeInjector/ThemeInjector.js.map +1 -1
- package/dist/components/ToastsLayout/ToastsLayout.module.scss.cjs +2 -2
- package/dist/components/ToastsLayout/ToastsLayout.module.scss.cjs.map +1 -1
- package/dist/components/ToastsLayout/ToastsLayout.module.scss.js +1 -1
- package/dist/components/ToastsLayout/components/Toast.module.scss.cjs +2 -2
- package/dist/components/ToastsLayout/components/Toast.module.scss.cjs.map +1 -1
- package/dist/components/ToastsLayout/components/Toast.module.scss.js +1 -1
- package/dist/components/Toggle/Toggle.module.scss.cjs +2 -2
- package/dist/components/Toggle/Toggle.module.scss.cjs.map +1 -1
- package/dist/components/Toggle/Toggle.module.scss.js +1 -1
- package/dist/components/TokenProvider/TokenProvider.module.scss.cjs +2 -2
- package/dist/components/TokenProvider/TokenProvider.module.scss.cjs.map +1 -1
- package/dist/components/TokenProvider/TokenProvider.module.scss.js +1 -1
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +2 -2
- package/dist/components/Tooltip/Tooltip.module.scss.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.module.scss.js +1 -1
- package/dist/components/UploadFile/UploadFile.module.scss.cjs +2 -2
- package/dist/components/UploadFile/UploadFile.module.scss.cjs.map +1 -1
- package/dist/components/UploadFile/UploadFile.module.scss.js +1 -1
- package/dist/components/UploadedFile/UploadedFile.module.scss.cjs +2 -2
- package/dist/components/UploadedFile/UploadedFile.module.scss.cjs.map +1 -1
- package/dist/components/UploadedFile/UploadedFile.module.scss.js +1 -1
- package/dist/components/View/View.module.scss.cjs +2 -2
- package/dist/components/View/View.module.scss.cjs.map +1 -1
- package/dist/components/View/View.module.scss.js +1 -1
- package/dist/components/ViewTab/ViewTab.module.scss.cjs +2 -2
- package/dist/components/ViewTab/ViewTab.module.scss.cjs.map +1 -1
- package/dist/components/ViewTab/ViewTab.module.scss.js +1 -1
- package/dist/components/ViewsContainer/ViewsContainer.module.scss.cjs +2 -2
- package/dist/components/ViewsContainer/ViewsContainer.module.scss.cjs.map +1 -1
- package/dist/components/ViewsContainer/ViewsContainer.module.scss.js +1 -1
- package/dist/components/WeightInput/WeightInput.module.scss.cjs +2 -2
- package/dist/components/WeightInput/WeightInput.module.scss.cjs.map +1 -1
- package/dist/components/WeightInput/WeightInput.module.scss.js +1 -1
- package/dist/hoc/withLabels/BlockTooltip.module.scss.cjs +2 -2
- package/dist/hoc/withLabels/BlockTooltip.module.scss.cjs.map +1 -1
- package/dist/hoc/withLabels/BlockTooltip.module.scss.js +1 -1
- package/dist/hoc/withLabels/withLabels.module.scss.cjs +2 -2
- package/dist/hoc/withLabels/withLabels.module.scss.cjs.map +1 -1
- package/dist/hoc/withLabels/withLabels.module.scss.js +1 -1
- package/dist/styles/insertStyle.cjs +91 -0
- package/dist/styles/insertStyle.cjs.map +1 -0
- package/dist/styles/insertStyle.d.ts +37 -0
- package/dist/styles/insertStyle.js +82 -0
- package/dist/styles/insertStyle.js.map +1 -0
- package/dist/styles/stylesheetCheck.cjs +61 -0
- package/dist/styles/stylesheetCheck.cjs.map +1 -0
- package/dist/styles/stylesheetCheck.d.ts +13 -0
- package/dist/styles/stylesheetCheck.js +56 -0
- package/dist/styles/stylesheetCheck.js.map +1 -0
- package/dist/styles.css +9551 -0
- package/dist/theme/scss/text.module.scss.cjs +2 -2
- package/dist/theme/scss/text.module.scss.cjs.map +1 -1
- package/dist/theme/scss/text.module.scss.js +1 -1
- package/dist/theme.css +375 -0
- package/dist/utils/forms/form.module.scss.cjs +2 -2
- package/dist/utils/forms/form.module.scss.js +1 -1
- package/package.json +10 -5
- package/dist/_virtual/____insertStyle.cjs +0 -14
- package/dist/_virtual/____insertStyle.cjs.map +0 -1
- package/dist/_virtual/____insertStyle.js +0 -12
- package/dist/_virtual/____insertStyle.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var insertStyle = require('../../styles/insertStyle.cjs');
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
insertStyle.default("._block_10obo_1 {\n display: block;\n}\n\n._hoverableFlex_10obo_5 {\n display: flex;\n}");
|
|
6
6
|
var blockTooltipStyles = {"block":"_block_10obo_1","hoverableFlex":"_hoverableFlex_10obo_5"};
|
|
7
7
|
|
|
8
8
|
module.exports = blockTooltipStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockTooltip.module.scss.cjs","sources":["../../../src/hoc/withLabels/BlockTooltip.module.scss"],"sourcesContent":[".block {\n display: block;\n}\n\n.hoverableFlex {\n display: flex;\n}\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"BlockTooltip.module.scss.cjs","sources":["../../../src/hoc/withLabels/BlockTooltip.module.scss"],"sourcesContent":[".block {\n display: block;\n}\n\n.hoverableFlex {\n display: flex;\n}\n"],"names":["___$insertStyle"],"mappings":";;;;AACEA,mBAAA,CAAA,2FAAA;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import insertStyle from '../../
|
|
1
|
+
import insertStyle from '../../styles/insertStyle.js';
|
|
2
2
|
|
|
3
3
|
insertStyle("._block_10obo_1 {\n display: block;\n}\n\n._hoverableFlex_10obo_5 {\n display: flex;\n}");
|
|
4
4
|
var blockTooltipStyles = {"block":"_block_10obo_1","hoverableFlex":"_hoverableFlex_10obo_5"};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var insertStyle = require('../../styles/insertStyle.cjs');
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
insertStyle.default("._rootStack_idlam_1 {\n position: relative;\n}\n\n/* Overrides hintText token's 12px/16px to use body font-size/line-height */\n._hint_idlam_6 {\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n}\n\n/* Error token uses font-weight: 600, but form errors render at normal weight */\n._error_idlam_12 {\n font-weight: normal;\n}");
|
|
6
6
|
var labelStyles = {"rootStack":"_rootStack_idlam_1","hint":"_hint_idlam_6","error":"_error_idlam_12"};
|
|
7
7
|
|
|
8
8
|
module.exports = labelStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withLabels.module.scss.cjs","sources":["../../../src/hoc/withLabels/withLabels.module.scss"],"sourcesContent":[".rootStack {\n position: relative;\n}\n\n/* Overrides hintText token's 12px/16px to use body font-size/line-height */\n.hint {\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n}\n\n/* Error token uses font-weight: 600, but form errors render at normal weight */\n.error {\n font-weight: normal;\n}\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"withLabels.module.scss.cjs","sources":["../../../src/hoc/withLabels/withLabels.module.scss"],"sourcesContent":[".rootStack {\n position: relative;\n}\n\n/* Overrides hintText token's 12px/16px to use body font-size/line-height */\n.hint {\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n}\n\n/* Error token uses font-weight: 600, but form errors render at normal weight */\n.error {\n font-weight: normal;\n}\n"],"names":["___$insertStyle"],"mappings":";;;;AACEA,mBAAA,CAAA,iXAAA;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import insertStyle from '../../
|
|
1
|
+
import insertStyle from '../../styles/insertStyle.js';
|
|
2
2
|
|
|
3
3
|
insertStyle("._rootStack_idlam_1 {\n position: relative;\n}\n\n/* Overrides hintText token's 12px/16px to use body font-size/line-height */\n._hint_idlam_6 {\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n}\n\n/* Error token uses font-weight: 600, but form errors render at normal weight */\n._error_idlam_12 {\n font-weight: normal;\n}");
|
|
4
4
|
var labelStyles = {"rootStack":"_rootStack_idlam_1","hint":"_hint_idlam_6","error":"_error_idlam_12"};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var stylesheetCheck = require('./stylesheetCheck.cjs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Runtime injector for compiled CSS modules.
|
|
9
|
+
*
|
|
10
|
+
* rollup.config.js resolves rollup-plugin-sass's `___$insertStyle` import to this file, so
|
|
11
|
+
* every `*.module.scss` module calls the default export with its compiled CSS at import time.
|
|
12
|
+
* Not re-exported from any barrel: it is a build seam, not public API.
|
|
13
|
+
*
|
|
14
|
+
* Hosts that serve `@veeqo/ui/styles.css` opt out of injection via `resolveStylesMode`. When
|
|
15
|
+
* injection does happen, the `<style>` element carries the host's CSP nonce if one is advertised.
|
|
16
|
+
*/
|
|
17
|
+
const STYLES_MODE_META_NAME = 'veeqo-ui-styles';
|
|
18
|
+
const STYLES_MODE_GLOBAL_KEY = '__VEEQO_UI_STYLES__';
|
|
19
|
+
/** webpack's nonce global, also read by styled-components and react-aria. */
|
|
20
|
+
const WEBPACK_NONCE_KEY = '__webpack_nonce__';
|
|
21
|
+
const EXTERNAL = 'external';
|
|
22
|
+
const asMode = (value) => {
|
|
23
|
+
if (value === EXTERNAL)
|
|
24
|
+
return EXTERNAL;
|
|
25
|
+
if (value === 'inject')
|
|
26
|
+
return 'inject';
|
|
27
|
+
return undefined;
|
|
28
|
+
};
|
|
29
|
+
const compileTimeMode = () =>
|
|
30
|
+
// `typeof` on an undeclared identifier does not throw, so this is safe without a define.
|
|
31
|
+
typeof __VEEQO_UI_STYLES_MODE__ === 'string' ? asMode(__VEEQO_UI_STYLES_MODE__) : undefined;
|
|
32
|
+
const globalMode = () => asMode(globalThis[STYLES_MODE_GLOBAL_KEY]);
|
|
33
|
+
const metaMode = () => {
|
|
34
|
+
if (typeof document === 'undefined')
|
|
35
|
+
return undefined;
|
|
36
|
+
const meta = document.querySelector(`meta[name="${STYLES_MODE_META_NAME}"]`);
|
|
37
|
+
return asMode(meta === null || meta === void 0 ? void 0 : meta.getAttribute('content'));
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Decides whether this copy of @veeqo/ui injects its styles or expects the host to have loaded
|
|
41
|
+
* `@veeqo/ui/styles.css`. Precedence: compile-time define, then
|
|
42
|
+
* `globalThis.__VEEQO_UI_STYLES__` (the only mechanism available during SSR and in tests), then
|
|
43
|
+
* `<meta name="veeqo-ui-styles" content="external">`.
|
|
44
|
+
*
|
|
45
|
+
* Not cached: caching would let a page keep an opt-out after the stylesheet that justified it is
|
|
46
|
+
* gone, and the lookups are cheap.
|
|
47
|
+
*/
|
|
48
|
+
const resolveStylesMode = () => { var _a, _b, _c; return (_c = (_b = (_a = compileTimeMode()) !== null && _a !== void 0 ? _a : globalMode()) !== null && _b !== void 0 ? _b : metaMode()) !== null && _c !== void 0 ? _c : 'inject'; };
|
|
49
|
+
/**
|
|
50
|
+
* CSP nonce advertised by the host. Follows react-aria's lookup, which Vite's `html.cspNonce`
|
|
51
|
+
* also emits: `<meta property="csp-nonce">`, reading the IDL property before the content
|
|
52
|
+
* attribute because browsers blank the attribute after parsing, then `__webpack_nonce__`.
|
|
53
|
+
*/
|
|
54
|
+
const readCspNonce = () => {
|
|
55
|
+
if (typeof document !== 'undefined') {
|
|
56
|
+
const meta = document.querySelector('meta[property="csp-nonce"]');
|
|
57
|
+
const fromMeta = (meta === null || meta === void 0 ? void 0 : meta.nonce) || (meta === null || meta === void 0 ? void 0 : meta.getAttribute('content'));
|
|
58
|
+
if (fromMeta)
|
|
59
|
+
return fromMeta;
|
|
60
|
+
}
|
|
61
|
+
const webpackNonce = globalThis[WEBPACK_NONCE_KEY];
|
|
62
|
+
return typeof webpackNonce === 'string' && webpackNonce ? webpackNonce : undefined;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Appends `css` to `document.head` in a `<style>` element. Returns the CSS when it was injected,
|
|
66
|
+
* `undefined` when there is no document, no CSS, or the host has opted out.
|
|
67
|
+
*/
|
|
68
|
+
function insertStyle(css) {
|
|
69
|
+
if (!css || typeof document === 'undefined')
|
|
70
|
+
return undefined;
|
|
71
|
+
if (resolveStylesMode() === EXTERNAL) {
|
|
72
|
+
stylesheetCheck.scheduleStylesheetCheck();
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
const style = document.createElement('style');
|
|
76
|
+
const nonce = readCspNonce();
|
|
77
|
+
if (nonce)
|
|
78
|
+
style.setAttribute('nonce', nonce);
|
|
79
|
+
// Not innerHTML: it is a Trusted Types sink.
|
|
80
|
+
style.textContent = css;
|
|
81
|
+
document.head.appendChild(style);
|
|
82
|
+
return css;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
exports.STYLES_MODE_GLOBAL_KEY = STYLES_MODE_GLOBAL_KEY;
|
|
86
|
+
exports.STYLES_MODE_META_NAME = STYLES_MODE_META_NAME;
|
|
87
|
+
exports.WEBPACK_NONCE_KEY = WEBPACK_NONCE_KEY;
|
|
88
|
+
exports.default = insertStyle;
|
|
89
|
+
exports.readCspNonce = readCspNonce;
|
|
90
|
+
exports.resolveStylesMode = resolveStylesMode;
|
|
91
|
+
//# sourceMappingURL=insertStyle.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertStyle.cjs","sources":["../../src/styles/insertStyle.ts"],"sourcesContent":["/**\n * Runtime injector for compiled CSS modules.\n *\n * rollup.config.js resolves rollup-plugin-sass's `___$insertStyle` import to this file, so\n * every `*.module.scss` module calls the default export with its compiled CSS at import time.\n * Not re-exported from any barrel: it is a build seam, not public API.\n *\n * Hosts that serve `@veeqo/ui/styles.css` opt out of injection via `resolveStylesMode`. When\n * injection does happen, the `<style>` element carries the host's CSP nonce if one is advertised.\n */\n\nimport { scheduleStylesheetCheck } from './stylesheetCheck';\n\n/**\n * Compile-time override, applied by bundlers that `define` this identifier. A library that\n * bundles its own copy of @veeqo/ui (e.g. VQTopNav) sets it to `'inject'` so its copy ignores the\n * host's opt-out: CSS-module class hashes are per build, so the host's stylesheet cannot style a\n * different build's components. Undefined in @veeqo/ui's own output.\n */\n// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/naming-convention\ndeclare const __VEEQO_UI_STYLES_MODE__: string | undefined;\n\nexport type StylesMode = 'inject' | 'external';\n\nexport const STYLES_MODE_META_NAME = 'veeqo-ui-styles';\nexport const STYLES_MODE_GLOBAL_KEY = '__VEEQO_UI_STYLES__';\n/** webpack's nonce global, also read by styled-components and react-aria. */\nexport const WEBPACK_NONCE_KEY = '__webpack_nonce__';\nconst EXTERNAL: StylesMode = 'external';\n\nconst asMode = (value: unknown): StylesMode | undefined => {\n if (value === EXTERNAL) return EXTERNAL;\n if (value === 'inject') return 'inject';\n return undefined;\n};\n\nconst compileTimeMode = (): StylesMode | undefined =>\n // `typeof` on an undeclared identifier does not throw, so this is safe without a define.\n typeof __VEEQO_UI_STYLES_MODE__ === 'string' ? asMode(__VEEQO_UI_STYLES_MODE__) : undefined;\n\nconst globalMode = (): StylesMode | undefined =>\n asMode((globalThis as Record<string, unknown>)[STYLES_MODE_GLOBAL_KEY]);\n\nconst metaMode = (): StylesMode | undefined => {\n if (typeof document === 'undefined') return undefined;\n const meta = document.querySelector(`meta[name=\"${STYLES_MODE_META_NAME}\"]`);\n return asMode(meta?.getAttribute('content'));\n};\n\n/**\n * Decides whether this copy of @veeqo/ui injects its styles or expects the host to have loaded\n * `@veeqo/ui/styles.css`. Precedence: compile-time define, then\n * `globalThis.__VEEQO_UI_STYLES__` (the only mechanism available during SSR and in tests), then\n * `<meta name=\"veeqo-ui-styles\" content=\"external\">`.\n *\n * Not cached: caching would let a page keep an opt-out after the stylesheet that justified it is\n * gone, and the lookups are cheap.\n */\nexport const resolveStylesMode = (): StylesMode =>\n compileTimeMode() ?? globalMode() ?? metaMode() ?? 'inject';\n\n/**\n * CSP nonce advertised by the host. Follows react-aria's lookup, which Vite's `html.cspNonce`\n * also emits: `<meta property=\"csp-nonce\">`, reading the IDL property before the content\n * attribute because browsers blank the attribute after parsing, then `__webpack_nonce__`.\n */\nexport const readCspNonce = (): string | undefined => {\n if (typeof document !== 'undefined') {\n const meta = document.querySelector<HTMLMetaElement>('meta[property=\"csp-nonce\"]');\n const fromMeta = meta?.nonce || meta?.getAttribute('content');\n if (fromMeta) return fromMeta;\n }\n const webpackNonce = (globalThis as Record<string, unknown>)[WEBPACK_NONCE_KEY];\n return typeof webpackNonce === 'string' && webpackNonce ? webpackNonce : undefined;\n};\n\n/**\n * Appends `css` to `document.head` in a `<style>` element. Returns the CSS when it was injected,\n * `undefined` when there is no document, no CSS, or the host has opted out.\n */\nfunction insertStyle(css: string): string | undefined {\n if (!css || typeof document === 'undefined') return undefined;\n if (resolveStylesMode() === EXTERNAL) {\n scheduleStylesheetCheck();\n return undefined;\n }\n\n const style = document.createElement('style');\n const nonce = readCspNonce();\n if (nonce) style.setAttribute('nonce', nonce);\n // Not innerHTML: it is a Trusted Types sink.\n style.textContent = css;\n document.head.appendChild(style);\n return css;\n}\n\n// rollup-plugin-sass requires a default export.\n// eslint-disable-next-line import/no-default-export\nexport default insertStyle;\n"],"names":["scheduleStylesheetCheck"],"mappings":";;;;;;AAAA;;;;;;;;;AASG;AAeI,MAAM,qBAAqB,GAAG;AAC9B,MAAM,sBAAsB,GAAG;AACtC;AACO,MAAM,iBAAiB,GAAG;AACjC,MAAM,QAAQ,GAAe,UAAU;AAEvC,MAAM,MAAM,GAAG,CAAC,KAAc,KAA4B;IACxD,IAAI,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,QAAQ;IACvC,IAAI,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,QAAQ;AACvC,IAAA,OAAO,SAAS;AAClB,CAAC;AAED,MAAM,eAAe,GAAG;AACtB;AACA,OAAO,wBAAwB,KAAK,QAAQ,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,SAAS;AAE7F,MAAM,UAAU,GAAG,MACjB,MAAM,CAAE,UAAsC,CAAC,sBAAsB,CAAC,CAAC;AAEzE,MAAM,QAAQ,GAAG,MAA6B;IAC5C,IAAI,OAAO,QAAQ,KAAK,WAAW;AAAE,QAAA,OAAO,SAAS;IACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA,WAAA,EAAc,qBAAqB,CAAA,EAAA,CAAI,CAAC;AAC5E,IAAA,OAAO,MAAM,CAAC,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AAC9C,CAAC;AAED;;;;;;;;AAQG;MACU,iBAAiB,GAAG,MAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA,CAChD,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,eAAe,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,UAAU,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,CAAA,CAAA;AAE7D;;;;AAIG;AACI,MAAM,YAAY,GAAG,MAAyB;AACnD,IAAA,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAkB,4BAA4B,CAAC;QAClF,MAAM,QAAQ,GAAG,CAAA,IAAI,aAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,KAAK,MAAI,IAAI,KAAA,IAAA,IAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC,SAAS,CAAC,CAAA;AAC7D,QAAA,IAAI,QAAQ;AAAE,YAAA,OAAO,QAAQ;AAC9B,IAAA;AACD,IAAA,MAAM,YAAY,GAAI,UAAsC,CAAC,iBAAiB,CAAC;AAC/E,IAAA,OAAO,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,GAAG,YAAY,GAAG,SAAS;AACpF;AAEA;;;AAGG;AACH,SAAS,WAAW,CAAC,GAAW,EAAA;AAC9B,IAAA,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW;AAAE,QAAA,OAAO,SAAS;AAC7D,IAAA,IAAI,iBAAiB,EAAE,KAAK,QAAQ,EAAE;AACpC,QAAAA,uCAAuB,EAAE;AACzB,QAAA,OAAO,SAAS;AACjB,IAAA;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,IAAA,MAAM,KAAK,GAAG,YAAY,EAAE;AAC5B,IAAA,IAAI,KAAK;AAAE,QAAA,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC;;AAE7C,IAAA,KAAK,CAAC,WAAW,GAAG,GAAG;AACvB,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,IAAA,OAAO,GAAG;AACZ;;;;;;;;;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime injector for compiled CSS modules.
|
|
3
|
+
*
|
|
4
|
+
* rollup.config.js resolves rollup-plugin-sass's `___$insertStyle` import to this file, so
|
|
5
|
+
* every `*.module.scss` module calls the default export with its compiled CSS at import time.
|
|
6
|
+
* Not re-exported from any barrel: it is a build seam, not public API.
|
|
7
|
+
*
|
|
8
|
+
* Hosts that serve `@veeqo/ui/styles.css` opt out of injection via `resolveStylesMode`. When
|
|
9
|
+
* injection does happen, the `<style>` element carries the host's CSP nonce if one is advertised.
|
|
10
|
+
*/
|
|
11
|
+
export type StylesMode = 'inject' | 'external';
|
|
12
|
+
export declare const STYLES_MODE_META_NAME = "veeqo-ui-styles";
|
|
13
|
+
export declare const STYLES_MODE_GLOBAL_KEY = "__VEEQO_UI_STYLES__";
|
|
14
|
+
/** webpack's nonce global, also read by styled-components and react-aria. */
|
|
15
|
+
export declare const WEBPACK_NONCE_KEY = "__webpack_nonce__";
|
|
16
|
+
/**
|
|
17
|
+
* Decides whether this copy of @veeqo/ui injects its styles or expects the host to have loaded
|
|
18
|
+
* `@veeqo/ui/styles.css`. Precedence: compile-time define, then
|
|
19
|
+
* `globalThis.__VEEQO_UI_STYLES__` (the only mechanism available during SSR and in tests), then
|
|
20
|
+
* `<meta name="veeqo-ui-styles" content="external">`.
|
|
21
|
+
*
|
|
22
|
+
* Not cached: caching would let a page keep an opt-out after the stylesheet that justified it is
|
|
23
|
+
* gone, and the lookups are cheap.
|
|
24
|
+
*/
|
|
25
|
+
export declare const resolveStylesMode: () => StylesMode;
|
|
26
|
+
/**
|
|
27
|
+
* CSP nonce advertised by the host. Follows react-aria's lookup, which Vite's `html.cspNonce`
|
|
28
|
+
* also emits: `<meta property="csp-nonce">`, reading the IDL property before the content
|
|
29
|
+
* attribute because browsers blank the attribute after parsing, then `__webpack_nonce__`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const readCspNonce: () => string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Appends `css` to `document.head` in a `<style>` element. Returns the CSS when it was injected,
|
|
34
|
+
* `undefined` when there is no document, no CSS, or the host has opted out.
|
|
35
|
+
*/
|
|
36
|
+
declare function insertStyle(css: string): string | undefined;
|
|
37
|
+
export default insertStyle;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { scheduleStylesheetCheck } from './stylesheetCheck.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Runtime injector for compiled CSS modules.
|
|
5
|
+
*
|
|
6
|
+
* rollup.config.js resolves rollup-plugin-sass's `___$insertStyle` import to this file, so
|
|
7
|
+
* every `*.module.scss` module calls the default export with its compiled CSS at import time.
|
|
8
|
+
* Not re-exported from any barrel: it is a build seam, not public API.
|
|
9
|
+
*
|
|
10
|
+
* Hosts that serve `@veeqo/ui/styles.css` opt out of injection via `resolveStylesMode`. When
|
|
11
|
+
* injection does happen, the `<style>` element carries the host's CSP nonce if one is advertised.
|
|
12
|
+
*/
|
|
13
|
+
const STYLES_MODE_META_NAME = 'veeqo-ui-styles';
|
|
14
|
+
const STYLES_MODE_GLOBAL_KEY = '__VEEQO_UI_STYLES__';
|
|
15
|
+
/** webpack's nonce global, also read by styled-components and react-aria. */
|
|
16
|
+
const WEBPACK_NONCE_KEY = '__webpack_nonce__';
|
|
17
|
+
const EXTERNAL = 'external';
|
|
18
|
+
const asMode = (value) => {
|
|
19
|
+
if (value === EXTERNAL)
|
|
20
|
+
return EXTERNAL;
|
|
21
|
+
if (value === 'inject')
|
|
22
|
+
return 'inject';
|
|
23
|
+
return undefined;
|
|
24
|
+
};
|
|
25
|
+
const compileTimeMode = () =>
|
|
26
|
+
// `typeof` on an undeclared identifier does not throw, so this is safe without a define.
|
|
27
|
+
typeof __VEEQO_UI_STYLES_MODE__ === 'string' ? asMode(__VEEQO_UI_STYLES_MODE__) : undefined;
|
|
28
|
+
const globalMode = () => asMode(globalThis[STYLES_MODE_GLOBAL_KEY]);
|
|
29
|
+
const metaMode = () => {
|
|
30
|
+
if (typeof document === 'undefined')
|
|
31
|
+
return undefined;
|
|
32
|
+
const meta = document.querySelector(`meta[name="${STYLES_MODE_META_NAME}"]`);
|
|
33
|
+
return asMode(meta === null || meta === void 0 ? void 0 : meta.getAttribute('content'));
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Decides whether this copy of @veeqo/ui injects its styles or expects the host to have loaded
|
|
37
|
+
* `@veeqo/ui/styles.css`. Precedence: compile-time define, then
|
|
38
|
+
* `globalThis.__VEEQO_UI_STYLES__` (the only mechanism available during SSR and in tests), then
|
|
39
|
+
* `<meta name="veeqo-ui-styles" content="external">`.
|
|
40
|
+
*
|
|
41
|
+
* Not cached: caching would let a page keep an opt-out after the stylesheet that justified it is
|
|
42
|
+
* gone, and the lookups are cheap.
|
|
43
|
+
*/
|
|
44
|
+
const resolveStylesMode = () => { var _a, _b, _c; return (_c = (_b = (_a = compileTimeMode()) !== null && _a !== void 0 ? _a : globalMode()) !== null && _b !== void 0 ? _b : metaMode()) !== null && _c !== void 0 ? _c : 'inject'; };
|
|
45
|
+
/**
|
|
46
|
+
* CSP nonce advertised by the host. Follows react-aria's lookup, which Vite's `html.cspNonce`
|
|
47
|
+
* also emits: `<meta property="csp-nonce">`, reading the IDL property before the content
|
|
48
|
+
* attribute because browsers blank the attribute after parsing, then `__webpack_nonce__`.
|
|
49
|
+
*/
|
|
50
|
+
const readCspNonce = () => {
|
|
51
|
+
if (typeof document !== 'undefined') {
|
|
52
|
+
const meta = document.querySelector('meta[property="csp-nonce"]');
|
|
53
|
+
const fromMeta = (meta === null || meta === void 0 ? void 0 : meta.nonce) || (meta === null || meta === void 0 ? void 0 : meta.getAttribute('content'));
|
|
54
|
+
if (fromMeta)
|
|
55
|
+
return fromMeta;
|
|
56
|
+
}
|
|
57
|
+
const webpackNonce = globalThis[WEBPACK_NONCE_KEY];
|
|
58
|
+
return typeof webpackNonce === 'string' && webpackNonce ? webpackNonce : undefined;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Appends `css` to `document.head` in a `<style>` element. Returns the CSS when it was injected,
|
|
62
|
+
* `undefined` when there is no document, no CSS, or the host has opted out.
|
|
63
|
+
*/
|
|
64
|
+
function insertStyle(css) {
|
|
65
|
+
if (!css || typeof document === 'undefined')
|
|
66
|
+
return undefined;
|
|
67
|
+
if (resolveStylesMode() === EXTERNAL) {
|
|
68
|
+
scheduleStylesheetCheck();
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
const style = document.createElement('style');
|
|
72
|
+
const nonce = readCspNonce();
|
|
73
|
+
if (nonce)
|
|
74
|
+
style.setAttribute('nonce', nonce);
|
|
75
|
+
// Not innerHTML: it is a Trusted Types sink.
|
|
76
|
+
style.textContent = css;
|
|
77
|
+
document.head.appendChild(style);
|
|
78
|
+
return css;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { STYLES_MODE_GLOBAL_KEY, STYLES_MODE_META_NAME, WEBPACK_NONCE_KEY, insertStyle as default, readCspNonce, resolveStylesMode };
|
|
82
|
+
//# sourceMappingURL=insertStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertStyle.js","sources":["../../src/styles/insertStyle.ts"],"sourcesContent":["/**\n * Runtime injector for compiled CSS modules.\n *\n * rollup.config.js resolves rollup-plugin-sass's `___$insertStyle` import to this file, so\n * every `*.module.scss` module calls the default export with its compiled CSS at import time.\n * Not re-exported from any barrel: it is a build seam, not public API.\n *\n * Hosts that serve `@veeqo/ui/styles.css` opt out of injection via `resolveStylesMode`. When\n * injection does happen, the `<style>` element carries the host's CSP nonce if one is advertised.\n */\n\nimport { scheduleStylesheetCheck } from './stylesheetCheck';\n\n/**\n * Compile-time override, applied by bundlers that `define` this identifier. A library that\n * bundles its own copy of @veeqo/ui (e.g. VQTopNav) sets it to `'inject'` so its copy ignores the\n * host's opt-out: CSS-module class hashes are per build, so the host's stylesheet cannot style a\n * different build's components. Undefined in @veeqo/ui's own output.\n */\n// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/naming-convention\ndeclare const __VEEQO_UI_STYLES_MODE__: string | undefined;\n\nexport type StylesMode = 'inject' | 'external';\n\nexport const STYLES_MODE_META_NAME = 'veeqo-ui-styles';\nexport const STYLES_MODE_GLOBAL_KEY = '__VEEQO_UI_STYLES__';\n/** webpack's nonce global, also read by styled-components and react-aria. */\nexport const WEBPACK_NONCE_KEY = '__webpack_nonce__';\nconst EXTERNAL: StylesMode = 'external';\n\nconst asMode = (value: unknown): StylesMode | undefined => {\n if (value === EXTERNAL) return EXTERNAL;\n if (value === 'inject') return 'inject';\n return undefined;\n};\n\nconst compileTimeMode = (): StylesMode | undefined =>\n // `typeof` on an undeclared identifier does not throw, so this is safe without a define.\n typeof __VEEQO_UI_STYLES_MODE__ === 'string' ? asMode(__VEEQO_UI_STYLES_MODE__) : undefined;\n\nconst globalMode = (): StylesMode | undefined =>\n asMode((globalThis as Record<string, unknown>)[STYLES_MODE_GLOBAL_KEY]);\n\nconst metaMode = (): StylesMode | undefined => {\n if (typeof document === 'undefined') return undefined;\n const meta = document.querySelector(`meta[name=\"${STYLES_MODE_META_NAME}\"]`);\n return asMode(meta?.getAttribute('content'));\n};\n\n/**\n * Decides whether this copy of @veeqo/ui injects its styles or expects the host to have loaded\n * `@veeqo/ui/styles.css`. Precedence: compile-time define, then\n * `globalThis.__VEEQO_UI_STYLES__` (the only mechanism available during SSR and in tests), then\n * `<meta name=\"veeqo-ui-styles\" content=\"external\">`.\n *\n * Not cached: caching would let a page keep an opt-out after the stylesheet that justified it is\n * gone, and the lookups are cheap.\n */\nexport const resolveStylesMode = (): StylesMode =>\n compileTimeMode() ?? globalMode() ?? metaMode() ?? 'inject';\n\n/**\n * CSP nonce advertised by the host. Follows react-aria's lookup, which Vite's `html.cspNonce`\n * also emits: `<meta property=\"csp-nonce\">`, reading the IDL property before the content\n * attribute because browsers blank the attribute after parsing, then `__webpack_nonce__`.\n */\nexport const readCspNonce = (): string | undefined => {\n if (typeof document !== 'undefined') {\n const meta = document.querySelector<HTMLMetaElement>('meta[property=\"csp-nonce\"]');\n const fromMeta = meta?.nonce || meta?.getAttribute('content');\n if (fromMeta) return fromMeta;\n }\n const webpackNonce = (globalThis as Record<string, unknown>)[WEBPACK_NONCE_KEY];\n return typeof webpackNonce === 'string' && webpackNonce ? webpackNonce : undefined;\n};\n\n/**\n * Appends `css` to `document.head` in a `<style>` element. Returns the CSS when it was injected,\n * `undefined` when there is no document, no CSS, or the host has opted out.\n */\nfunction insertStyle(css: string): string | undefined {\n if (!css || typeof document === 'undefined') return undefined;\n if (resolveStylesMode() === EXTERNAL) {\n scheduleStylesheetCheck();\n return undefined;\n }\n\n const style = document.createElement('style');\n const nonce = readCspNonce();\n if (nonce) style.setAttribute('nonce', nonce);\n // Not innerHTML: it is a Trusted Types sink.\n style.textContent = css;\n document.head.appendChild(style);\n return css;\n}\n\n// rollup-plugin-sass requires a default export.\n// eslint-disable-next-line import/no-default-export\nexport default insertStyle;\n"],"names":[],"mappings":";;AAAA;;;;;;;;;AASG;AAeI,MAAM,qBAAqB,GAAG;AAC9B,MAAM,sBAAsB,GAAG;AACtC;AACO,MAAM,iBAAiB,GAAG;AACjC,MAAM,QAAQ,GAAe,UAAU;AAEvC,MAAM,MAAM,GAAG,CAAC,KAAc,KAA4B;IACxD,IAAI,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,QAAQ;IACvC,IAAI,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,QAAQ;AACvC,IAAA,OAAO,SAAS;AAClB,CAAC;AAED,MAAM,eAAe,GAAG;AACtB;AACA,OAAO,wBAAwB,KAAK,QAAQ,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,SAAS;AAE7F,MAAM,UAAU,GAAG,MACjB,MAAM,CAAE,UAAsC,CAAC,sBAAsB,CAAC,CAAC;AAEzE,MAAM,QAAQ,GAAG,MAA6B;IAC5C,IAAI,OAAO,QAAQ,KAAK,WAAW;AAAE,QAAA,OAAO,SAAS;IACrD,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA,WAAA,EAAc,qBAAqB,CAAA,EAAA,CAAI,CAAC;AAC5E,IAAA,OAAO,MAAM,CAAC,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AAC9C,CAAC;AAED;;;;;;;;AAQG;MACU,iBAAiB,GAAG,MAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA,CAChD,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,eAAe,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,UAAU,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,CAAA,CAAA;AAE7D;;;;AAIG;AACI,MAAM,YAAY,GAAG,MAAyB;AACnD,IAAA,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAkB,4BAA4B,CAAC;QAClF,MAAM,QAAQ,GAAG,CAAA,IAAI,aAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,KAAK,MAAI,IAAI,KAAA,IAAA,IAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC,SAAS,CAAC,CAAA;AAC7D,QAAA,IAAI,QAAQ;AAAE,YAAA,OAAO,QAAQ;AAC9B,IAAA;AACD,IAAA,MAAM,YAAY,GAAI,UAAsC,CAAC,iBAAiB,CAAC;AAC/E,IAAA,OAAO,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,GAAG,YAAY,GAAG,SAAS;AACpF;AAEA;;;AAGG;AACH,SAAS,WAAW,CAAC,GAAW,EAAA;AAC9B,IAAA,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW;AAAE,QAAA,OAAO,SAAS;AAC7D,IAAA,IAAI,iBAAiB,EAAE,KAAK,QAAQ,EAAE;AACpC,QAAA,uBAAuB,EAAE;AACzB,QAAA,OAAO,SAAS;AACjB,IAAA;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,IAAA,MAAM,KAAK,GAAG,YAAY,EAAE;AAC5B,IAAA,IAAI,KAAK;AAAE,QAAA,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC;;AAE7C,IAAA,KAAK,CAAC,WAAW,GAAG,GAAG;AACvB,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,IAAA,OAAO,GAAG;AACZ;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Detects the "opted out but forgot the stylesheet" misconfiguration. `styles.css` declares
|
|
5
|
+
* `--veeqo-ui-styles: "<version>"` on `:root`; after the page has loaded, a copy of @veeqo/ui
|
|
6
|
+
* running in external mode checks that the marker is present and matches its own version.
|
|
7
|
+
*
|
|
8
|
+
* Outcomes are written to `<html data-veeqo-ui-styles="missing" | "stale">` in every environment
|
|
9
|
+
* so end-to-end tests can assert on them, and reported with `console.error` in development only.
|
|
10
|
+
*/
|
|
11
|
+
const STYLESHEET_MARKER_PROPERTY = '--veeqo-ui-styles';
|
|
12
|
+
const STYLESHEET_STATUS_ATTRIBUTE = 'data-veeqo-ui-styles';
|
|
13
|
+
const libraryVersion = () => "16.6.0-beta-1" ;
|
|
14
|
+
const isDevelopment = () => { var _a; return typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'development'; };
|
|
15
|
+
const readMarker = () => {
|
|
16
|
+
const raw = getComputedStyle(document.documentElement)
|
|
17
|
+
.getPropertyValue(STYLESHEET_MARKER_PROPERTY)
|
|
18
|
+
.trim();
|
|
19
|
+
return raw ? raw.replace(/^["']|["']$/g, '') : undefined;
|
|
20
|
+
};
|
|
21
|
+
const report = (message) => {
|
|
22
|
+
if (isDevelopment()) {
|
|
23
|
+
// eslint-disable-next-line no-console
|
|
24
|
+
console.error(`[@veeqo/ui] ${message}`);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const runStylesheetCheck = () => {
|
|
28
|
+
const marker = readMarker();
|
|
29
|
+
const version = libraryVersion();
|
|
30
|
+
const html = document.documentElement;
|
|
31
|
+
if (!marker) {
|
|
32
|
+
html.setAttribute(STYLESHEET_STATUS_ATTRIBUTE, 'missing');
|
|
33
|
+
report('Runtime style injection is disabled (veeqo-ui-styles=external) but @veeqo/ui/styles.css ' +
|
|
34
|
+
"is not loaded. Import '@veeqo/ui/styles.css' or remove the opt-out.");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (marker !== version) {
|
|
38
|
+
html.setAttribute(STYLESHEET_STATUS_ATTRIBUTE, 'stale');
|
|
39
|
+
report(`The loaded @veeqo/ui/styles.css is from ${marker} but this copy of @veeqo/ui is ${version}. ` +
|
|
40
|
+
'Class names are hashed per build, so components will render unstyled until both match.');
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
let scheduled = false;
|
|
44
|
+
/** Runs the check once per page, after `load` so the host's stylesheet links have been applied. */
|
|
45
|
+
const scheduleStylesheetCheck = () => {
|
|
46
|
+
if (scheduled || typeof document === 'undefined')
|
|
47
|
+
return;
|
|
48
|
+
scheduled = true;
|
|
49
|
+
if (document.readyState === 'complete') {
|
|
50
|
+
setTimeout(runStylesheetCheck, 0);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
window.addEventListener('load', runStylesheetCheck, { once: true });
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
exports.STYLESHEET_MARKER_PROPERTY = STYLESHEET_MARKER_PROPERTY;
|
|
58
|
+
exports.STYLESHEET_STATUS_ATTRIBUTE = STYLESHEET_STATUS_ATTRIBUTE;
|
|
59
|
+
exports.runStylesheetCheck = runStylesheetCheck;
|
|
60
|
+
exports.scheduleStylesheetCheck = scheduleStylesheetCheck;
|
|
61
|
+
//# sourceMappingURL=stylesheetCheck.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylesheetCheck.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects the "opted out but forgot the stylesheet" misconfiguration. `styles.css` declares
|
|
3
|
+
* `--veeqo-ui-styles: "<version>"` on `:root`; after the page has loaded, a copy of @veeqo/ui
|
|
4
|
+
* running in external mode checks that the marker is present and matches its own version.
|
|
5
|
+
*
|
|
6
|
+
* Outcomes are written to `<html data-veeqo-ui-styles="missing" | "stale">` in every environment
|
|
7
|
+
* so end-to-end tests can assert on them, and reported with `console.error` in development only.
|
|
8
|
+
*/
|
|
9
|
+
export declare const STYLESHEET_MARKER_PROPERTY = "--veeqo-ui-styles";
|
|
10
|
+
export declare const STYLESHEET_STATUS_ATTRIBUTE = "data-veeqo-ui-styles";
|
|
11
|
+
export declare const runStylesheetCheck: () => void;
|
|
12
|
+
/** Runs the check once per page, after `load` so the host's stylesheet links have been applied. */
|
|
13
|
+
export declare const scheduleStylesheetCheck: () => void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects the "opted out but forgot the stylesheet" misconfiguration. `styles.css` declares
|
|
3
|
+
* `--veeqo-ui-styles: "<version>"` on `:root`; after the page has loaded, a copy of @veeqo/ui
|
|
4
|
+
* running in external mode checks that the marker is present and matches its own version.
|
|
5
|
+
*
|
|
6
|
+
* Outcomes are written to `<html data-veeqo-ui-styles="missing" | "stale">` in every environment
|
|
7
|
+
* so end-to-end tests can assert on them, and reported with `console.error` in development only.
|
|
8
|
+
*/
|
|
9
|
+
const STYLESHEET_MARKER_PROPERTY = '--veeqo-ui-styles';
|
|
10
|
+
const STYLESHEET_STATUS_ATTRIBUTE = 'data-veeqo-ui-styles';
|
|
11
|
+
const libraryVersion = () => "16.6.0-beta-1" ;
|
|
12
|
+
const isDevelopment = () => { var _a; return typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'development'; };
|
|
13
|
+
const readMarker = () => {
|
|
14
|
+
const raw = getComputedStyle(document.documentElement)
|
|
15
|
+
.getPropertyValue(STYLESHEET_MARKER_PROPERTY)
|
|
16
|
+
.trim();
|
|
17
|
+
return raw ? raw.replace(/^["']|["']$/g, '') : undefined;
|
|
18
|
+
};
|
|
19
|
+
const report = (message) => {
|
|
20
|
+
if (isDevelopment()) {
|
|
21
|
+
// eslint-disable-next-line no-console
|
|
22
|
+
console.error(`[@veeqo/ui] ${message}`);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const runStylesheetCheck = () => {
|
|
26
|
+
const marker = readMarker();
|
|
27
|
+
const version = libraryVersion();
|
|
28
|
+
const html = document.documentElement;
|
|
29
|
+
if (!marker) {
|
|
30
|
+
html.setAttribute(STYLESHEET_STATUS_ATTRIBUTE, 'missing');
|
|
31
|
+
report('Runtime style injection is disabled (veeqo-ui-styles=external) but @veeqo/ui/styles.css ' +
|
|
32
|
+
"is not loaded. Import '@veeqo/ui/styles.css' or remove the opt-out.");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (marker !== version) {
|
|
36
|
+
html.setAttribute(STYLESHEET_STATUS_ATTRIBUTE, 'stale');
|
|
37
|
+
report(`The loaded @veeqo/ui/styles.css is from ${marker} but this copy of @veeqo/ui is ${version}. ` +
|
|
38
|
+
'Class names are hashed per build, so components will render unstyled until both match.');
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
let scheduled = false;
|
|
42
|
+
/** Runs the check once per page, after `load` so the host's stylesheet links have been applied. */
|
|
43
|
+
const scheduleStylesheetCheck = () => {
|
|
44
|
+
if (scheduled || typeof document === 'undefined')
|
|
45
|
+
return;
|
|
46
|
+
scheduled = true;
|
|
47
|
+
if (document.readyState === 'complete') {
|
|
48
|
+
setTimeout(runStylesheetCheck, 0);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
window.addEventListener('load', runStylesheetCheck, { once: true });
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { STYLESHEET_MARKER_PROPERTY, STYLESHEET_STATUS_ATTRIBUTE, runStylesheetCheck, scheduleStylesheetCheck };
|
|
56
|
+
//# sourceMappingURL=stylesheetCheck.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylesheetCheck.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|