@pega/cosmos-react-core 4.0.0-dev.6.1 → 4.0.0-dev.8.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/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/lib/components/Backdrop/Backdrop.js +22 -2
- package/lib/components/Backdrop/Backdrop.js.map +1 -1
- package/lib/components/Banner/Banner.d.ts +9 -1
- package/lib/components/Banner/Banner.d.ts.map +1 -1
- package/lib/components/Banner/Banner.js +21 -10
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/index.d.ts +1 -1
- package/lib/components/Banner/index.d.ts.map +1 -1
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/Card/Card.d.ts +4 -7
- package/lib/components/Card/Card.d.ts.map +1 -1
- package/lib/components/Card/Card.js +2 -9
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Configuration/Configuration.d.ts +4 -1
- package/lib/components/Configuration/Configuration.d.ts.map +1 -1
- package/lib/components/Configuration/Configuration.js +2 -0
- package/lib/components/Configuration/Configuration.js.map +1 -1
- package/lib/components/DateTime/DateTime.types.d.ts +4 -1
- package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
- package/lib/components/DateTime/DateTime.types.js.map +1 -1
- package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateInput.js +12 -1
- package/lib/components/DateTime/Input/DateInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.d.ts +4 -2
- package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.js +71 -34
- package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.js +19 -2
- package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/PartInput.js +2 -2
- package/lib/components/DateTime/Input/PartInput.js.map +1 -1
- package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/TimeInput.js +13 -2
- package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts +4 -2
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.js +70 -27
- package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -1
- package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
- package/lib/components/Dialog/FormDialog.js +2 -6
- package/lib/components/Dialog/FormDialog.js.map +1 -1
- package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
- package/lib/components/Dialog/InfoDialog.js +2 -6
- package/lib/components/Dialog/InfoDialog.js.map +1 -1
- package/lib/components/FormControl/FormControl.d.ts +4 -0
- package/lib/components/FormControl/FormControl.d.ts.map +1 -1
- package/lib/components/FormControl/FormControl.js.map +1 -1
- package/lib/components/FormControl/index.d.ts +1 -0
- package/lib/components/FormControl/index.d.ts.map +1 -1
- package/lib/components/FormControl/index.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.js +84 -66
- package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts +2 -0
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.styles.js +37 -5
- package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.types.d.ts +4 -4
- package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
- package/lib/components/LiveLog/Context.d.ts +3 -0
- package/lib/components/LiveLog/Context.d.ts.map +1 -0
- package/lib/components/LiveLog/Context.js +9 -0
- package/lib/components/LiveLog/Context.js.map +1 -0
- package/lib/components/LiveLog/LiveLog.d.ts +10 -0
- package/lib/components/LiveLog/LiveLog.d.ts.map +1 -0
- package/lib/components/LiveLog/LiveLog.js +99 -0
- package/lib/components/LiveLog/LiveLog.js.map +1 -0
- package/lib/components/LiveLog/LiveLog.styles.d.ts +3 -0
- package/lib/components/LiveLog/LiveLog.styles.d.ts.map +1 -0
- package/lib/components/LiveLog/LiveLog.styles.js +9 -0
- package/lib/components/LiveLog/LiveLog.styles.js.map +1 -0
- package/lib/components/LiveLog/LiveLog.types.d.ts +93 -0
- package/lib/components/LiveLog/LiveLog.types.d.ts.map +1 -0
- package/lib/components/LiveLog/LiveLog.types.js +2 -0
- package/lib/components/LiveLog/LiveLog.types.js.map +1 -0
- package/lib/components/LiveLog/index.d.ts +4 -0
- package/lib/components/LiveLog/index.d.ts.map +1 -0
- package/lib/components/LiveLog/index.js +3 -0
- package/lib/components/LiveLog/index.js.map +1 -0
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +2 -0
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuList.d.ts.map +1 -1
- package/lib/components/Menu/MenuList.js +4 -3
- package/lib/components/Menu/MenuList.js.map +1 -1
- package/lib/components/Modal/Modal.d.ts.map +1 -1
- package/lib/components/Modal/Modal.js +6 -8
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/Modal.types.d.ts +1 -0
- package/lib/components/Modal/Modal.types.d.ts.map +1 -1
- package/lib/components/Modal/Modal.types.js.map +1 -1
- package/lib/components/Number/NumberInput.types.d.ts +3 -1
- package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
- package/lib/components/Number/NumberInput.types.js.map +1 -1
- package/lib/components/Number/NumberRangeInput.d.ts.map +1 -1
- package/lib/components/Number/NumberRangeInput.js +71 -4
- package/lib/components/Number/NumberRangeInput.js.map +1 -1
- package/lib/components/PageTemplates/CategorySubPage.d.ts.map +1 -1
- package/lib/components/PageTemplates/CategorySubPage.js +14 -3
- package/lib/components/PageTemplates/CategorySubPage.js.map +1 -1
- package/lib/components/PageTemplates/CategorySubPage.styles.d.ts.map +1 -1
- package/lib/components/PageTemplates/CategorySubPage.styles.js +5 -0
- package/lib/components/PageTemplates/CategorySubPage.styles.js.map +1 -1
- package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
- package/lib/components/PageTemplates/DashboardPage.js +16 -2
- package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.js +20 -3
- package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
- package/lib/components/Popover/Popover.d.ts.map +1 -1
- package/lib/components/Popover/Popover.js +2 -5
- package/lib/components/Popover/Popover.js.map +1 -1
- package/lib/components/Popover/Popover.styles.d.ts +0 -1
- package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
- package/lib/components/Popover/Popover.styles.js +0 -6
- package/lib/components/Popover/Popover.styles.js.map +1 -1
- package/lib/components/Popover/modifiers.d.ts +0 -2
- package/lib/components/Popover/modifiers.d.ts.map +1 -1
- package/lib/components/Popover/modifiers.js +1 -32
- package/lib/components/Popover/modifiers.js.map +1 -1
- package/lib/components/Progress/Progress.d.ts.map +1 -1
- package/lib/components/Progress/Progress.js +92 -50
- package/lib/components/Progress/Progress.js.map +1 -1
- package/lib/components/Progress/Progress.styles.d.ts.map +1 -1
- package/lib/components/Progress/Progress.styles.js +0 -1
- package/lib/components/Progress/Progress.styles.js.map +1 -1
- package/lib/components/Progress/Progress.types.d.ts +18 -6
- package/lib/components/Progress/Progress.types.d.ts.map +1 -1
- package/lib/components/Progress/Progress.types.js.map +1 -1
- package/lib/components/Progress/index.d.ts +1 -1
- package/lib/components/Progress/index.d.ts.map +1 -1
- package/lib/components/Progress/index.js.map +1 -1
- package/lib/components/QRCode/QRCode.d.ts +14 -0
- package/lib/components/QRCode/QRCode.d.ts.map +1 -0
- package/lib/components/QRCode/QRCode.js +39 -0
- package/lib/components/QRCode/QRCode.js.map +1 -0
- package/lib/components/QRCode/index.d.ts +3 -0
- package/lib/components/QRCode/index.d.ts.map +1 -0
- package/lib/components/QRCode/index.js +2 -0
- package/lib/components/QRCode/index.js.map +1 -0
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.js +27 -7
- package/lib/components/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.js +6 -0
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Toaster/Context.d.ts +1 -0
- package/lib/components/Toaster/Context.d.ts.map +1 -1
- package/lib/components/Toaster/Context.js.map +1 -1
- package/lib/components/Toaster/Toaster.d.ts.map +1 -1
- package/lib/components/Toaster/Toaster.js +5 -1
- package/lib/components/Toaster/Toaster.js.map +1 -1
- package/lib/components/Tree/StandardTree.d.ts.map +1 -1
- package/lib/components/Tree/StandardTree.js +70 -27
- package/lib/components/Tree/StandardTree.js.map +1 -1
- package/lib/components/Tree/StandardTree.styles.d.ts +1 -0
- package/lib/components/Tree/StandardTree.styles.d.ts.map +1 -1
- package/lib/components/Tree/StandardTree.styles.js +32 -18
- package/lib/components/Tree/StandardTree.styles.js.map +1 -1
- package/lib/components/Tree/StandardTree.types.d.ts +27 -0
- package/lib/components/Tree/StandardTree.types.d.ts.map +1 -1
- package/lib/components/Tree/StandardTree.types.js.map +1 -1
- package/lib/components/Tree/helpers.d.ts +11 -9
- package/lib/components/Tree/helpers.d.ts.map +1 -1
- package/lib/components/Tree/helpers.js +25 -5
- package/lib/components/Tree/helpers.js.map +1 -1
- package/lib/components/Tree/index.d.ts +1 -1
- package/lib/components/Tree/index.d.ts.map +1 -1
- package/lib/components/Tree/index.js.map +1 -1
- package/lib/components/URL/URLDisplay.d.ts +2 -2
- package/lib/components/URL/URLDisplay.d.ts.map +1 -1
- package/lib/components/URL/URLDisplay.js +8 -1
- package/lib/components/URL/URLDisplay.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useArrows.d.ts.map +1 -1
- package/lib/hooks/useArrows.js +3 -3
- package/lib/hooks/useArrows.js.map +1 -1
- package/lib/hooks/useBreakpoint.d.ts.map +1 -1
- package/lib/hooks/useBreakpoint.js +3 -2
- package/lib/hooks/useBreakpoint.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +43 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/hooks/useLiveLog.d.ts +8 -0
- package/lib/hooks/useLiveLog.d.ts.map +1 -0
- package/lib/hooks/useLiveLog.js +16 -0
- package/lib/hooks/useLiveLog.js.map +1 -0
- package/lib/i18n/default.d.ts +43 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +50 -6
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +43 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/lib/register-contexts.js +2 -0
- package/lib/register-contexts.js.map +1 -1
- package/lib/theme/theme.d.ts +12 -0
- package/lib/theme/theme.d.ts.map +1 -1
- package/lib/theme/themeDefinition.json +8 -0
- package/lib/theme/themes/darkTheme.json +3 -1
- package/lib/types/types.d.ts +3 -0
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js.map +1 -1
- package/package.json +3 -1
- package/lib/components/ListToolbar/QueryOptionPopover.d.ts +0 -12
- package/lib/components/ListToolbar/QueryOptionPopover.d.ts.map +0 -1
- package/lib/components/ListToolbar/QueryOptionPopover.js +0 -36
- package/lib/components/ListToolbar/QueryOptionPopover.js.map +0 -1
package/lib/index.js.map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I,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nimport './init';\n\nexport { default as Actions } from './components/Actions';\nexport * from './components/Actions';\nexport { default as AdditionalInfo } from './components/AdditionalInfo';\nexport * from './components/AdditionalInfo';\nexport { default as AppShell } from './components/AppShell';\nexport * from './components/AppShell';\nexport { default as Avatar } from './components/Avatar';\nexport * from './components/Avatar';\nexport { default as Backdrop } from './components/Backdrop';\nexport * from './components/Backdrop';\nexport * from './components/Badges';\nexport { default as Banner } from './components/Banner';\nexport * from './components/Banner';\nexport * from './components/Boolean';\nexport { default as Breadcrumbs } from './components/Breadcrumbs';\nexport * from './components/Breadcrumbs';\nexport { default as Button } from './components/Button';\nexport * from './components/Button';\nexport { default as Card } from './components/Card';\nexport * from './components/Card';\nexport { default as Checkbox } from './components/Checkbox';\nexport * from './components/Checkbox';\nexport { default as CheckboxGroup } from './components/CheckboxGroup';\nexport { default as ColorPicker } from './components/ColorPicker';\nexport * from './components/ColorPicker';\nexport { default as ComboBox } from './components/ComboBox';\nexport * from './components/ComboBox';\nexport * from './components/CompositeInput';\nexport { default as Configuration } from './components/Configuration';\nexport * from './components/Configuration';\nexport * from './components/CreditCard';\nexport * from './components/Currency';\nexport * from './components/DateTime';\nexport * from './components/Dialog';\nexport { default as Drawer } from './components/Drawer';\nexport * from './components/Drawer';\nexport * from './components/Email';\nexport { default as EmojiPicker } from './components/EmojiPicker';\nexport * from './components/EmojiPicker';\nexport { default as EmptyState } from './components/EmptyState';\nexport * from './components/EmptyState';\nexport { default as ErrorState } from './components/ErrorState';\nexport * from './components/ErrorState';\nexport { default as ExpandCollapse } from './components/ExpandCollapse';\nexport * from './components/ExpandCollapse';\nexport { default as FieldGroup } from './components/FieldGroup';\nexport * from './components/FieldGroup';\nexport { default as FieldValueList } from './components/FieldValueList';\nexport * from './components/FieldValueList';\nexport * from './components/File';\nexport { default as Flex } from './components/Flex';\nexport * from './components/Flex';\nexport { default as Form } from './components/Form';\nexport * from './components/Form';\nexport { default as FormControl } from './components/FormControl';\nexport * from './components/FormControl';\nexport { default as FormField } from './components/FormField';\nexport * from './components/FormField';\nexport { default as Grid } from './components/Grid';\nexport * from './components/Grid';\nexport { default as HTML } from './components/HTML';\nexport * from './components/HTML';\nexport { default as Icon } from './components/Icon';\nexport * from './components/Icon';\nexport { default as IconPicker } from './components/IconPicker';\nexport * from './components/IconPicker';\nexport { default as Image } from './components/Image';\nexport * from './components/Image';\nexport { default as Input } from './components/Input';\nexport * from './components/Input';\nexport { default as Label } from './components/Label';\nexport * from './components/Label';\nexport { default as Lightbox } from './components/Lightbox';\nexport * from './components/Lightbox';\nexport { default as Link } from './components/Link';\nexport * from './components/Link';\nexport * from './components/List';\nexport { default as ListToolbar } from './components/ListToolbar';\nexport * from './components/ListToolbar';\nexport * from './components/Location';\nexport { default as Mark } from './components/Mark';\nexport * from './components/Mark';\nexport { default as Menu } from './components/Menu';\nexport * from './components/Menu';\nexport { default as MenuButton } from './components/MenuButton';\nexport * from './components/MenuButton';\nexport { default as MetaList } from './components/MetaList';\nexport * from './components/MetaList';\nexport { default as Modal } from './components/Modal';\nexport * from './components/Modal';\nexport { default as MultiStepForm } from './components/MultiStepForm';\nexport * from './components/Number';\nexport * from './components/PageTemplates';\nexport { default as Pagination } from './components/Pagination';\nexport * from './components/Pagination';\nexport * from './components/Paragraph';\nexport * from './components/Phone';\nexport { default as Popover } from './components/Popover';\nexport * from './components/Popover';\nexport { default as Progress } from './components/Progress';\nexport * from './components/Progress';\nexport { default as RadioButton } from './components/RadioButton';\nexport * from './components/RadioButton';\nexport { default as RadioButtonGroup } from './components/RadioButtonGroup';\nexport { default as RadioCheck } from './components/RadioCheck';\nexport * from './components/RadioCheck';\nexport { default as RadioCheckGroup } from './components/RadioCheckGroup';\nexport * from './components/RadioCheckGroup';\nexport { default as Rating } from './components/Rating';\nexport * from './components/Rating';\nexport { default as SearchInput } from './components/SearchInput';\nexport * from './components/SearchInput';\nexport { default as Select } from './components/Select';\nexport * from './components/Select';\nexport { default as Sentiment } from './components/Sentiment';\nexport * from './components/Sentiment';\nexport * from './components/Skeleton';\nexport { default as SkipLinks } from './components/SkipLinks';\nexport * from './components/SkipLinks';\nexport { default as Slider } from './components/Slider';\nexport * from './components/Slider';\nexport { default as SummaryItem } from './components/SummaryItem';\nexport * from './components/SummaryItem';\nexport { default as SummaryList } from './components/SummaryList';\nexport * from './components/SummaryList';\nexport { default as Switch } from './components/Switch';\nexport * from './components/Switch';\nexport { default as Table } from './components/Table';\nexport * from './components/Table';\nexport { default as Tabs } from './components/Tabs';\nexport * from './components/Tabs';\nexport { default as Text } from './components/Text';\nexport * from './components/Text';\nexport { default as TextArea } from './components/TextArea';\nexport * from './components/TextArea';\nexport { default as Toaster } from './components/Toaster';\nexport * from './components/Toaster';\nexport { default as Tooltip } from './components/Tooltip';\nexport * from './components/Tooltip';\nexport { default as Tree } from './components/Tree';\nexport * from './components/Tree';\nexport * from './components/URL';\nexport { default as VisuallyHiddenText } from './components/VisuallyHiddenText';\nexport * from './hooks';\nexport * from './i18n';\nexport * from './styles';\nexport * from './theme';\nexport * from './types';\nexport * from './utils';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,M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,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nimport './init';\n\nexport { default as Actions } from './components/Actions';\nexport * from './components/Actions';\nexport { default as AdditionalInfo } from './components/AdditionalInfo';\nexport * from './components/AdditionalInfo';\nexport { default as AppShell } from './components/AppShell';\nexport * from './components/AppShell';\nexport { default as Avatar } from './components/Avatar';\nexport * from './components/Avatar';\nexport { default as Backdrop } from './components/Backdrop';\nexport * from './components/Backdrop';\nexport * from './components/Badges';\nexport { default as Banner } from './components/Banner';\nexport * from './components/Banner';\nexport * from './components/Boolean';\nexport { default as Breadcrumbs } from './components/Breadcrumbs';\nexport * from './components/Breadcrumbs';\nexport { default as Button } from './components/Button';\nexport * from './components/Button';\nexport { default as Card } from './components/Card';\nexport * from './components/Card';\nexport { default as Checkbox } from './components/Checkbox';\nexport * from './components/Checkbox';\nexport { default as CheckboxGroup } from './components/CheckboxGroup';\nexport { default as ColorPicker } from './components/ColorPicker';\nexport * from './components/ColorPicker';\nexport { default as ComboBox } from './components/ComboBox';\nexport * from './components/ComboBox';\nexport * from './components/CompositeInput';\nexport { default as Configuration } from './components/Configuration';\nexport * from './components/Configuration';\nexport * from './components/CreditCard';\nexport * from './components/Currency';\nexport * from './components/DateTime';\nexport * from './components/Dialog';\nexport { default as Drawer } from './components/Drawer';\nexport * from './components/Drawer';\nexport * from './components/Email';\nexport { default as EmojiPicker } from './components/EmojiPicker';\nexport * from './components/EmojiPicker';\nexport { default as EmptyState } from './components/EmptyState';\nexport * from './components/EmptyState';\nexport { default as ErrorState } from './components/ErrorState';\nexport * from './components/ErrorState';\nexport { default as ExpandCollapse } from './components/ExpandCollapse';\nexport * from './components/ExpandCollapse';\nexport { default as FieldGroup } from './components/FieldGroup';\nexport * from './components/FieldGroup';\nexport { default as FieldValueList } from './components/FieldValueList';\nexport * from './components/FieldValueList';\nexport * from './components/File';\nexport { default as Flex } from './components/Flex';\nexport * from './components/Flex';\nexport { default as Form } from './components/Form';\nexport * from './components/Form';\nexport { default as FormControl } from './components/FormControl';\nexport * from './components/FormControl';\nexport { default as FormField } from './components/FormField';\nexport * from './components/FormField';\nexport { default as Grid } from './components/Grid';\nexport * from './components/Grid';\nexport { default as HTML } from './components/HTML';\nexport * from './components/HTML';\nexport { default as Icon } from './components/Icon';\nexport * from './components/Icon';\nexport { default as IconPicker } from './components/IconPicker';\nexport * from './components/IconPicker';\nexport { default as Image } from './components/Image';\nexport * from './components/Image';\nexport { default as Input } from './components/Input';\nexport * from './components/Input';\nexport { default as Label } from './components/Label';\nexport * from './components/Label';\nexport { default as Lightbox } from './components/Lightbox';\nexport * from './components/Lightbox';\nexport { default as Link } from './components/Link';\nexport * from './components/Link';\nexport * from './components/List';\nexport { default as ListToolbar } from './components/ListToolbar';\nexport * from './components/ListToolbar';\nexport { default as LiveLog } from './components/LiveLog';\nexport * from './components/LiveLog';\nexport * from './components/Location';\nexport { default as Mark } from './components/Mark';\nexport * from './components/Mark';\nexport { default as Menu } from './components/Menu';\nexport * from './components/Menu';\nexport { default as MenuButton } from './components/MenuButton';\nexport * from './components/MenuButton';\nexport { default as MetaList } from './components/MetaList';\nexport * from './components/MetaList';\nexport { default as Modal } from './components/Modal';\nexport * from './components/Modal';\nexport { default as MultiStepForm } from './components/MultiStepForm';\nexport * from './components/Number';\nexport * from './components/PageTemplates';\nexport { default as Pagination } from './components/Pagination';\nexport * from './components/Pagination';\nexport * from './components/Paragraph';\nexport * from './components/Phone';\nexport { default as Popover } from './components/Popover';\nexport * from './components/Popover';\nexport { default as Progress } from './components/Progress';\nexport * from './components/Progress';\nexport { default as QRCode } from './components/QRCode';\nexport * from './components/QRCode';\nexport { default as RadioButton } from './components/RadioButton';\nexport * from './components/RadioButton';\nexport { default as RadioButtonGroup } from './components/RadioButtonGroup';\nexport { default as RadioCheck } from './components/RadioCheck';\nexport * from './components/RadioCheck';\nexport { default as RadioCheckGroup } from './components/RadioCheckGroup';\nexport * from './components/RadioCheckGroup';\nexport { default as Rating } from './components/Rating';\nexport * from './components/Rating';\nexport { default as SearchInput } from './components/SearchInput';\nexport * from './components/SearchInput';\nexport { default as Select } from './components/Select';\nexport * from './components/Select';\nexport { default as Sentiment } from './components/Sentiment';\nexport * from './components/Sentiment';\nexport * from './components/Skeleton';\nexport { default as SkipLinks } from './components/SkipLinks';\nexport * from './components/SkipLinks';\nexport { default as Slider } from './components/Slider';\nexport * from './components/Slider';\nexport { default as SummaryItem } from './components/SummaryItem';\nexport * from './components/SummaryItem';\nexport { default as SummaryList } from './components/SummaryList';\nexport * from './components/SummaryList';\nexport { default as Switch } from './components/Switch';\nexport * from './components/Switch';\nexport { default as Table } from './components/Table';\nexport * from './components/Table';\nexport { default as Tabs } from './components/Tabs';\nexport * from './components/Tabs';\nexport { default as Text } from './components/Text';\nexport * from './components/Text';\nexport { default as TextArea } from './components/TextArea';\nexport * from './components/TextArea';\nexport { default as Toaster } from './components/Toaster';\nexport * from './components/Toaster';\nexport { default as Tooltip } from './components/Tooltip';\nexport * from './components/Tooltip';\nexport { default as Tree } from './components/Tree';\nexport * from './components/Tree';\nexport * from './components/URL';\nexport { default as VisuallyHiddenText } from './components/VisuallyHiddenText';\nexport * from './hooks';\nexport * from './i18n';\nexport * from './styles';\nexport * from './theme';\nexport * from './types';\nexport * from './utils';\n"]}
|
package/lib/register-contexts.js
CHANGED
|
@@ -2,9 +2,11 @@ import './init';
|
|
|
2
2
|
import { ConfigurationContext } from './components/Configuration/Configuration';
|
|
3
3
|
import { ModalManagerContext } from './components/Modal/Contexts';
|
|
4
4
|
import { ToasterContext } from './components/Toaster/Context';
|
|
5
|
+
import { LiveLogContext } from './components/LiveLog/Context';
|
|
5
6
|
if (window) {
|
|
6
7
|
window.cosmos.configurationContext = ConfigurationContext;
|
|
7
8
|
window.cosmos.modalManagerContext = ModalManagerContext;
|
|
8
9
|
window.cosmos.toasterContext = ToasterContext;
|
|
10
|
+
window.cosmos.liveLogContext = LiveLogContext;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=register-contexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-contexts.js","sourceRoot":"","sources":["../src/register-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,CAAC;AAChB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,IAAI,MAAM,EAAE;IACV,MAAM,CAAC,MAAM,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IAC1D,MAAM,CAAC,MAAM,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;CAC/C","sourcesContent":["import './init';\nimport { ConfigurationContext } from './components/Configuration/Configuration';\nimport { ModalManagerContext } from './components/Modal/Contexts';\nimport { ToasterContext } from './components/Toaster/Context';\n\nif (window) {\n window.cosmos.configurationContext = ConfigurationContext;\n window.cosmos.modalManagerContext = ModalManagerContext;\n window.cosmos.toasterContext = ToasterContext;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"register-contexts.js","sourceRoot":"","sources":["../src/register-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,CAAC;AAChB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,IAAI,MAAM,EAAE;IACV,MAAM,CAAC,MAAM,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IAC1D,MAAM,CAAC,MAAM,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;IAC9C,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;CAC/C","sourcesContent":["import './init';\nimport { ConfigurationContext } from './components/Configuration/Configuration';\nimport { ModalManagerContext } from './components/Modal/Contexts';\nimport { ToasterContext } from './components/Toaster/Context';\nimport { LiveLogContext } from './components/LiveLog/Context';\n\nif (window) {\n window.cosmos.configurationContext = ConfigurationContext;\n window.cosmos.modalManagerContext = ModalManagerContext;\n window.cosmos.toasterContext = ToasterContext;\n window.cosmos.liveLogContext = LiveLogContext;\n}\n"]}
|
package/lib/theme/theme.d.ts
CHANGED
|
@@ -411,6 +411,14 @@ export declare const BaseThemeMachine: ThemeMachine<{
|
|
|
411
411
|
$type: string;
|
|
412
412
|
$value: string;
|
|
413
413
|
};
|
|
414
|
+
"focus-group": {
|
|
415
|
+
$type: string;
|
|
416
|
+
$value: string;
|
|
417
|
+
};
|
|
418
|
+
"focus-group-inset": {
|
|
419
|
+
$type: string;
|
|
420
|
+
$value: string;
|
|
421
|
+
};
|
|
414
422
|
"focus-inset": {
|
|
415
423
|
$type: string;
|
|
416
424
|
$value: string;
|
|
@@ -1596,6 +1604,8 @@ export declare const WorkTheme: {
|
|
|
1596
1604
|
readonly focus: string;
|
|
1597
1605
|
readonly "high-filter": string;
|
|
1598
1606
|
readonly "low-filter": string;
|
|
1607
|
+
readonly "focus-group": string;
|
|
1608
|
+
readonly "focus-group-inset": string;
|
|
1599
1609
|
readonly "focus-inset": string;
|
|
1600
1610
|
readonly "focus-solid": string;
|
|
1601
1611
|
readonly "focus-filter": string;
|
|
@@ -2162,6 +2172,8 @@ export declare const defaultThemeProp: Readonly<{
|
|
|
2162
2172
|
readonly focus: string;
|
|
2163
2173
|
readonly "high-filter": string;
|
|
2164
2174
|
readonly "low-filter": string;
|
|
2175
|
+
readonly "focus-group": string;
|
|
2176
|
+
readonly "focus-group-inset": string;
|
|
2165
2177
|
readonly "focus-inset": string;
|
|
2166
2178
|
readonly "focus-solid": string;
|
|
2167
2179
|
readonly "focus-filter": string;
|
package/lib/theme/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,YAAY,EAAE,aAAa,EAAkB,MAAM,gBAAgB,CAAC;AAC3F,OAAO,sBAAsB,MAAM,wBAAwB,CAAC;AAE5D,oBAAY,sBAAsB,GAAG,OAAO,sBAAsB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,IAAI,eAAe,EAAE,CAAC;AAErD,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,YAAY,EAAE,aAAa,EAAkB,MAAM,gBAAgB,CAAC;AAC3F,OAAO,sBAAsB,MAAM,wBAAwB,CAAC;AAE5D,oBAAY,sBAAsB,GAAG,OAAO,sBAAsB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,IAAI,eAAe,EAAE,CAAC;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC;AAEpE,oBAAY,oBAAoB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGhF,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAiB,YAAa,SAAQ,YAAY,CAAC,OAAO,sBAAsB,CAAC;KAAG;CACrF"}
|
|
@@ -281,6 +281,14 @@
|
|
|
281
281
|
"$type": "literal",
|
|
282
282
|
"$value": "0 0 0 0.11rem #fff, 0 0 0 0.18rem #076bc9, 0 0 0 0.3rem #076bc91a"
|
|
283
283
|
},
|
|
284
|
+
"focus-group": {
|
|
285
|
+
"$type": "literal",
|
|
286
|
+
"$value": "0 0 0 0.125rem #076bc966"
|
|
287
|
+
},
|
|
288
|
+
"focus-group-inset": {
|
|
289
|
+
"$type": "literal",
|
|
290
|
+
"$value": "inset 0 0 0 0.125rem #076bc966"
|
|
291
|
+
},
|
|
284
292
|
"focus-inset": {
|
|
285
293
|
"$type": "literal",
|
|
286
294
|
"$value": "inset 0 0 0 0.11rem #fff, inset 0 0 0 0.18rem #076bc9, inset 0 0 0 0.3rem #076bc91a"
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"shadow": {
|
|
23
23
|
"focus": "0 0 0 0.11rem #fff, 0 0 0 0.18rem #71c1ff, 0 0 0 0.3rem #71c1ff1a",
|
|
24
|
-
"focus-inset": "inset 0 0 0 0.11rem #fff, inset 0 0 0 0.18rem #71c1ff, inset 0 0 0 0.3rem #71c1ff1a"
|
|
24
|
+
"focus-inset": "inset 0 0 0 0.11rem #fff, inset 0 0 0 0.18rem #71c1ff, inset 0 0 0 0.3rem #71c1ff1a",
|
|
25
|
+
"focus-group": "0 0 0 0.125rem #71c1ff99",
|
|
26
|
+
"focus-group-inset": "inset 0 0 0 0.125rem #71c1ff99"
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
"components": {
|
package/lib/types/types.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ export declare type DeepPartial<T> = T extends (infer U)[] ? DeepPartial<U>[] :
|
|
|
44
44
|
export declare type DeepRequired<T> = T extends (infer U)[] ? DeepRequired<U>[] : T extends Function ? T : T extends object ? {
|
|
45
45
|
[K in keyof T]-?: DeepRequired<T[K]>;
|
|
46
46
|
} : T;
|
|
47
|
+
export declare type Mutable<T> = {
|
|
48
|
+
-readonly [P in keyof T]: T[P];
|
|
49
|
+
};
|
|
47
50
|
export declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
48
51
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
49
52
|
}[Keys];
|
package/lib/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;I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
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ElementType, MouseEvent } from 'react';\n\nexport interface BaseProps {\n /** Additional CSS classes. */\n className?: string;\n}\n\nexport interface ForwardProps {\n [prop: string]: unknown;\n}\n\nexport interface NoChildrenProp {\n children?: never;\n}\n\nexport type HTMLTag = keyof JSX.IntrinsicElements;\nexport interface AsProp {\n /** HTML tag or React Component to render the component as. */\n as?: ElementType;\n /** HTML tag or React Component to finally render the component as. */\n forwardedAs?: ElementType;\n}\n\nexport interface Action extends ForwardProps {\n /** A string to uniquely identify this Action within the onClick handler. */\n id: string;\n /** The text content of the Action. */\n text: string;\n /** The name of the Cosmos Icon to render, if any. */\n icon?: string;\n /** A location to navigate to. Passing an href will render a Link styled as a Button. */\n href?: string;\n /** Called when the Action is clicked. */\n onClick?: (\n id: string,\n e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>,\n /**\n * If the action was rendered as an item in a menu the associated menuButton element will be provided.\n * Often necessary for focus purposes.\n */\n menuButton?: HTMLButtonElement\n ) => void;\n /** Determines if the Action will be disabled. */\n disabled?: boolean;\n}\n\n// https://github.com/microsoft/TypeScript/issues/30825\nexport type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type PartialByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Partial<Pick<T, K>>;\nexport type RequiredByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Required<Pick<T, K>>;\n\nexport type DeepPartial<T> = T extends (infer U)[]\n ? DeepPartial<U>[]\n : T extends object\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : T;\n\nexport type DeepRequired<T> = T extends (infer U)[]\n ? DeepRequired<U>[]\n : T extends Function\n ? T\n : T extends object\n ? { [K in keyof T]-?: DeepRequired<T[K]> }\n : T;\n\n// https://stackoverflow.com/a/49725198\nexport type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> &\n {\n [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;\n }[Keys];\n\n// Lowers type inference precedence without changing the type.\n// https://github.com/Microsoft/TypeScript/issues/14829#issue-216577598\nexport type DeferInfer<T> = T & { [K in keyof T]: T[K] };\n\n/* eslint-disable @typescript-eslint/ban-types */\nexport type PropsWithDefaults<\n Props extends object = {},\n Defaults extends keyof Props = never\n> = OmitStrict<Props, Defaults> & Required<Pick<Props, Defaults>>;\n/* eslint-enable @typescript-eslint/ban-types */\n\nexport type PrettyPrint<T> = T extends object\n ? {\n [K in keyof T]: T[K];\n }\n : T;\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ElementType, MouseEvent } from 'react';\n\nexport interface BaseProps {\n /** Additional CSS classes. */\n className?: string;\n}\n\nexport interface ForwardProps {\n [prop: string]: unknown;\n}\n\nexport interface NoChildrenProp {\n children?: never;\n}\n\nexport type HTMLTag = keyof JSX.IntrinsicElements;\nexport interface AsProp {\n /** HTML tag or React Component to render the component as. */\n as?: ElementType;\n /** HTML tag or React Component to finally render the component as. */\n forwardedAs?: ElementType;\n}\n\nexport interface Action extends ForwardProps {\n /** A string to uniquely identify this Action within the onClick handler. */\n id: string;\n /** The text content of the Action. */\n text: string;\n /** The name of the Cosmos Icon to render, if any. */\n icon?: string;\n /** A location to navigate to. Passing an href will render a Link styled as a Button. */\n href?: string;\n /** Called when the Action is clicked. */\n onClick?: (\n id: string,\n e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>,\n /**\n * If the action was rendered as an item in a menu the associated menuButton element will be provided.\n * Often necessary for focus purposes.\n */\n menuButton?: HTMLButtonElement\n ) => void;\n /** Determines if the Action will be disabled. */\n disabled?: boolean;\n}\n\n// https://github.com/microsoft/TypeScript/issues/30825\nexport type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type PartialByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Partial<Pick<T, K>>;\nexport type RequiredByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Required<Pick<T, K>>;\n\nexport type DeepPartial<T> = T extends (infer U)[]\n ? DeepPartial<U>[]\n : T extends object\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : T;\n\nexport type DeepRequired<T> = T extends (infer U)[]\n ? DeepRequired<U>[]\n : T extends Function\n ? T\n : T extends object\n ? { [K in keyof T]-?: DeepRequired<T[K]> }\n : T;\n\nexport type Mutable<T> = {\n -readonly [P in keyof T]: T[P];\n};\n\n// https://stackoverflow.com/a/49725198\nexport type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> &\n {\n [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;\n }[Keys];\n\n// Lowers type inference precedence without changing the type.\n// https://github.com/Microsoft/TypeScript/issues/14829#issue-216577598\nexport type DeferInfer<T> = T & { [K in keyof T]: T[K] };\n\n/* eslint-disable @typescript-eslint/ban-types */\nexport type PropsWithDefaults<\n Props extends object = {},\n Defaults extends keyof Props = never\n> = OmitStrict<Props, Defaults> & Required<Pick<Props, Defaults>>;\n/* eslint-enable @typescript-eslint/ban-types */\n\nexport type PrettyPrint<T> = T extends object\n ? {\n [K in keyof T]: T[K];\n }\n : T;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-core",
|
|
3
|
-
"version": "4.0.0-dev.
|
|
3
|
+
"version": "4.0.0-dev.8.0",
|
|
4
4
|
"description": "Cosmos is a visual design system and UI component collection. Its goal is to empower application developers in their pursuit to create engaging and rewarding user experiences.",
|
|
5
5
|
"author": "Pegasystems",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@types/emoji-mart": "^3.0.4",
|
|
31
31
|
"@types/emoji-regex": "^8.0.0",
|
|
32
32
|
"@types/google.maps": "^3.49.2",
|
|
33
|
+
"@types/qrcode": "^1.5.0",
|
|
33
34
|
"@types/react": "^16.14.24 || ^17.0.38",
|
|
34
35
|
"@types/react-color": "^3.0.4",
|
|
35
36
|
"@types/react-dom": "^16.9.14 || ^17.0.11",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"emoji-regex": "^9.2.0",
|
|
42
43
|
"libphonenumber-js": "^1.9.9",
|
|
43
44
|
"polished": "^4.1.0",
|
|
45
|
+
"qrcode": "^1.5.1",
|
|
44
46
|
"react": "^16.14.0 || ^17.0.0",
|
|
45
47
|
"react-color": "^2.19.3",
|
|
46
48
|
"react-dom": "^16.14.0 || ^17.0.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { ForwardProps, OmitStrict } from '../../types';
|
|
3
|
-
import { PopoverProps } from '../Popover';
|
|
4
|
-
import { QueryOptionDialogProps } from './ListToolbar.types';
|
|
5
|
-
interface ListToolbarPopoverProps extends OmitStrict<PopoverProps, 'target'>, Pick<QueryOptionDialogProps, 'onCancel' | 'onSubmit'> {
|
|
6
|
-
heading: string;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
target?: HTMLButtonElement | null;
|
|
9
|
-
}
|
|
10
|
-
declare const QueryOptionPopover: FunctionComponent<ListToolbarPopoverProps & ForwardProps>;
|
|
11
|
-
export default QueryOptionPopover;
|
|
12
|
-
//# sourceMappingURL=QueryOptionPopover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryOptionPopover.d.ts","sourceRoot":"","sources":["../../../src/components/ListToolbar/QueryOptionPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA+B,SAAS,EAAa,MAAM,OAAO,CAAC;AAW7F,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIvD,OAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,UAAU,uBACR,SAAQ,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,EACxC,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,UAAU,CAAC;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACnC;AAgBD,QAAA,MAAM,kBAAkB,EAAE,iBAAiB,CAAC,uBAAuB,GAAG,YAAY,CAqDjF,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useEffect } from 'react';
|
|
3
|
-
import styled, { css } from 'styled-components';
|
|
4
|
-
import { useConsolidatedRef, useEscape, useFocusTrap, useI18n, useOuterEvent, useUID } from '../../hooks';
|
|
5
|
-
import { getFocusables } from '../../utils';
|
|
6
|
-
import Button from '../Button';
|
|
7
|
-
import Flex from '../Flex';
|
|
8
|
-
import Popover from '../Popover';
|
|
9
|
-
import Text from '../Text';
|
|
10
|
-
import { defaultThemeProp } from '../../theme';
|
|
11
|
-
const StyledQueryListPopover = styled(Popover)(({ theme: { base: { 'content-width': contentWidth } } }) => {
|
|
12
|
-
return css `
|
|
13
|
-
min-width: ${contentWidth.sm};
|
|
14
|
-
`;
|
|
15
|
-
});
|
|
16
|
-
StyledQueryListPopover.defaultProps = defaultThemeProp;
|
|
17
|
-
const QueryOptionPopover = forwardRef(({ target, heading, children, onCancel, onSubmit }, ref) => {
|
|
18
|
-
const t = useI18n();
|
|
19
|
-
const headingId = useUID();
|
|
20
|
-
const popoverRef = useConsolidatedRef(ref);
|
|
21
|
-
useEscape(onCancel, popoverRef);
|
|
22
|
-
useFocusTrap(popoverRef);
|
|
23
|
-
useOuterEvent('mousedown', [popoverRef], onCancel);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
getFocusables(popoverRef)[0]?.focus();
|
|
26
|
-
}, [popoverRef]);
|
|
27
|
-
return (_jsx(StyledQueryListPopover, { target: target, ref: popoverRef, role: 'dialog', "aria-labelledby": headingId, arrow: true, children: _jsxs(Flex, { container: { direction: 'column', gap: 2, pad: 2 }, children: [_jsx(Text, { variant: 'h3', id: headingId, children: heading }), children, _jsxs(Flex, { container: { justify: 'between' }, children: [_jsx(Button, { onClick: () => {
|
|
28
|
-
onCancel();
|
|
29
|
-
target?.focus();
|
|
30
|
-
}, children: t('cancel') }), _jsx(Button, { variant: 'primary', onClick: () => {
|
|
31
|
-
onSubmit();
|
|
32
|
-
target?.focus();
|
|
33
|
-
}, children: t('submit') })] })] }) }));
|
|
34
|
-
});
|
|
35
|
-
export default QueryOptionPopover;
|
|
36
|
-
//# sourceMappingURL=QueryOptionPopover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryOptionPopover.js","sourceRoot":"","sources":["../../../src/components/ListToolbar/QueryOptionPopover.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAsC,UAAU,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,OAAO,EACP,aAAa,EACb,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,OAAyB,MAAM,YAAY,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAA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MAAC,IAAI,IAAC,SAAS,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,aACrC,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;gCACZ,QAAQ,EAAE,CAAC;gCACX,MAAM,EAAE,KAAK,EAAE,CAAC;4BAClB,CAAC,YAEA,CAAC,CAAC,QAAQ,CAAC,GACL,EACT,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,GAAG,EAAE;gCACZ,QAAQ,EAAE,CAAC;gCACX,MAAM,EAAE,KAAK,EAAE,CAAC;4BAClB,CAAC,YAEA,CAAC,CAAC,QAAQ,CAAC,GACL,IACJ,IACF,GACgB,CAC1B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { FunctionComponent, PropsWithoutRef, forwardRef, ReactNode, useEffect } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n useConsolidatedRef,\n useEscape,\n useFocusTrap,\n useI18n,\n useOuterEvent,\n useUID\n} from '../../hooks';\nimport { ForwardProps, OmitStrict } from '../../types';\nimport { getFocusables } from '../../utils';\nimport Button from '../Button';\nimport Flex from '../Flex';\nimport Popover, { PopoverProps } from '../Popover';\nimport Text from '../Text';\nimport { defaultThemeProp } from '../../theme';\n\nimport { QueryOptionDialogProps } from './ListToolbar.types';\n\ninterface ListToolbarPopoverProps\n extends OmitStrict<PopoverProps, 'target'>,\n Pick<QueryOptionDialogProps, 'onCancel' | 'onSubmit'> {\n heading: string;\n children: ReactNode;\n target?: HTMLButtonElement | null;\n}\n\nconst StyledQueryListPopover = styled(Popover)(\n ({\n theme: {\n base: { 'content-width': contentWidth }\n }\n }) => {\n return css`\n min-width: ${contentWidth.sm};\n `;\n }\n);\n\nStyledQueryListPopover.defaultProps = defaultThemeProp;\n\nconst QueryOptionPopover: FunctionComponent<ListToolbarPopoverProps & ForwardProps> = forwardRef(\n (\n { target, heading, children, onCancel, onSubmit }: PropsWithoutRef<ListToolbarPopoverProps>,\n ref: ListToolbarPopoverProps['ref']\n ) => {\n const t = useI18n();\n const headingId = useUID();\n const popoverRef = useConsolidatedRef(ref);\n\n useEscape(onCancel, popoverRef);\n useFocusTrap(popoverRef);\n useOuterEvent('mousedown', [popoverRef], onCancel);\n\n useEffect(() => {\n getFocusables(popoverRef)[0]?.focus();\n }, [popoverRef]);\n\n return (\n <StyledQueryListPopover\n target={target}\n ref={popoverRef}\n role='dialog'\n aria-labelledby={headingId}\n arrow\n >\n <Flex container={{ direction: 'column', gap: 2, pad: 2 }}>\n <Text variant='h3' id={headingId}>\n {heading}\n </Text>\n {children}\n <Flex container={{ justify: 'between' }}>\n <Button\n onClick={() => {\n onCancel();\n target?.focus();\n }}\n >\n {t('cancel')}\n </Button>\n <Button\n variant='primary'\n onClick={() => {\n onSubmit();\n target?.focus();\n }}\n >\n {t('submit')}\n </Button>\n </Flex>\n </Flex>\n </StyledQueryListPopover>\n );\n }\n);\n\nexport default QueryOptionPopover;\n"]}
|