@pega/cosmos-react-core 9.0.0-build.13.0 → 9.0.0-build.13.2
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/Actions/Actions.d.ts +1 -0
- package/lib/components/Actions/Actions.d.ts.map +1 -1
- package/lib/components/Actions/Actions.js +28 -4
- package/lib/components/Actions/Actions.js.map +1 -1
- package/lib/components/AppShell/AppShell.types.d.ts +2 -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/NavigationListItemWrapper.d.ts.map +1 -1
- package/lib/components/AppShell/NavigationListItemWrapper.js +30 -5
- package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +13 -3
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/Menu.styles.d.ts +2 -0
- package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
- package/lib/components/Menu/Menu.styles.js +58 -1
- package/lib/components/Menu/Menu.styles.js.map +1 -1
- package/lib/components/Menu/Menu.types.d.ts +3 -0
- package/lib/components/Menu/Menu.types.d.ts.map +1 -1
- package/lib/components/Menu/Menu.types.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +12 -2
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MultiStepForm/MultiStepForm.js +1 -1
- package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.js +11 -6
- package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
- package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts +13 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts.map +1 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.js +29 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.js.map +1 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.d.ts +2 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.d.ts.map +1 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.js +3 -0
- package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.js.map +1 -0
- package/lib/components/SpeechToTextButton/index.d.ts +3 -0
- package/lib/components/SpeechToTextButton/index.d.ts.map +1 -0
- package/lib/components/SpeechToTextButton/index.js +2 -0
- package/lib/components/SpeechToTextButton/index.js.map +1 -0
- package/lib/components/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/TextArea/TextArea.js +2 -12
- package/lib/components/TextArea/TextArea.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/useI18n.d.ts +11 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/hooks/useSpeechRecognition.d.ts +21 -0
- package/lib/hooks/useSpeechRecognition.d.ts.map +1 -0
- package/lib/hooks/useSpeechRecognition.js +121 -0
- package/lib/hooks/useSpeechRecognition.js.map +1 -0
- package/lib/i18n/default.d.ts +11 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +13 -0
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +11 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/styles/utils.d.ts.map +1 -1
- package/lib/styles/utils.js +8 -2
- package/lib/styles/utils.js.map +1 -1
- package/lib/theme/theme.d.ts +24 -0
- package/lib/theme/theme.d.ts.map +1 -1
- package/lib/theme/themeDefinition.json +14 -0
- package/lib/theme/themeOverrides.schema.json +15 -0
- package/lib/theme/themes/virgoTheme.json +5 -0
- package/package.json +2 -1
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -107,6 +107,8 @@ export declare const DefaultTranslation: Readonly<Readonly<{
|
|
|
107
107
|
generate: string;
|
|
108
108
|
reject: string;
|
|
109
109
|
modify: string;
|
|
110
|
+
start: string;
|
|
111
|
+
stop: string;
|
|
110
112
|
view_all: string;
|
|
111
113
|
view_less: string;
|
|
112
114
|
show_more: string;
|
|
@@ -285,6 +287,7 @@ export declare const DefaultTranslation: Readonly<Readonly<{
|
|
|
285
287
|
composite_input_open_button_a11y: string;
|
|
286
288
|
composite_input_close_button_a11y: string;
|
|
287
289
|
menu_selection_instructions: string;
|
|
290
|
+
menu_filter_instructions: string;
|
|
288
291
|
menu_item_expand_arrow: string;
|
|
289
292
|
menu_item_collapse_arrow: string;
|
|
290
293
|
menu_item_collapse_shift_space: string;
|
|
@@ -418,6 +421,7 @@ export declare const DefaultTranslation: Readonly<Readonly<{
|
|
|
418
421
|
finalizing_response: string;
|
|
419
422
|
preparing_content: string;
|
|
420
423
|
response_generated: string;
|
|
424
|
+
processing_speech: string;
|
|
421
425
|
good_response: string;
|
|
422
426
|
bad_response: string;
|
|
423
427
|
share_feedback: string;
|
|
@@ -458,6 +462,13 @@ export declare const DefaultTranslation: Readonly<Readonly<{
|
|
|
458
462
|
shortcut_DismissToast: string;
|
|
459
463
|
configurable_layout_instructions: string;
|
|
460
464
|
page_number: string;
|
|
465
|
+
dictate: string;
|
|
466
|
+
stop_dictation: string;
|
|
467
|
+
no_speech_detected: string;
|
|
468
|
+
no_microphone_found: string;
|
|
469
|
+
microphone_access_denied: string;
|
|
470
|
+
speech_recognition_error: string;
|
|
471
|
+
speech_recognition_not_supported: string;
|
|
461
472
|
drag_handle_activate_description: string;
|
|
462
473
|
drag_handle_drop_description: string;
|
|
463
474
|
drag_handle_cancel_description: string;
|
package/lib/i18n/i18n.d.ts.map
CHANGED
|
@@ -1 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAW,CAAC;AAiB3C,eAAO,MAAM,SAAS,GAAI,WAAW,MAAM,KAAG,KAAK,GAAG,KAErD,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -138,6 +138,8 @@ export { default as SkipLinks } from './components/SkipLinks';
|
|
|
138
138
|
export * from './components/SkipLinks';
|
|
139
139
|
export { default as Slider } from './components/Slider';
|
|
140
140
|
export * from './components/Slider';
|
|
141
|
+
export { default as SpeechToTextButton } from './components/SpeechToTextButton';
|
|
142
|
+
export * from './components/SpeechToTextButton';
|
|
141
143
|
export { default as SummaryItem } from './components/SummaryItem';
|
|
142
144
|
export * from './components/SummaryItem';
|
|
143
145
|
export { default as SummaryList } from './components/SummaryList';
|
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,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,O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,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"}
|
package/lib/index.js
CHANGED
|
@@ -139,6 +139,8 @@ export { default as SkipLinks } from './components/SkipLinks';
|
|
|
139
139
|
export * from './components/SkipLinks';
|
|
140
140
|
export { default as Slider } from './components/Slider';
|
|
141
141
|
export * from './components/Slider';
|
|
142
|
+
export { default as SpeechToTextButton } from './components/SpeechToTextButton';
|
|
143
|
+
export * from './components/SpeechToTextButton';
|
|
142
144
|
export { default as SummaryItem } from './components/SummaryItem';
|
|
143
145
|
export * from './components/SummaryItem';
|
|
144
146
|
export { default as SummaryList } from './components/SummaryList';
|
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,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO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pC,OAAO,EAAE,OAAO,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 AdditionalInfo } from './components/AdditionalInfo';\nexport * from './components/AdditionalInfo';\nexport { default as AIButton } from './components/AIButton';\nexport * from './components/AIButton';\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 { default as DangerButton } from './components/DangerButton';\nexport * from './components/DangerButton';\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 Fullscreen } from './components/Fullscreen';\nexport * from './components/Fullscreen';\nexport { default as Grid } from './components/Grid';\nexport * from './components/Grid';\nexport { default as HiddenText } from './components/HiddenText';\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 { default as NoValue } from './components/NoValue';\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 ResponsiveActions } from './components/ResponsiveActions';\nexport * from './components/ResponsiveActions';\nexport { default as SearchInput } from './components/SearchInput';\nexport * from './components/SearchInput';\nexport { default as Select } from './components/Select';\nexport * from './components/Select';\nexport * from './components/SelectionCard';\nexport { default as Sentiment } from './components/Sentiment';\nexport * from './components/Sentiment';\nexport * from './components/ShortcutManager';\nexport { default as ShowMoreLess } from './components/ShowMoreLess';\nexport * from './components/ShowMoreLess';\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,MAAM,6BAA6B,CAAC;AACxE,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,O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mB,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 AdditionalInfo } from './components/AdditionalInfo';\nexport * from './components/AdditionalInfo';\nexport { default as AIButton } from './components/AIButton';\nexport * from './components/AIButton';\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 { default as DangerButton } from './components/DangerButton';\nexport * from './components/DangerButton';\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 Fullscreen } from './components/Fullscreen';\nexport * from './components/Fullscreen';\nexport { default as Grid } from './components/Grid';\nexport * from './components/Grid';\nexport { default as HiddenText } from './components/HiddenText';\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 { default as NoValue } from './components/NoValue';\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 ResponsiveActions } from './components/ResponsiveActions';\nexport * from './components/ResponsiveActions';\nexport { default as SearchInput } from './components/SearchInput';\nexport * from './components/SearchInput';\nexport { default as Select } from './components/Select';\nexport * from './components/Select';\nexport * from './components/SelectionCard';\nexport { default as Sentiment } from './components/Sentiment';\nexport * from './components/Sentiment';\nexport * from './components/ShortcutManager';\nexport { default as ShowMoreLess } from './components/ShowMoreLess';\nexport * from './components/ShowMoreLess';\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 SpeechToTextButton } from './components/SpeechToTextButton';\nexport * from './components/SpeechToTextButton';\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBpE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,OAAO,YAAY,GAAG,MAAM,CAAC;CAC5C;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM,wBAO9C,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EACb,kBAAkC,eAAoB,KACrD,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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F,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,YAAY,MAAM,EAClB,iBAAiB,MAAM,KACtB;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAiBlD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAUnD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,MAU5E,CAAC"}
|
package/lib/styles/utils.js
CHANGED
|
@@ -9,6 +9,12 @@ export const isSolidColor = (background) => {
|
|
|
9
9
|
(rgb.alpha !== undefined && rgb.alpha === 1)));
|
|
10
10
|
};
|
|
11
11
|
export const readableColor = (color, { mode = 'light', level = 'AA' } = {}) => {
|
|
12
|
+
if (!isSolidColor(color) && mode === 'light') {
|
|
13
|
+
return '#fff';
|
|
14
|
+
}
|
|
15
|
+
if (!isSolidColor(color) && mode === 'dark') {
|
|
16
|
+
return '#000';
|
|
17
|
+
}
|
|
12
18
|
const minContrast = typeof level === 'string' ? wcagContrast[level] : level;
|
|
13
19
|
if (mode === 'light' && getContrast('#fff', color) >= minContrast) {
|
|
14
20
|
return '#fff';
|
|
@@ -16,7 +22,7 @@ export const readableColor = (color, { mode = 'light', level = 'AA' } = {}) => {
|
|
|
16
22
|
if (mode === 'dark' && getContrast('#000', color) >= minContrast) {
|
|
17
23
|
return '#000';
|
|
18
24
|
}
|
|
19
|
-
return polishedReadableColor(color);
|
|
25
|
+
return tryCatch(() => polishedReadableColor(color), () => '#000');
|
|
20
26
|
};
|
|
21
27
|
const getBackgroundForegroundColors = (color, delta) => {
|
|
22
28
|
const backgroundLightness = tryCatch(() => parseToHsl(color).lightness, () => 1);
|
|
@@ -112,7 +118,7 @@ export const colorIconMapping = (theme, iconName) => {
|
|
|
112
118
|
case 'paper-clip':
|
|
113
119
|
return nlpColors[1];
|
|
114
120
|
case 'person':
|
|
115
|
-
return nlpColors[
|
|
121
|
+
return nlpColors[30];
|
|
116
122
|
case 'tag':
|
|
117
123
|
return nlpColors[3];
|
|
118
124
|
case 'user-star':
|
package/lib/styles/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,OAAO,EACP,aAAa,IAAI,qBAAqB,EACtC,MAAM,EACN,WAAW,EACX,GAAG,EACH,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,eAAe,EACf,cAAc,EACd,UAAU,EACX,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACnD,OAAO,CACL,GAAG;QACH,CAAE,GAAiB,CAAC,KAAK,KAAK,SAAS;YACrC,CAAE,GAAiB,CAAC,KAAK,KAAK,SAAS,IAAK,GAAiB,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAC9E,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,KAAa,EACb,EAAE,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,IAAI,KAAsB,EAAE,EAC9C,EAAE;IACV,MAAM,WAAW,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAE5E,IAAI,IAAI,KAAK,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,WAAW,EAA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B,aAAa,GAAG,cAAc,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IACvD,CAAC;IAED,OAAO;QACL,aAAa;QACb,eAAe,EAAE,eAAe;KACjC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAa,EAAU,EAAE;IAC3D,MAAM,aAAa,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,MAAM,SAAS,GAAG,QAAQ,CACxB,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,SAAS,EACzC,GAAG,EAAE,CAAC,CAAC,CACR,CAAC;IACF,IAAI,SAAS,GAAG,GAAG,EAAE,CAAC;QACpB,OAAO,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAiC,EAAU,EAAE;IACpF,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,CAAC,CAAC;IACjC,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE1C,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAE5C,IAAI,IAAI,KAAK,GAAG;QAAE,OAAO,KAAK,GAAG,IAAI,CAAC;IACtC,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAEhC,OAAO,CAAC,CAAC;AACX,CAAC,CAAC","sourcesContent":["import type { DefaultTheme, StyledConfig } from 'styled-components';\nimport {\n parseToHsl,\n lighten,\n readableColor as polishedReadableColor,\n darken,\n getContrast,\n hsl,\n modularScale,\n stripUnit,\n math,\n getValueAndUnit,\n transparentize,\n parseToRgb\n} from 'polished';\nimport type { RgbaColor } from 'polished/lib/types/color';\nimport type { ModularScaleRatio } from 'polished/lib/types/modularScaleRatio';\n\nimport { tryCatch } from '../utils';\n\nimport { wcagContrast } from './constants';\nimport { nlpColors } from './gradients';\n\ninterface ContrastOptions {\n mode?: 'light' | 'dark' | 'both';\n level?: keyof typeof wcagContrast | number;\n}\n\nexport const isSolidColor = (background: string) => {\n const rgb = tryCatch(() => parseToRgb(background));\n return (\n rgb &&\n ((rgb as RgbaColor).alpha === undefined ||\n ((rgb as RgbaColor).alpha !== undefined && (rgb as RgbaColor).alpha === 1))\n );\n};\n\nexport const readableColor = (\n color: string,\n { mode = 'light', level = 'AA' }: ContrastOptions = {}\n): string => {\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (mode === 'light' && getContrast('#fff', color) >= minContrast) {\n return '#fff';\n }\n\n if (mode === 'dark' && getContrast('#000', color) >= minContrast) {\n return '#000';\n }\n\n return polishedReadableColor(color);\n};\n\nconst getBackgroundForegroundColors = (color: string, delta: number) => {\n const backgroundLightness = tryCatch(\n () => parseToHsl(color).lightness,\n () => 1\n );\n let background = tryCatch(() => lighten(delta, color));\n let foreground = tryCatch(() => readableColor(lighten(delta, color)));\n if (backgroundLightness > 0.35) {\n background = tryCatch(() => darken(delta, color));\n foreground = tryCatch(() => readableColor(darken(delta, color)));\n }\n\n return { background, foreground };\n};\n\nexport const getHoverColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.1);\n};\n\nexport const getActiveColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.2);\n};\n\nexport const readableHue = (\n color1: string,\n color2: string,\n { mode = 'both', level = 'AA' }: ContrastOptions = {}\n): string => {\n // if both the color are not solid, return black as fallback\n if (!isSolidColor(color1) && !isSolidColor(color2)) {\n return '#000000';\n }\n\n // if one of the color is not solid, return the other color\n if (!isSolidColor(color2)) {\n return color1;\n }\n\n if (!isSolidColor(color1)) {\n return color2;\n }\n\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (getContrast(color1, color2) >= minContrast) return color1;\n\n const { lightness, ...hueSaturation } = parseToHsl(color1);\n\n let shouldLighten = true;\n let shouldDarken = true;\n\n let lightEnough = '';\n let darkEnough = '';\n\n for (let i = 0; i <= 1; i += 0.01) {\n if (shouldLighten) {\n const lightented = hsl({\n ...hueSaturation,\n lightness: Math.min(lightness + i, 1)\n });\n\n if (getContrast(lightented, color2) >= minContrast) {\n if (mode !== 'dark') return lightented;\n\n shouldLighten = false;\n lightEnough = lightented;\n }\n\n if (lightness + i >= 1) shouldLighten = false;\n }\n\n if (shouldDarken) {\n const darkened = hsl({\n ...hueSaturation,\n lightness: Math.max(lightness - i, 0)\n });\n\n if (getContrast(darkened, color2) >= minContrast) {\n if (mode !== 'light') return darkened;\n\n shouldDarken = false;\n darkEnough = darkened;\n }\n\n if (lightness - i <= 0) shouldDarken = false;\n }\n\n if (!shouldLighten && !shouldDarken) break;\n }\n\n if (lightEnough) return lightEnough;\n if (darkEnough) return darkEnough;\n\n return readableColor(color2, { mode, level });\n};\n\nexport const omitProps = <O extends object = Record<PropertyKey, unknown>>(\n ...props: [prop: keyof O, ...props: (keyof O)[]]\n): StyledConfig<O> => ({\n shouldForwardProp: (prop, defaultValidatorFn) => !props.includes(prop) && defaultValidatorFn(prop)\n});\n\nexport type FontSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\nconst stepsMap = {\n xxs: -2,\n xs: -1,\n s: 0,\n m: 1,\n l: 2,\n xl: 3,\n xxl: 4\n};\n\nexport const colorIconMapping = (theme: DefaultTheme, iconName: string) => {\n switch (iconName) {\n case 'polaris':\n case 'polaris-solid':\n return theme.base.palette.ai;\n case 'paper-clip':\n return nlpColors[1];\n case 'person':\n return nlpColors[2];\n case 'tag':\n return nlpColors[3];\n case 'user-star':\n return nlpColors[10];\n case 'folder-nested':\n return nlpColors[19];\n default:\n return theme.base.colors.gray.medium;\n }\n};\n\nexport const calculateFontSize = (baseFontSize: string, baseFontScale: string | number) => {\n return Object.fromEntries(\n Object.entries(stepsMap).map(([size, steps]) => {\n const calculation = tryCatch(\n () =>\n baseFontScale === 'linear'\n ? math(`${baseFontSize} + (${steps} * 0.0625rem)`)\n : modularScale(steps, baseFontSize, baseFontScale as ModularScaleRatio),\n () => baseFontSize\n );\n\n if (size === 'xs' && Number.parseFloat(`${stripUnit(calculation)}`) < 0.75) {\n return [size, `max(calc((${baseFontSize} + 12px) / 2), 12px)`];\n }\n\n return [size, `max(${calculation}, 12px)`];\n })\n ) as Record<FontSize, string>;\n};\n\nexport const calculateForegroundColor = (background: string, foregroundColor: string) => {\n if (foregroundColor !== 'auto') {\n return foregroundColor;\n }\n\n return isSolidColor(background) ? readableColor(background) : '#000000';\n};\n\nexport const calculateBackgroundAndContrastColor = (\n background: string,\n foregroundColor: string\n): { contrastColor: string; backgroundColor: string } => {\n const isGradientBackground = !isSolidColor(background);\n const computedFgColor = calculateForegroundColor(background, foregroundColor);\n const computedBgColor = isGradientBackground ? readableColor(computedFgColor) : background;\n\n let contrastColor = darken(0.05, computedBgColor);\n if (getContrast(computedBgColor, contrastColor) === 1) {\n contrastColor = lighten(0.15, computedBgColor);\n }\n if (isGradientBackground) {\n contrastColor = transparentize(0.9, computedFgColor);\n }\n\n return {\n contrastColor,\n backgroundColor: computedBgColor\n };\n};\n\nexport const getTranslucentColor = (color: string): string => {\n const fallbackColor = isSolidColor(color) ? color : '#000000';\n const luminance = tryCatch(\n () => parseToHsl(fallbackColor).lightness,\n () => 1\n );\n if (luminance > 0.5) {\n return transparentize(0.5, '#ffffff');\n }\n return transparentize(0.95, '#ffffff');\n};\n\n/**\n * Converts a CSS time value to a number in milliseconds.\n *\n * @param time - The CSS time value as a string (e.g: \"2s\", \"500ms\") or a number. If undefined, returns 0.\n * @returns The time value in milliseconds.\n * If the input is a number, it is returned as is.\n * If the input is a string, it is parsed and converted to milliseconds.\n */\nexport const getCSSTimeInMilliseconds = (time: string | number | undefined): number => {\n if (time === undefined) return 0;\n if (typeof time === 'number') return time;\n\n const [value, unit] = getValueAndUnit(time);\n\n if (unit === 's') return value * 1000;\n if (unit === 'ms') return value;\n\n return 0;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,OAAO,EACP,aAAa,IAAI,qBAAqB,EACtC,MAAM,EACN,WAAW,EACX,GAAG,EACH,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,eAAe,EACf,cAAc,EACd,UAAU,EACX,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACnD,OAAO,CACL,GAAG;QACH,CAAE,GAAiB,CAAC,KAAK,KAAK,SAAS;YACrC,CAAE,GAAiB,CAAC,KAAK,KAAK,SAAS,IAAK,GAAiB,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAC9E,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,KAAa,EACb,EAAE,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,IAAI,KAAsB,EAAE,EAC9C,EAAE;IACV,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QAC5C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,WAAW,GAA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AAI,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAEhC,OAAO,CAAC,CAAC;AACX,CAAC,CAAC","sourcesContent":["import type { DefaultTheme, StyledConfig } from 'styled-components';\nimport {\n parseToHsl,\n lighten,\n readableColor as polishedReadableColor,\n darken,\n getContrast,\n hsl,\n modularScale,\n stripUnit,\n math,\n getValueAndUnit,\n transparentize,\n parseToRgb\n} from 'polished';\nimport type { RgbaColor } from 'polished/lib/types/color';\nimport type { ModularScaleRatio } from 'polished/lib/types/modularScaleRatio';\n\nimport { tryCatch } from '../utils';\n\nimport { wcagContrast } from './constants';\nimport { nlpColors } from './gradients';\n\ninterface ContrastOptions {\n mode?: 'light' | 'dark' | 'both';\n level?: keyof typeof wcagContrast | number;\n}\n\nexport const isSolidColor = (background: string) => {\n const rgb = tryCatch(() => parseToRgb(background));\n return (\n rgb &&\n ((rgb as RgbaColor).alpha === undefined ||\n ((rgb as RgbaColor).alpha !== undefined && (rgb as RgbaColor).alpha === 1))\n );\n};\n\nexport const readableColor = (\n color: string,\n { mode = 'light', level = 'AA' }: ContrastOptions = {}\n): string => {\n if (!isSolidColor(color) && mode === 'light') {\n return '#fff';\n }\n\n if (!isSolidColor(color) && mode === 'dark') {\n return '#000';\n }\n\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (mode === 'light' && getContrast('#fff', color) >= minContrast) {\n return '#fff';\n }\n\n if (mode === 'dark' && getContrast('#000', color) >= minContrast) {\n return '#000';\n }\n\n return tryCatch(\n () => polishedReadableColor(color),\n () => '#000'\n );\n};\n\nconst getBackgroundForegroundColors = (color: string, delta: number) => {\n const backgroundLightness = tryCatch(\n () => parseToHsl(color).lightness,\n () => 1\n );\n let background = tryCatch(() => lighten(delta, color));\n let foreground = tryCatch(() => readableColor(lighten(delta, color)));\n if (backgroundLightness > 0.35) {\n background = tryCatch(() => darken(delta, color));\n foreground = tryCatch(() => readableColor(darken(delta, color)));\n }\n\n return { background, foreground };\n};\n\nexport const getHoverColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.1);\n};\n\nexport const getActiveColors = (color: string) => {\n return getBackgroundForegroundColors(color, 0.2);\n};\n\nexport const readableHue = (\n color1: string,\n color2: string,\n { mode = 'both', level = 'AA' }: ContrastOptions = {}\n): string => {\n // if both the color are not solid, return black as fallback\n if (!isSolidColor(color1) && !isSolidColor(color2)) {\n return '#000000';\n }\n\n // if one of the color is not solid, return the other color\n if (!isSolidColor(color2)) {\n return color1;\n }\n\n if (!isSolidColor(color1)) {\n return color2;\n }\n\n const minContrast = typeof level === 'string' ? wcagContrast[level] : level;\n\n if (getContrast(color1, color2) >= minContrast) return color1;\n\n const { lightness, ...hueSaturation } = parseToHsl(color1);\n\n let shouldLighten = true;\n let shouldDarken = true;\n\n let lightEnough = '';\n let darkEnough = '';\n\n for (let i = 0; i <= 1; i += 0.01) {\n if (shouldLighten) {\n const lightented = hsl({\n ...hueSaturation,\n lightness: Math.min(lightness + i, 1)\n });\n\n if (getContrast(lightented, color2) >= minContrast) {\n if (mode !== 'dark') return lightented;\n\n shouldLighten = false;\n lightEnough = lightented;\n }\n\n if (lightness + i >= 1) shouldLighten = false;\n }\n\n if (shouldDarken) {\n const darkened = hsl({\n ...hueSaturation,\n lightness: Math.max(lightness - i, 0)\n });\n\n if (getContrast(darkened, color2) >= minContrast) {\n if (mode !== 'light') return darkened;\n\n shouldDarken = false;\n darkEnough = darkened;\n }\n\n if (lightness - i <= 0) shouldDarken = false;\n }\n\n if (!shouldLighten && !shouldDarken) break;\n }\n\n if (lightEnough) return lightEnough;\n if (darkEnough) return darkEnough;\n\n return readableColor(color2, { mode, level });\n};\n\nexport const omitProps = <O extends object = Record<PropertyKey, unknown>>(\n ...props: [prop: keyof O, ...props: (keyof O)[]]\n): StyledConfig<O> => ({\n shouldForwardProp: (prop, defaultValidatorFn) => !props.includes(prop) && defaultValidatorFn(prop)\n});\n\nexport type FontSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\nconst stepsMap = {\n xxs: -2,\n xs: -1,\n s: 0,\n m: 1,\n l: 2,\n xl: 3,\n xxl: 4\n};\n\nexport const colorIconMapping = (theme: DefaultTheme, iconName: string) => {\n switch (iconName) {\n case 'polaris':\n case 'polaris-solid':\n return theme.base.palette.ai;\n case 'paper-clip':\n return nlpColors[1];\n case 'person':\n return nlpColors[30];\n case 'tag':\n return nlpColors[3];\n case 'user-star':\n return nlpColors[10];\n case 'folder-nested':\n return nlpColors[19];\n default:\n return theme.base.colors.gray.medium;\n }\n};\n\nexport const calculateFontSize = (baseFontSize: string, baseFontScale: string | number) => {\n return Object.fromEntries(\n Object.entries(stepsMap).map(([size, steps]) => {\n const calculation = tryCatch(\n () =>\n baseFontScale === 'linear'\n ? math(`${baseFontSize} + (${steps} * 0.0625rem)`)\n : modularScale(steps, baseFontSize, baseFontScale as ModularScaleRatio),\n () => baseFontSize\n );\n\n if (size === 'xs' && Number.parseFloat(`${stripUnit(calculation)}`) < 0.75) {\n return [size, `max(calc((${baseFontSize} + 12px) / 2), 12px)`];\n }\n\n return [size, `max(${calculation}, 12px)`];\n })\n ) as Record<FontSize, string>;\n};\n\nexport const calculateForegroundColor = (background: string, foregroundColor: string) => {\n if (foregroundColor !== 'auto') {\n return foregroundColor;\n }\n\n return isSolidColor(background) ? readableColor(background) : '#000000';\n};\n\nexport const calculateBackgroundAndContrastColor = (\n background: string,\n foregroundColor: string\n): { contrastColor: string; backgroundColor: string } => {\n const isGradientBackground = !isSolidColor(background);\n const computedFgColor = calculateForegroundColor(background, foregroundColor);\n const computedBgColor = isGradientBackground ? readableColor(computedFgColor) : background;\n\n let contrastColor = darken(0.05, computedBgColor);\n if (getContrast(computedBgColor, contrastColor) === 1) {\n contrastColor = lighten(0.15, computedBgColor);\n }\n if (isGradientBackground) {\n contrastColor = transparentize(0.9, computedFgColor);\n }\n\n return {\n contrastColor,\n backgroundColor: computedBgColor\n };\n};\n\nexport const getTranslucentColor = (color: string): string => {\n const fallbackColor = isSolidColor(color) ? color : '#000000';\n const luminance = tryCatch(\n () => parseToHsl(fallbackColor).lightness,\n () => 1\n );\n if (luminance > 0.5) {\n return transparentize(0.5, '#ffffff');\n }\n return transparentize(0.95, '#ffffff');\n};\n\n/**\n * Converts a CSS time value to a number in milliseconds.\n *\n * @param time - The CSS time value as a string (e.g: \"2s\", \"500ms\") or a number. If undefined, returns 0.\n * @returns The time value in milliseconds.\n * If the input is a number, it is returned as is.\n * If the input is a string, it is parsed and converted to milliseconds.\n */\nexport const getCSSTimeInMilliseconds = (time: string | number | undefined): number => {\n if (time === undefined) return 0;\n if (typeof time === 'number') return time;\n\n const [value, unit] = getValueAndUnit(time);\n\n if (unit === 's') return value * 1000;\n if (unit === 'ms') return value;\n\n return 0;\n};\n"]}
|
package/lib/theme/theme.d.ts
CHANGED
|
@@ -598,6 +598,20 @@ export declare const BaseThemeMachine: ThemeMachine<{
|
|
|
598
598
|
$value: string;
|
|
599
599
|
};
|
|
600
600
|
};
|
|
601
|
+
icon: {
|
|
602
|
+
background: {
|
|
603
|
+
$type: string;
|
|
604
|
+
$value: string;
|
|
605
|
+
};
|
|
606
|
+
"box-shadow": {
|
|
607
|
+
$type: string;
|
|
608
|
+
$value: string;
|
|
609
|
+
};
|
|
610
|
+
color: {
|
|
611
|
+
$type: string;
|
|
612
|
+
$value: string;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
601
615
|
summary: {
|
|
602
616
|
detached: {
|
|
603
617
|
$type: string;
|
|
@@ -1951,6 +1965,11 @@ export declare const WorkTheme: {
|
|
|
1951
1965
|
readonly "background-color": string;
|
|
1952
1966
|
readonly "foreground-color": string;
|
|
1953
1967
|
};
|
|
1968
|
+
readonly icon: {
|
|
1969
|
+
readonly background: string;
|
|
1970
|
+
readonly "box-shadow": string;
|
|
1971
|
+
readonly color: string;
|
|
1972
|
+
};
|
|
1954
1973
|
readonly summary: {
|
|
1955
1974
|
readonly detached: boolean;
|
|
1956
1975
|
};
|
|
@@ -2615,6 +2634,11 @@ export declare const defaultThemeProp: Readonly<{
|
|
|
2615
2634
|
readonly "background-color": string;
|
|
2616
2635
|
readonly "foreground-color": string;
|
|
2617
2636
|
};
|
|
2637
|
+
readonly icon: {
|
|
2638
|
+
readonly background: string;
|
|
2639
|
+
readonly "box-shadow": string;
|
|
2640
|
+
readonly color: string;
|
|
2641
|
+
};
|
|
2618
2642
|
readonly summary: {
|
|
2619
2643
|
readonly detached: boolean;
|
|
2620
2644
|
};
|
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,YAAgC,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,sBAAsB,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,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,YAAgC,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,sBAAsB,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,IAAI,eAAe,EAAE,CAAC;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;AAEpE,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGhF,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAiB,YAAa,SAAQ,YAAY,CAAC,OAAO,sBAAsB,CAAC;KAAG;CACrF"}
|
|
@@ -593,6 +593,20 @@
|
|
|
593
593
|
"$value": "base.palette.brand-foreground"
|
|
594
594
|
}
|
|
595
595
|
},
|
|
596
|
+
"icon": {
|
|
597
|
+
"background": {
|
|
598
|
+
"$type": "literal",
|
|
599
|
+
"$value": "auto"
|
|
600
|
+
},
|
|
601
|
+
"box-shadow": {
|
|
602
|
+
"$type": "literal",
|
|
603
|
+
"$value": "auto"
|
|
604
|
+
},
|
|
605
|
+
"color": {
|
|
606
|
+
"$type": "inherited",
|
|
607
|
+
"$value": "base.palette.brand-foreground"
|
|
608
|
+
}
|
|
609
|
+
},
|
|
596
610
|
"summary": {
|
|
597
611
|
"detached": {
|
|
598
612
|
"$type": "literal",
|
|
@@ -519,6 +519,21 @@
|
|
|
519
519
|
},
|
|
520
520
|
"additionalProperties": false
|
|
521
521
|
},
|
|
522
|
+
"icon": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"background": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
},
|
|
528
|
+
"box-shadow": {
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
531
|
+
"color": {
|
|
532
|
+
"type": "string"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"additionalProperties": false
|
|
536
|
+
},
|
|
522
537
|
"summary": {
|
|
523
538
|
"type": "object",
|
|
524
539
|
"properties": {
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
"background": "#fff",
|
|
87
87
|
"foreground-color": "#001f5f"
|
|
88
88
|
},
|
|
89
|
+
"icon": {
|
|
90
|
+
"color": "#ffffff",
|
|
91
|
+
"background": "linear-gradient(22deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%)",
|
|
92
|
+
"box-shadow": "-1px 2px 3px rgba(3, 7, 18, 0.03), -4px 7px 11px rgba(3, 7, 18, 0.05), -9px 16px 24px rgba(3, 7, 18, 0.08), inset -1px 1px 1px 1px #ffffff55"
|
|
93
|
+
},
|
|
89
94
|
"summary": {
|
|
90
95
|
"detached": true
|
|
91
96
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-core",
|
|
3
|
-
"version": "9.0.0-build.13.
|
|
3
|
+
"version": "9.0.0-build.13.2",
|
|
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
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Pegasystems",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
26
26
|
"@popperjs/core": "^2.11.6",
|
|
27
|
+
"@types/dom-speech-recognition": "^0.0.7",
|
|
27
28
|
"@types/dompurify": "^3.0.5",
|
|
28
29
|
"@types/emoji-mart": "^3.0.14",
|
|
29
30
|
"@types/emoji-regex": "^8.0.0",
|