@pega/cosmos-react-core 3.0.0-dev.12.0 → 3.0.0-dev.15.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/AppShell/AppHeader.d.ts.map +1 -1
- package/lib/components/AppShell/AppHeader.js +13 -3
- package/lib/components/AppShell/AppHeader.js.map +1 -1
- package/lib/components/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.js +8 -4
- package/lib/components/AppShell/AppShell.js.map +1 -1
- package/lib/components/AppShell/AppShell.styles.d.ts +1 -0
- package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.styles.js +62 -77
- package/lib/components/AppShell/AppShell.styles.js.map +1 -1
- package/lib/components/AppShell/AppShell.types.d.ts +3 -0
- package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.types.js.map +1 -1
- package/lib/components/AppShell/AppShellContext.d.ts +3 -1
- package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
- package/lib/components/AppShell/AppShellContext.js +3 -1
- package/lib/components/AppShell/AppShellContext.js.map +1 -1
- package/lib/components/Banner/Banner.d.ts.map +1 -1
- package/lib/components/Banner/Banner.js +6 -2
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
- package/lib/components/Boolean/BooleanDisplay.js +4 -12
- package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
- package/lib/components/CompositeInput/CompositeInput.d.ts +5 -0
- package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -0
- package/lib/components/CompositeInput/CompositeInput.js +59 -0
- package/lib/components/CompositeInput/CompositeInput.js.map +1 -0
- package/lib/components/CompositeInput/CompositeInput.styles.d.ts +5 -0
- package/lib/components/CompositeInput/CompositeInput.styles.d.ts.map +1 -0
- package/lib/components/CompositeInput/CompositeInput.styles.js +54 -0
- package/lib/components/CompositeInput/CompositeInput.styles.js.map +1 -0
- package/lib/components/CompositeInput/CompositeInput.types.d.ts +50 -0
- package/lib/components/CompositeInput/CompositeInput.types.d.ts.map +1 -0
- package/lib/components/CompositeInput/CompositeInput.types.js +2 -0
- package/lib/components/CompositeInput/CompositeInput.types.js.map +1 -0
- package/lib/components/CompositeInput/index.d.ts +3 -0
- package/lib/components/CompositeInput/index.d.ts.map +1 -0
- package/lib/components/CompositeInput/index.js +2 -0
- package/lib/components/CompositeInput/index.js.map +1 -0
- package/lib/components/Configuration/Configuration.d.ts +14 -13
- package/lib/components/Configuration/Configuration.d.ts.map +1 -1
- package/lib/components/Configuration/Configuration.js +24 -14
- package/lib/components/Configuration/Configuration.js.map +1 -1
- package/lib/components/Currency/utils.js +2 -2
- package/lib/components/Currency/utils.js.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.js +3 -2
- package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
- package/lib/components/FieldGroup/FieldGroupList.js +6 -2
- package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
- package/lib/components/Form/Form.d.ts +5 -16
- package/lib/components/Form/Form.d.ts.map +1 -1
- package/lib/components/Form/Form.js +14 -11
- package/lib/components/Form/Form.js.map +1 -1
- package/lib/components/FormField/FormField.d.ts.map +1 -1
- package/lib/components/FormField/FormField.js +6 -2
- package/lib/components/FormField/FormField.js.map +1 -1
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.js +1 -1
- package/lib/components/Icon/Icon.js.map +1 -1
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +1 -2
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/List/CommaSeparatedList.d.ts.map +1 -1
- package/lib/components/List/CommaSeparatedList.js +6 -14
- package/lib/components/List/CommaSeparatedList.js.map +1 -1
- package/lib/components/Modal/Contexts.d.ts.map +1 -1
- package/lib/components/Modal/Contexts.js +2 -3
- package/lib/components/Modal/Contexts.js.map +1 -1
- package/lib/components/Modal/Modal.types.d.ts +2 -6
- package/lib/components/Modal/Modal.types.d.ts.map +1 -1
- package/lib/components/Modal/Modal.types.js +1 -2
- package/lib/components/Modal/Modal.types.js.map +1 -1
- package/lib/components/Modal/ModalManager.d.ts +8 -2
- package/lib/components/Modal/ModalManager.d.ts.map +1 -1
- package/lib/components/Modal/ModalManager.js +13 -10
- package/lib/components/Modal/ModalManager.js.map +1 -1
- package/lib/components/MultiStepForm/FormProgress.d.ts +10 -0
- package/lib/components/MultiStepForm/FormProgress.d.ts.map +1 -0
- package/lib/components/{MultiStep/MultiStep.js → MultiStepForm/FormProgress.js} +8 -22
- package/lib/components/MultiStepForm/FormProgress.js.map +1 -0
- package/lib/components/{MultiStep/MultiStep.styles.d.ts → MultiStepForm/FormProgress.styles.d.ts} +2 -4
- package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -0
- package/lib/components/{MultiStep/MultiStep.styles.js → MultiStepForm/FormProgress.styles.js} +2 -4
- package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -0
- package/lib/components/MultiStepForm/MultiStepForm.d.ts +9 -0
- package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -0
- package/lib/components/MultiStepForm/MultiStepForm.js +50 -0
- package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -0
- package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +49 -0
- package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -0
- package/lib/components/MultiStepForm/MultiStepForm.types.js +2 -0
- package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -0
- package/lib/components/MultiStepForm/index.d.ts +2 -0
- package/lib/components/MultiStepForm/index.d.ts.map +1 -0
- package/lib/components/MultiStepForm/index.js +2 -0
- package/lib/components/MultiStepForm/index.js.map +1 -0
- package/lib/components/Number/NumberDisplay.d.ts +0 -5
- package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
- package/lib/components/Number/NumberDisplay.js +8 -12
- package/lib/components/Number/NumberDisplay.js.map +1 -1
- package/lib/components/Number/NumberInput.d.ts.map +1 -1
- package/lib/components/Number/NumberInput.js +8 -5
- package/lib/components/Number/NumberInput.js.map +1 -1
- package/lib/components/Number/utils.d.ts +1 -4
- package/lib/components/Number/utils.d.ts.map +1 -1
- package/lib/components/Number/utils.js +5 -3
- package/lib/components/Number/utils.js.map +1 -1
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.js +5 -1
- package/lib/components/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/Tabs/Tab.d.ts.map +1 -1
- package/lib/components/Tabs/Tab.js +0 -1
- package/lib/components/Tabs/Tab.js.map +1 -1
- package/lib/components/Toaster/Toaster.d.ts +7 -2
- package/lib/components/Toaster/Toaster.d.ts.map +1 -1
- package/lib/components/Toaster/Toaster.js +7 -7
- package/lib/components/Toaster/Toaster.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +20 -9
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/i18n/default.d.ts +20 -9
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +23 -9
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +40 -18
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/init.d.ts +8 -0
- package/lib/init.d.ts.map +1 -0
- package/lib/init.js +5 -0
- package/lib/init.js.map +1 -0
- package/lib/theme/ThemeMachine.d.ts +11 -3
- package/lib/theme/ThemeMachine.d.ts.map +1 -1
- package/lib/theme/ThemeMachine.js +28 -26
- package/lib/theme/ThemeMachine.js.map +1 -1
- package/package.json +5 -2
- package/lib/components/MultiStep/MultiStep.d.ts +0 -6
- package/lib/components/MultiStep/MultiStep.d.ts.map +0 -1
- package/lib/components/MultiStep/MultiStep.js.map +0 -1
- package/lib/components/MultiStep/MultiStep.styles.d.ts.map +0 -1
- package/lib/components/MultiStep/MultiStep.styles.js.map +0 -1
- package/lib/components/MultiStep/MultiStep.types.d.ts +0 -36
- package/lib/components/MultiStep/MultiStep.types.d.ts.map +0 -1
- package/lib/components/MultiStep/MultiStep.types.js +0 -2
- package/lib/components/MultiStep/MultiStep.types.js.map +0 -1
- package/lib/components/MultiStep/index.d.ts +0 -3
- package/lib/components/MultiStep/index.d.ts.map +0 -1
- package/lib/components/MultiStep/index.js +0 -2
- package/lib/components/MultiStep/index.js.map +0 -1
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAA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mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,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"}
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// This file is autogenerated. Any changes will be overwritten.
|
|
2
|
+
import './init';
|
|
2
3
|
export { default as Actions } from './components/Actions';
|
|
3
4
|
export * from './components/Actions';
|
|
4
5
|
export { default as AppShell } from './components/AppShell';
|
|
@@ -24,6 +25,7 @@ export { default as ColorPicker } from './components/ColorPicker';
|
|
|
24
25
|
export * from './components/ColorPicker';
|
|
25
26
|
export { default as ComboBox } from './components/ComboBox';
|
|
26
27
|
export * from './components/ComboBox';
|
|
28
|
+
export * from './components/CompositeInput';
|
|
27
29
|
export { default as Configuration } from './components/Configuration';
|
|
28
30
|
export * from './components/Configuration';
|
|
29
31
|
export * from './components/CreditCard';
|
|
@@ -85,8 +87,7 @@ export { default as MetaList } from './components/MetaList';
|
|
|
85
87
|
export * from './components/MetaList';
|
|
86
88
|
export { default as Modal } from './components/Modal';
|
|
87
89
|
export * from './components/Modal';
|
|
88
|
-
export { default as
|
|
89
|
-
export * from './components/MultiStep';
|
|
90
|
+
export { default as MultiStepForm } from './components/MultiStepForm';
|
|
90
91
|
export * from './components/Number';
|
|
91
92
|
export * from './components/PageTemplates';
|
|
92
93
|
export { default as Pagination } from './components/Pagination';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI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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.\nexport { default as Actions } from './components/Actions';\nexport * from './components/Actions';\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 { default as Configuration } from './components/Configuration';\nexport * from './components/Configuration';\nexport * from './components/CreditCard';\nexport * from './components/Currency';\nexport * from './components/DateTime';\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 MultiStep } from './components/MultiStep';\nexport * from './components/MultiStep';\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 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,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D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AO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,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 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 { 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 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/init.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;CAAG;AAEjC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,aAAa,CAAC;KACvB;CACF"}
|
package/lib/init.js
ADDED
package/lib/init.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAQA,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;IAClB,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;CACxD","sourcesContent":["export interface CosmosGlobals {}\n\ndeclare global {\n interface Window {\n cosmos: CosmosGlobals;\n }\n}\n\nif (!window.cosmos) {\n Object.defineProperty(window, 'cosmos', { value: {} });\n}\n"]}
|
|
@@ -13,14 +13,22 @@ export declare type ToThemeIFace<Node, Extension = never> = Node extends ThemeLe
|
|
|
13
13
|
} : Node | Extension;
|
|
14
14
|
export declare type SettableTheme<Def extends ThemeDefinition> = DeepPartial<ToThemeIFace<Def, symbol>>;
|
|
15
15
|
export declare const resetToInitial: unique symbol;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export interface ThemeMachineLike<Definition extends ThemeDefinition> {
|
|
17
|
+
parent: ThemeMachineLike<Definition> | null;
|
|
18
|
+
definition: Definition;
|
|
19
|
+
overrides: Map<string, boolean>;
|
|
20
|
+
readonly theme: ToThemeIFace<Definition>;
|
|
21
|
+
}
|
|
22
|
+
declare class ThemeMachine<Definition extends ThemeDefinition> implements ThemeMachineLike<Definition> {
|
|
23
|
+
parent: ThemeMachineLike<Definition> | null;
|
|
24
|
+
definition: Definition;
|
|
25
|
+
overrides: Map<string, boolean>;
|
|
18
26
|
readonly theme: ToThemeIFace<Definition>;
|
|
19
27
|
overrideInTree(keys: string[]): boolean;
|
|
20
28
|
constructTheme(theme: SettableTheme<Definition>): ToThemeIFace<Definition>;
|
|
21
29
|
constructor({ theme, parent, definition }: {
|
|
22
30
|
theme?: SettableTheme<Definition>;
|
|
23
|
-
parent:
|
|
31
|
+
parent: ThemeMachineLike<Definition>;
|
|
24
32
|
definition?: never;
|
|
25
33
|
} | {
|
|
26
34
|
theme?: SettableTheme<Definition>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeMachine.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeMachine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,SAAS,CAAC,KAAK;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,eAAe,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC;CACrD,CAAC;AAEF,oBAAY,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,KAAK,IAAI,IAAI,SAAS,SAAS,CAAC,MAAM,OAAO,CAAC,GACrF,CAAC,OAAO,SAAS,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,SAAS,GAC/D,IAAI,SAAS,MAAM,GACnB;IACE,QAAQ,EAAE,GAAG,IAAI,OAAO,CAAC,MAAM,IAAI,EAAE,UAAU,CAAC,GAAG,YAAY,CAAC,IAA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zF,MAAM,WAAW,gBAAgB,CAAC,UAAU,SAAS,eAAe;IAClE,MAAM,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAE5C,UAAU,EAAE,UAAU,CAAC;IAEvB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CAC1C;AAED,cAAM,YAAY,CAAC,UAAU,SAAS,eAAe,CAAE,YAAW,gBAAgB,CAAC,UAAU,CAAC;IAC5F,MAAM,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAE5C,UAAU,EAAE,UAAU,CAAC;IAEvB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAEzC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO;IAevC,cAAc,CAAC,KAAK,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC;gBAyD9D,EACV,KAAuC,EACvC,MAAM,EACN,UAAU,EACX,EACG;QACE,KAAK,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;QAClC,MAAM,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACrC,UAAU,CAAC,EAAE,KAAK,CAAC;KACpB,GACD;QAAE,KAAK,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE;CAMlF;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _ThemeMachine_parent, _ThemeMachine_definition, _ThemeMachine_overrides;
|
|
13
1
|
import { deepGet, defineSmartGetter } from '../utils';
|
|
14
2
|
export const resetToInitial = Symbol.for('@pega/cosmos-react-core.theme.resetToInitial');
|
|
15
3
|
class ThemeMachine {
|
|
16
4
|
constructor({ theme = {}, parent, definition }) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
Object.defineProperty(this, "parent", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: void 0
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "definition", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "overrides", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: void 0
|
|
22
|
+
});
|
|
20
23
|
Object.defineProperty(this, "theme", {
|
|
21
24
|
enumerable: true,
|
|
22
25
|
configurable: true,
|
|
23
26
|
writable: true,
|
|
24
27
|
value: void 0
|
|
25
28
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
this.parent = parent ?? null;
|
|
30
|
+
this.definition = parent ? parent.definition : definition;
|
|
31
|
+
this.overrides = new Map();
|
|
29
32
|
this.theme = this.constructTheme(theme);
|
|
30
33
|
}
|
|
31
34
|
overrideInTree(keys) {
|
|
@@ -34,21 +37,21 @@ class ThemeMachine {
|
|
|
34
37
|
while (ancestor) {
|
|
35
38
|
// Trigger getters in the ancestor themes.
|
|
36
39
|
deepGet(ancestor.theme, keys);
|
|
37
|
-
if (
|
|
38
|
-
return !!
|
|
39
|
-
ancestor =
|
|
40
|
+
if (ancestor.overrides.has(fullProp))
|
|
41
|
+
return !!ancestor.overrides.get(fullProp);
|
|
42
|
+
ancestor = ancestor.parent;
|
|
40
43
|
}
|
|
41
44
|
return false;
|
|
42
45
|
}
|
|
43
46
|
constructTheme(theme) {
|
|
44
47
|
const constructForNode = (keys = []) => {
|
|
45
48
|
const themeNode = {};
|
|
46
|
-
Object.keys(deepGet(
|
|
49
|
+
Object.keys(deepGet(this.definition, keys)).forEach(key => {
|
|
47
50
|
// Ignore comment nodes.
|
|
48
51
|
if (key === '$comment')
|
|
49
52
|
return;
|
|
50
53
|
const propKeys = [...keys, key];
|
|
51
|
-
const defNode = deepGet(
|
|
54
|
+
const defNode = deepGet(this.definition, propKeys);
|
|
52
55
|
// If it is not a leaf node of the theme definition...
|
|
53
56
|
if (defNode.$type === undefined) {
|
|
54
57
|
// recursively run for child nodes.
|
|
@@ -59,7 +62,7 @@ class ThemeMachine {
|
|
|
59
62
|
// If a theme value was set for this ThemeMachine...
|
|
60
63
|
if (themeValue !== undefined) {
|
|
61
64
|
// set overrides to true, unless it is being reset.
|
|
62
|
-
|
|
65
|
+
this.overrides.set(propKeys.join('.'), themeValue !== resetToInitial);
|
|
63
66
|
}
|
|
64
67
|
// If a theme value was set for this ThemeMachine, is not being reset, and is for a non-constant property...
|
|
65
68
|
if (themeValue !== undefined && themeValue !== resetToInitial && !defNode.$constant) {
|
|
@@ -69,7 +72,7 @@ class ThemeMachine {
|
|
|
69
72
|
// If the property has been overridden in the tree (and not reset)...
|
|
70
73
|
else if (this.overrideInTree(propKeys)) {
|
|
71
74
|
// set to the value in the parent theme.
|
|
72
|
-
defineSmartGetter(themeNode, key, () => deepGet(
|
|
75
|
+
defineSmartGetter(themeNode, key, () => deepGet(this.parent.theme, propKeys));
|
|
73
76
|
}
|
|
74
77
|
// If the property type is inherited...
|
|
75
78
|
else if (defNode.$type === 'inherited') {
|
|
@@ -87,6 +90,5 @@ class ThemeMachine {
|
|
|
87
90
|
return constructForNode();
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
|
-
_ThemeMachine_parent = new WeakMap(), _ThemeMachine_definition = new WeakMap(), _ThemeMachine_overrides = new WeakMap();
|
|
91
93
|
export default ThemeMachine;
|
|
92
94
|
//# sourceMappingURL=ThemeMachine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeMachine.js","sourceRoot":"","sources":["../../src/theme/ThemeMachine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeMachine.js","sourceRoot":"","sources":["../../src/theme/ThemeMachine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAwBtD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;AAYzF,MAAM,YAAY;IAiFhB,YAAY,EACV,KAAK,GAAG,EAA+B,EACvC,MAAM,EACN,UAAU,EAOqE;QA1FjF;;;;;WAA4C;QAE5C;;;;;WAAuB;QAEvB;;;;;WAAgC;QAEhC;;;;;WAAyC;QAqFvC,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC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AAC;CAkBF;AAED,eAAe,YAAY,CAAC","sourcesContent":["import { deepGet, defineSmartGetter } from '../utils';\nimport { DeepPartial } from '../types';\n\nexport interface ThemeLeaf<Value> {\n $type: string;\n $value: Value;\n $constant?: boolean;\n $comment?: string;\n}\n\nexport type ThemeDefinition = {\n [key: string]: ThemeLeaf<unknown> | ThemeDefinition;\n};\n\nexport type ToThemeIFace<Node, Extension = never> = Node extends ThemeLeaf<infer LeafVal>\n ? (LeafVal extends null ? LeafVal | string : LeafVal) | Extension\n : Node extends object\n ? {\n readonly [Key in Exclude<keyof Node, '$comment'>]: ToThemeIFace<Node[Key], Extension>;\n }\n : Node | Extension;\n\nexport type SettableTheme<Def extends ThemeDefinition> = DeepPartial<ToThemeIFace<Def, symbol>>;\n\nexport const resetToInitial = Symbol.for('@pega/cosmos-react-core.theme.resetToInitial');\n\nexport interface ThemeMachineLike<Definition extends ThemeDefinition> {\n parent: ThemeMachineLike<Definition> | null;\n\n definition: Definition;\n\n overrides: Map<string, boolean>;\n\n readonly theme: ToThemeIFace<Definition>;\n}\n\nclass ThemeMachine<Definition extends ThemeDefinition> implements ThemeMachineLike<Definition> {\n parent: ThemeMachineLike<Definition> | null;\n\n definition: Definition;\n\n overrides: Map<string, boolean>;\n\n readonly theme: ToThemeIFace<Definition>;\n\n overrideInTree(keys: string[]): boolean {\n let ancestor: ThemeMachineLike<Definition> | null = this;\n const fullProp = keys.join('.');\n\n while (ancestor) {\n // Trigger getters in the ancestor themes.\n deepGet(ancestor.theme, keys);\n\n if (ancestor.overrides.has(fullProp)) return !!ancestor.overrides.get(fullProp);\n ancestor = ancestor.parent;\n }\n\n return false;\n }\n\n constructTheme(theme: SettableTheme<Definition>): ToThemeIFace<Definition> {\n const constructForNode = (keys: string[] = []) => {\n const themeNode: Record<string, any> = {};\n\n Object.keys(deepGet(this.definition, keys)).forEach(key => {\n // Ignore comment nodes.\n if (key === '$comment') return;\n\n const propKeys = [...keys, key];\n const defNode: Record<string, any> = deepGet(this.definition, propKeys);\n\n // If it is not a leaf node of the theme definition...\n if (defNode.$type === undefined) {\n // recursively run for child nodes.\n defineSmartGetter(themeNode, key, () => constructForNode(propKeys));\n return;\n }\n\n const themeValue = deepGet(theme, propKeys);\n\n // If a theme value was set for this ThemeMachine...\n if (themeValue !== undefined) {\n // set overrides to true, unless it is being reset.\n this.overrides.set(propKeys.join('.'), themeValue !== resetToInitial);\n }\n\n // If a theme value was set for this ThemeMachine, is not being reset, and is for a non-constant property...\n if (themeValue !== undefined && themeValue !== resetToInitial && !defNode.$constant) {\n // set to the provided value.\n themeNode[key] = themeValue;\n }\n\n // If the property has been overridden in the tree (and not reset)...\n else if (this.overrideInTree(propKeys)) {\n // set to the value in the parent theme.\n defineSmartGetter(themeNode, key, () => deepGet(this.parent!.theme, propKeys));\n }\n\n // If the property type is inherited...\n else if (defNode.$type === 'inherited') {\n // set to the value of the inherited property in this theme.\n defineSmartGetter(themeNode, key, () => deepGet(this.theme, defNode.$value.split('.')));\n }\n\n // If the property type is literal...\n else if (defNode.$type === 'literal') {\n // set to the value listed in the definition.\n themeNode[key] = defNode.$value;\n }\n });\n\n return themeNode;\n };\n\n return constructForNode() as ToThemeIFace<Definition>;\n }\n\n constructor({\n theme = {} as SettableTheme<Definition>,\n parent,\n definition\n }:\n | {\n theme?: SettableTheme<Definition>;\n parent: ThemeMachineLike<Definition>;\n definition?: never;\n }\n | { theme?: SettableTheme<Definition>; parent?: never; definition: Definition }) {\n this.parent = parent ?? null;\n this.definition = parent ? parent.definition : definition;\n this.overrides = new Map();\n this.theme = this.constructTheme(theme);\n }\n}\n\nexport default ThemeMachine;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-core",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.15.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",
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
"LICENSE",
|
|
16
16
|
"lib"
|
|
17
17
|
],
|
|
18
|
-
"sideEffects":
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./src/init.ts",
|
|
20
|
+
"./lib/init.js"
|
|
21
|
+
],
|
|
19
22
|
"scripts": {
|
|
20
23
|
"build": "tsc -b"
|
|
21
24
|
},
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { ForwardProps } from '../../types';
|
|
3
|
-
import MultiStepProps from './MultiStep.types';
|
|
4
|
-
declare const MultiStep: FunctionComponent<MultiStepProps & ForwardProps>;
|
|
5
|
-
export default MultiStep;
|
|
6
|
-
//# sourceMappingURL=MultiStep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStep.d.ts","sourceRoot":"","sources":["../../../src/components/MultiStep/MultiStep.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAc3C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AA8F/C,QAAA,MAAM,SAAS,EAAE,iBAAiB,CAAC,cAAc,GAAG,YAAY,CA+B/D,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStep.js","sourceRoot":"","sources":["../../../src/components/MultiStep/MultiStep.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,UAAU,EAIV,MAAM,EACN,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;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AAW,CAAC,OAAO,YACvF,WAAW,CAAC,OAAO,GACf,IACF,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import { remToPx, stripUnit } from 'polished';\nimport {\n forwardRef,\n FunctionComponent,\n PropsWithoutRef,\n CSSProperties,\n useRef,\n useEffect\n} from 'react';\n\nimport { useElement, useTheme } from '../../hooks';\nimport { ForwardProps } from '../../types';\nimport { getFocusables, tryCatch } from '../../utils';\nimport Flex from '../Flex';\nimport Form from '../Form';\nimport Text from '../Text';\nimport Tooltip from '../Tooltip';\n\nimport StyledMultiStep, {\n CurrentStepPopover,\n StepMarker,\n StyledBar,\n StyledFill,\n StyledFormProgress\n} from './MultiStep.styles';\nimport MultiStepProps from './MultiStep.types';\n\nconst FormProgress: FunctionComponent<MultiStepProps & ForwardProps> = ({\n steps,\n currentId,\n ...restProps\n}: MultiStepProps) => {\n const curIdx = steps.findIndex(step => step.id === currentId);\n const curStep = steps[curIdx];\n const fillScale = curIdx / (steps.length - 1);\n\n const [currentStepEl, setCurrentStepEl] = useElement();\n const stepRefs = useRef<HTMLElement[]>([]);\n const theme = useTheme();\n\n let popoverPlacement: 'top' | 'top-start' | 'top-end' = 'top';\n if (curIdx === 0) popoverPlacement = 'top-start';\n else if (curIdx === steps.length - 1) popoverPlacement = 'top-end';\n\n useEffect(() => {\n setCurrentStepEl(stepRefs.current[curIdx]);\n }, [stepRefs.current, curIdx]);\n\n return (\n <StyledFormProgress\n {...restProps}\n container={{ alignItems: 'center' }}\n role='progressbar'\n aria-valuenow={curIdx}\n aria-valuemin={0}\n aria-valuetext={curStep.name}\n aria-valuemax={steps.length}\n >\n <CurrentStepPopover\n show\n target={currentStepEl}\n placement={popoverPlacement}\n strategy='absolute'\n hideOnTargetHidden\n modifiers={[\n {\n name: 'offset',\n options: {\n offset: [\n 0,\n tryCatch(\n () => stripUnit(remToPx(theme.base.spacing)),\n () => 8\n )\n ]\n }\n }\n ]}\n >\n <Text variant='h4'>{curStep.name}</Text>\n </CurrentStepPopover>\n <Flex container={{ justify: 'between', alignItems: 'center' }} item={{ grow: 1 }}>\n {steps.map((step, index) => {\n return (\n <StepMarker\n key={step.id}\n ref={(el: HTMLElement) => {\n stepRefs.current[index] = el;\n }}\n aria-label={step.name}\n aria-describedby={step.id}\n current={index === curIdx}\n depth={step.depth}\n prior={index < curIdx}\n onClick={step.onClick}\n >\n {index !== curIdx && (\n <Tooltip\n id={step.id}\n target={stepRefs.current[index]}\n showDelay='none'\n hideDelay='short'\n portal={false}\n >\n {step.name}\n </Tooltip>\n )}\n </StepMarker>\n );\n })}\n </Flex>\n\n <StyledBar>\n <StyledFill style={{ '--fillScale': fillScale } as CSSProperties} />\n </StyledBar>\n </StyledFormProgress>\n );\n};\n\nconst MultiStep: FunctionComponent<MultiStepProps & ForwardProps> = forwardRef(\n (\n { currentId, steps, ...restProps }: PropsWithoutRef<MultiStepProps>,\n ref: MultiStepProps['ref']\n ) => {\n const multiStepContentRef = useRef(null);\n const currentStep = steps.find(step => step.id === currentId)!;\n\n useEffect(() => {\n const focusableElements = getFocusables(multiStepContentRef);\n\n if (focusableElements.length) focusableElements[0].focus();\n }, [currentId]);\n\n return (\n <Flex\n as={StyledMultiStep}\n ref={ref}\n container={{\n direction: 'column',\n gap: 3\n }}\n {...restProps}\n >\n <FormProgress steps={steps} currentId={currentId} />\n <Form ref={multiStepContentRef} actions={currentStep.actions} banners={currentStep.banners}>\n {currentStep.content}\n </Form>\n </Flex>\n );\n }\n);\n\nexport default MultiStep;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStep.styles.d.ts","sourceRoot":"","sources":["../../../src/components/MultiStep/MultiStep.styles.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,eAAO,MAAM,kBAAkB,8TAa9B,CAAC;AAEF,eAAO,MAAM,SAAS,yGAapB,CAAC;AAIH,eAAO,MAAM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AAC,CAAC,SAAS,eAAe,MAAM,cAAc,UAAU;gBAClD,KAAK,KAAK,CAAC;QACjB,CAAC,CAAC,SAAS,eAAe,MAAM,mBAAmB,UAAU;QAC7D,CAAC,CAAC,SAAS,eAAe,MAAM,cAAc,UAAU;UACxD,IAAI,CAAC,eAAe,CAAC;;;;;;;;;;;;;;oBAcX,WAAW;;GAE5B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE3C,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAErC,eAAe,eAAe,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { size } from 'polished';\n\nimport Flex from '../Flex';\nimport { defaultThemeProp } from '../../theme';\nimport BareButton from '../Button/BareButton';\nimport Popover from '../Popover';\nimport { StyledText } from '../Text';\nimport { calculateFontSize, FontSize } from '../../styles';\nimport { useDirection } from '../../hooks';\n\nimport { Step } from './MultiStep.types';\n\nexport const CurrentStepPopover = styled(Popover)`\n max-width: 100%;\n background-color: transparent;\n\n ::after {\n filter: none;\n }\n\n & > ${StyledText} {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`;\n\nexport const StyledBar = styled.div(({ theme }) => {\n const {\n base: {\n palette: { 'border-line': borderColor }\n }\n } = theme;\n\n return css`\n position: absolute;\n width: 100%;\n height: 0.0625rem;\n background: ${borderColor};\n `;\n});\n\nStyledBar.defaultProps = defaultThemeProp;\n\nexport const StyledFill = styled.div(({ theme }) => {\n const {\n base: {\n animation: {\n speed: animationSpeed,\n timing: { ease: animationTiming }\n },\n palette: { interactive }\n }\n } = theme;\n\n const { ltr } = useDirection();\n\n return css`\n position: absolute;\n width: 100%;\n height: 100%;\n background: ${interactive};\n transition: all calc(2 * ${animationSpeed}) ${animationTiming};\n transform: scaleX(var(--fillScale));\n transform-origin: ${ltr ? 0 : '100%'} 0;\n `;\n});\n\nStyledFill.defaultProps = defaultThemeProp;\n\nexport const StyledFormProgress = styled(Flex)(({ theme }) => {\n const {\n base: { spacing, 'font-size': fontSize, 'font-scale': fontScale },\n components: {\n text: {\n h4: { 'font-size': h4fontSize }\n }\n }\n } = theme;\n const fontSizes = calculateFontSize(fontSize, fontScale);\n\n return css`\n position: relative;\n padding-block-start: calc(${spacing} * 2 + ${fontSizes[h4fontSize as FontSize]} * 1.35);\n `;\n});\n\nStyledFormProgress.defaultProps = defaultThemeProp;\n\nexport const StepMarker = styled(BareButton)<{\n current: boolean;\n depth: Step['depth'];\n prior: boolean;\n}>(({ current, depth, prior, theme }) => {\n const {\n base: {\n 'font-size': fontSize,\n 'font-scale': fontScale,\n animation: {\n speed: animationSpeed,\n timing: { ease: animationTiming }\n },\n palette: { interactive, 'primary-background': primaryBackground },\n shadow: { focus: focusShadow },\n 'hit-area': { 'mouse-min': buttonSize, 'finger-min': touchButtonSize }\n },\n components: {\n 'form-control': { 'border-color': borderColor }\n }\n } = theme;\n const { m: stepMarkerSize } = calculateFontSize(fontSize, fontScale);\n const smallStepMarkerSize = `calc(${stepMarkerSize} / 1.5)`;\n\n return css`\n display: block;\n position: relative;\n z-index: 1;\n ${size(depth === 1 ? smallStepMarkerSize : stepMarkerSize)}\n border-radius: 100%;\n background: ${primaryBackground};\n border: 0.0625rem solid ${borderColor};\n transition: all calc(2 * ${animationSpeed}) ${animationTiming};\n\n ${current &&\n css`\n background: ${interactive};\n border-color: ${interactive};\n `}\n\n ${prior &&\n css`\n border-color: ${interactive};\n `}\n\n ::after {\n content: '';\n position: absolute;\n top: ${depth === 1\n ? `calc((${buttonSize} - ${smallStepMarkerSize}) / -2) `\n : `calc((${buttonSize} - ${stepMarkerSize}) / -2) `};\n left: ${depth === 1\n ? `calc((${buttonSize} - ${smallStepMarkerSize}) / -2) `\n : `calc((${buttonSize} - ${stepMarkerSize}) / -2) `};\n ${size(buttonSize)}\n\n @media (pointer: coarse) {\n top: ${depth === 1\n ? `calc((${touchButtonSize} - ${smallStepMarkerSize}) / -2) `\n : `calc((${touchButtonSize} - ${stepMarkerSize}) / -2) `};\n left: ${depth === 1\n ? `calc((${touchButtonSize} - ${smallStepMarkerSize}) / -2) `\n : `calc((${touchButtonSize} - ${stepMarkerSize}) / -2) `};\n ${size(touchButtonSize)}\n }\n }\n\n &:first-child::after {\n left: 0;\n }\n\n &:last-child::after {\n left: unset;\n right: 0;\n }\n\n :focus {\n box-shadow: ${focusShadow};\n }\n `;\n});\n\nStepMarker.defaultProps = defaultThemeProp;\n\nconst StyledMultiStep = styled.div``;\n\nexport default StyledMultiStep;\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { MouseEventHandler, ReactNode, Ref } from 'react';
|
|
2
|
-
import { BaseProps, NoChildrenProp } from '../../types';
|
|
3
|
-
export interface Step {
|
|
4
|
-
/** The id that is referenced by the Multi Step currentId prop. */
|
|
5
|
-
id: string;
|
|
6
|
-
/** The displayed name of the step. */
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* Determines the size of the step indicator. Depth 0 is larger than depth 1.
|
|
10
|
-
* @default 0
|
|
11
|
-
*/
|
|
12
|
-
depth?: 0 | 1;
|
|
13
|
-
/** Applies styles for the completed state. */
|
|
14
|
-
complete?: boolean;
|
|
15
|
-
/** Applies styles for the required state. */
|
|
16
|
-
required?: boolean;
|
|
17
|
-
/** Applies styles for the disabled state. */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/** A set of Action Buttons to render for the step. */
|
|
20
|
-
actions?: ReactNode;
|
|
21
|
-
/** Banners to render for the step */
|
|
22
|
-
banners?: ReactNode;
|
|
23
|
-
/** Content to render for the step. */
|
|
24
|
-
content?: ReactNode;
|
|
25
|
-
/** Callback function that is called when a step marker is clicked. */
|
|
26
|
-
onClick?: MouseEventHandler;
|
|
27
|
-
}
|
|
28
|
-
export default interface MultiStepProps extends BaseProps, NoChildrenProp {
|
|
29
|
-
/** Flat array of objects describing each step. */
|
|
30
|
-
steps: Step[];
|
|
31
|
-
/** Sets the current step. */
|
|
32
|
-
currentId: string;
|
|
33
|
-
/** Ref for the wrapping element. */
|
|
34
|
-
ref?: Ref<HTMLDivElement>;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=MultiStep.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStep.types.d.ts","sourceRoot":"","sources":["../../../src/components/MultiStep/MultiStep.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,IAAI;IACnB,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sCAAsC;IACtC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sEAAsE;IACtE,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,cAAe,SAAQ,SAAS,EAAE,cAAc;IACvE,kDAAkD;IAClD,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiStep.types.js","sourceRoot":"","sources":["../../../src/components/MultiStep/MultiStep.types.ts"],"names":[],"mappings":"","sourcesContent":["import { MouseEventHandler, ReactNode, Ref } from 'react';\n\nimport { BaseProps, NoChildrenProp } from '../../types';\n\nexport interface Step {\n /** The id that is referenced by the Multi Step currentId prop. */\n id: string;\n /** The displayed name of the step. */\n name: string;\n /**\n * Determines the size of the step indicator. Depth 0 is larger than depth 1.\n * @default 0\n */\n depth?: 0 | 1;\n /** Applies styles for the completed state. */\n complete?: boolean;\n /** Applies styles for the required state. */\n required?: boolean;\n /** Applies styles for the disabled state. */\n disabled?: boolean;\n /** A set of Action Buttons to render for the step. */\n actions?: ReactNode;\n /** Banners to render for the step */\n banners?: ReactNode;\n /** Content to render for the step. */\n content?: ReactNode;\n /** Callback function that is called when a step marker is clicked. */\n onClick?: MouseEventHandler;\n}\n\nexport default interface MultiStepProps extends BaseProps, NoChildrenProp {\n /** Flat array of objects describing each step. */\n steps: Step[];\n /** Sets the current step. */\n currentId: string;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultiStep/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MultiStep/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { default } from './MultiStep';\nexport { default as MultiStepProps, Step } from './MultiStep.types';\n"]}
|