intergalactic 15.104.1 → 15.105.0-prerelease.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/button/index.d.ts +6 -0
  3. package/button/lib/cjs/Button.js +84 -67
  4. package/button/lib/cjs/Button.js.map +1 -1
  5. package/button/lib/cjs/index.d.js.map +1 -1
  6. package/button/lib/es6/Button.js +85 -67
  7. package/button/lib/es6/Button.js.map +1 -1
  8. package/button/lib/es6/index.d.js.map +1 -1
  9. package/button/lib/types/index.d.ts +6 -0
  10. package/components.json +5 -5
  11. package/data-table/Head.d.ts +4 -1
  12. package/data-table/lib/cjs/Body.js +3 -3
  13. package/data-table/lib/cjs/DataTable.js +36 -37
  14. package/data-table/lib/cjs/DataTable.js.map +1 -1
  15. package/data-table/lib/cjs/Head.js +13 -8
  16. package/data-table/lib/cjs/Head.js.map +1 -1
  17. package/data-table/lib/cjs/style/data-table.shadow.css +7 -4
  18. package/data-table/lib/es6/Body.js +3 -3
  19. package/data-table/lib/es6/DataTable.js +36 -37
  20. package/data-table/lib/es6/DataTable.js.map +1 -1
  21. package/data-table/lib/es6/Head.js +13 -8
  22. package/data-table/lib/es6/Head.js.map +1 -1
  23. package/data-table/lib/es6/style/data-table.shadow.css +7 -4
  24. package/data-table/lib/types/Head.d.ts +4 -1
  25. package/data-table/package.json +1 -1
  26. package/feedback-form/lib/cjs/FeedbackForm.js +9 -9
  27. package/feedback-form/lib/cjs/FeedbackForm.js.map +1 -1
  28. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  29. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +14 -17
  30. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
  31. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
  32. package/feedback-form/lib/es6/FeedbackForm.js +9 -9
  33. package/feedback-form/lib/es6/FeedbackForm.js.map +1 -1
  34. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  35. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +10 -13
  36. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
  37. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
  38. package/feedback-form/package.json +1 -1
  39. package/fullscreen-modal/index.d.ts +2 -2
  40. package/fullscreen-modal/lib/cjs/index.d.js.map +1 -1
  41. package/fullscreen-modal/lib/es6/index.d.js.map +1 -1
  42. package/fullscreen-modal/lib/types/index.d.ts +2 -2
  43. package/inline-edit/lib/cjs/InlineEdit.js +4 -4
  44. package/inline-edit/lib/cjs/translations/de.json +1 -1
  45. package/inline-edit/lib/cjs/translations/es.json +1 -1
  46. package/inline-edit/lib/cjs/translations/fr.json +1 -1
  47. package/inline-edit/lib/cjs/translations/it.json +1 -1
  48. package/inline-edit/lib/cjs/translations/ja.json +1 -1
  49. package/inline-edit/lib/cjs/translations/ko.json +1 -1
  50. package/inline-edit/lib/cjs/translations/nl.json +1 -1
  51. package/inline-edit/lib/cjs/translations/pl.json +1 -1
  52. package/inline-edit/lib/cjs/translations/pt.json +1 -1
  53. package/inline-edit/lib/cjs/translations/sv.json +1 -1
  54. package/inline-edit/lib/cjs/translations/tr.json +1 -1
  55. package/inline-edit/lib/cjs/translations/vi.json +1 -1
  56. package/inline-edit/lib/cjs/translations/zh.json +1 -1
  57. package/inline-edit/lib/es6/InlineEdit.js +4 -4
  58. package/inline-edit/lib/es6/translations/de.json +1 -1
  59. package/inline-edit/lib/es6/translations/es.json +1 -1
  60. package/inline-edit/lib/es6/translations/fr.json +1 -1
  61. package/inline-edit/lib/es6/translations/it.json +1 -1
  62. package/inline-edit/lib/es6/translations/ja.json +1 -1
  63. package/inline-edit/lib/es6/translations/ko.json +1 -1
  64. package/inline-edit/lib/es6/translations/nl.json +1 -1
  65. package/inline-edit/lib/es6/translations/pl.json +1 -1
  66. package/inline-edit/lib/es6/translations/pt.json +1 -1
  67. package/inline-edit/lib/es6/translations/sv.json +1 -1
  68. package/inline-edit/lib/es6/translations/tr.json +1 -1
  69. package/inline-edit/lib/es6/translations/vi.json +1 -1
  70. package/inline-edit/lib/es6/translations/zh.json +1 -1
  71. package/inline-edit/package.json +1 -1
  72. package/modal/index.d.ts +2 -1
  73. package/modal/lib/cjs/index.d.js.map +1 -1
  74. package/modal/lib/es6/index.d.js.map +1 -1
  75. package/modal/lib/types/index.d.ts +2 -1
  76. package/notice/index.d.ts +5 -0
  77. package/notice/lib/cjs/Notice.js +60 -37
  78. package/notice/lib/cjs/Notice.js.map +1 -1
  79. package/notice/lib/cjs/NoticeSmart.js +1 -1
  80. package/notice/lib/cjs/NoticeSmart.js.map +1 -1
  81. package/notice/lib/cjs/index.d.js.map +1 -1
  82. package/notice/lib/cjs/style/notice.shadow.css +3 -1
  83. package/notice/lib/es6/Notice.js +63 -39
  84. package/notice/lib/es6/Notice.js.map +1 -1
  85. package/notice/lib/es6/NoticeSmart.js +1 -1
  86. package/notice/lib/es6/NoticeSmart.js.map +1 -1
  87. package/notice/lib/es6/index.d.js.map +1 -1
  88. package/notice/lib/es6/style/notice.shadow.css +3 -1
  89. package/notice/lib/types/index.d.ts +5 -0
  90. package/notice/package.json +1 -1
  91. package/package.json +1 -1
  92. package/side-panel/index.d.ts +2 -1
  93. package/side-panel/lib/cjs/index.d.js.map +1 -1
  94. package/side-panel/lib/es6/index.d.js.map +1 -1
  95. package/side-panel/lib/types/index.d.ts +2 -1
  96. package/time-picker/lib/cjs/TimePicker.js +12 -12
  97. package/time-picker/lib/cjs/translations/de.json +6 -5
  98. package/time-picker/lib/cjs/translations/es.json +6 -5
  99. package/time-picker/lib/cjs/translations/fr.json +6 -5
  100. package/time-picker/lib/cjs/translations/it.json +6 -5
  101. package/time-picker/lib/cjs/translations/ja.json +6 -5
  102. package/time-picker/lib/cjs/translations/ko.json +6 -5
  103. package/time-picker/lib/cjs/translations/nl.json +6 -5
  104. package/time-picker/lib/cjs/translations/pl.json +6 -5
  105. package/time-picker/lib/cjs/translations/pt.json +6 -5
  106. package/time-picker/lib/cjs/translations/sv.json +6 -5
  107. package/time-picker/lib/cjs/translations/tr.json +6 -5
  108. package/time-picker/lib/cjs/translations/vi.json +6 -5
  109. package/time-picker/lib/cjs/translations/zh.json +6 -5
  110. package/time-picker/lib/es6/TimePicker.js +12 -12
  111. package/time-picker/lib/es6/translations/de.json +6 -5
  112. package/time-picker/lib/es6/translations/es.json +6 -5
  113. package/time-picker/lib/es6/translations/fr.json +6 -5
  114. package/time-picker/lib/es6/translations/it.json +6 -5
  115. package/time-picker/lib/es6/translations/ja.json +6 -5
  116. package/time-picker/lib/es6/translations/ko.json +6 -5
  117. package/time-picker/lib/es6/translations/nl.json +6 -5
  118. package/time-picker/lib/es6/translations/pl.json +6 -5
  119. package/time-picker/lib/es6/translations/pt.json +6 -5
  120. package/time-picker/lib/es6/translations/sv.json +6 -5
  121. package/time-picker/lib/es6/translations/tr.json +6 -5
  122. package/time-picker/lib/es6/translations/vi.json +6 -5
  123. package/time-picker/lib/es6/translations/zh.json +6 -5
  124. package/time-picker/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Notice.js","names":["React","createComponent","Component","sstyled","Root","Box","Close","resolveColorEnhance","FadeInOut","logger","NoticeGlobal","localizedMessages","i18nEnhance","cssVariableEnhance","style","_sstyled","insert","isCustomTheme","theme","includes","RootNotice","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getLabelProps","_this$asProps","asProps","resolveColor","getCloseIconProps","getI18nText","render","_ref","_ref6","SNotice","_this$asProps2","Children","styles","hidden","use","isAssertive","color","useTheme","ariaLive","undefined","warn","displayName","createElement","cn","_objectSpread","_assignProps","_defineProperty","variable","fallback","map","Number","parseInt","prop","i18n","locale","Label","_ref11","_ref2","arguments[0]","_ref7","SLabel","_assignProps2","Actions","_ref12","_ref3","_ref8","SActions","_assignProps3","Content","_ref13","_ref4","_ref9","SContent","_assignProps4","CloseIcon","_ref14","_ref5","_ref10","SCloseIcon","_assignProps5"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport Close from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport logger from '@semcore/utils/lib/logger';\nimport NoticeGlobal from '@semcore/notice-global';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice.shadow.css';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);\n}\n\nclass RootNotice extends Component {\n static displayName = 'Notice';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n resolveColorEnhance(),\n ];\n static defaultProps = {\n theme: 'info',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getLabelProps() {\n const { theme, resolveColor } = this.asProps;\n\n return { theme, resolveColor };\n }\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNotice = Root;\n const { Children, styles, hidden, theme, use, resolveColor, getI18nText } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n let ariaLive = isAssertive ? 'assertive' : 'polite';\n if (theme === 'neutral') {\n ariaLive = undefined;\n }\n\n if (use === 'primary') {\n logger.warn(\n true,\n `Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead`,\n RootNotice.displayName,\n );\n return <NoticeGlobal {...this.asProps} />;\n }\n\n return sstyled(styles)(\n <SNotice\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role='region'\n aria-live={ariaLive}\n aria-label={getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification')}\n >\n <Children />\n </SNotice>,\n );\n }\n}\n\nfunction Label({ styles, theme, resolveColor }) {\n const SLabel = Root;\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n const color = resolveColor(theme);\n return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);\n}\n\nfunction Actions({ styles }) {\n const SActions = Root;\n return sstyled(styles)(<SActions render={Box} />);\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Box} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={Close} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n});\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,GAAG,QAAQ,mBAAmB;AACvC,OAAOC,KAAK,MAAM,uBAAuB;AACzC,OAAOC,mBAAmB,MAAM,iDAAiD;AACjF,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,OAAOC,MAAM,MAAM,2BAA2B;AAC9C,OAAOC,YAAY,MAAM,wBAAwB;AACjD,SAASC,iBAAiB,QAAQ,gDAAgD;AAClF,OAAOC,WAAW,MAAM,yCAAyC;AACjE,SAASC,kBAAkB,QAAQ,mCAAmC;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAIvE,SAASC,aAAaA,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AAH,KAAA,IAAgB;AAClD;AAEA,SAASI,OAAOA,CAAAC,MAAA,EAAa;EAAA,IAAAC,KAAA,GAAAZ,YAAA;IAAAa,KAAA;EAAA,IAAVvC,MAAM,GAAAqC,MAAA,CAANrC,MAAM;EACvB,IAAMwC,QAAQ,GAC2B9E,GAAG;EAA5C,OAAA6E,KAAA,GAAO/E,OAAO,CAACwC,MAAM,CAAC,eAAC3C,KAAA,CAAAqD,aAAA,CAAC8B,QAAQ,EAAAD,KAAA,CAAA5B,EAAA,aAAAC,aAAA,KAAA6B,aAAA,KAAAH,KAAA,IAAgB;AAClD;AAEA,SAASI,SAASA,CAAAC,MAAA,EAA0B;EAAA,IAAAC,KAAA,GAAAlB,YAAA;IAAAmB,MAAA;EAAA,IAAvB7C,MAAM,GAAA2C,MAAA,CAAN3C,MAAM;IAAEP,WAAW,GAAAkD,MAAA,CAAXlD,WAAW;EACtC,IAAMqD,UAAU,GAEMpF,GAAG;EADzB,OAAAmF,MAAA,GAAOrF,OAAO,CAACwC,MAAM,CAAC,eACpB3C,KAAA,CAAAqD,aAAA,CAACoC,UAAU,EAAAD,MAAA,CAAAlC,EAAA,eAAAC,aAAA,KAAAmC,aAAA;IAAA,OAAmBpF,KAAK;IAAA;IAAA,cAA0B8B,WAAW,CAAC,OAAO;EAAC,GAAAmD,KAAA,IAAI;AAEzF;AAEA,eAAetF,eAAe,CAACmB,UAAU,EAAE;EACzC8C,KAAK,EAALA,KAAK;EACLO,OAAO,EAAPA,OAAO;EACPM,OAAO,EAAPA,OAAO;EACPM,SAAS,EAATA;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"Notice.js","names":["React","createComponent","Component","sstyled","Root","Box","Button","CloseIconM","resolveColorEnhance","FadeInOut","logger","NoticeGlobal","localizedMessages","i18nEnhance","cssVariableEnhance","style","_sstyled","insert","isCustomTheme","theme","includes","RootNotice","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getLabelProps","_this$asProps","asProps","resolveColor","getCloseIconProps","getI18nText","getCloseProps","render","_ref","_ref7","SNotice","_this$asProps2","Children","styles","hidden","use","isAssertive","color","useTheme","ariaLive","undefined","warn","displayName","createElement","cn","_objectSpread","_assignProps","_defineProperty","variable","fallback","map","Number","parseInt","prop","i18n","locale","Label","_ref13","_ref2","arguments[0]","_ref8","SLabel","_assignProps2","Actions","_ref14","_ref3","_ref9","SActions","_assignProps3","Content","_ref15","_ref4","_ref10","SContent","_assignProps4","CloseIcon","_ref16","_ref5","_ref11","SCloseIcon","_assignProps5","Close","_ref17","_ref6","_ref12","_assignProps6"],"sources":["../../src/Notice.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport CloseIconM from '@semcore/icon/Close/m';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { FadeInOut } from '@semcore/animation';\nimport logger from '@semcore/utils/lib/logger';\nimport NoticeGlobal from '@semcore/notice-global';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\nimport { cssVariableEnhance } from '@semcore/utils/lib/useCssVariable';\n\nimport style from './style/notice.shadow.css';\n\nfunction isCustomTheme(theme) {\n return !['danger', 'warning', 'success', 'info', 'muted'].includes(theme);\n}\n\nclass RootNotice extends Component {\n static displayName = 'Notice';\n static style = style;\n static enhance = [\n i18nEnhance(localizedMessages),\n cssVariableEnhance({\n variable: '--intergalactic-duration-popper',\n fallback: '200',\n map: Number.parseInt,\n prop: 'duration',\n }),\n resolveColorEnhance(),\n ];\n static defaultProps = {\n theme: 'info',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getLabelProps() {\n const { theme, resolveColor } = this.asProps;\n\n return { theme, resolveColor };\n }\n\n getCloseIconProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n getCloseProps() {\n const { getI18nText } = this.asProps;\n\n return { getI18nText };\n }\n\n render() {\n const SNotice = Root;\n const { Children, styles, hidden, theme, use, resolveColor, getI18nText } = this.asProps;\n const isAssertive = theme === 'danger' || theme === 'warning';\n const color = resolveColor(theme);\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n\n let ariaLive = isAssertive ? 'assertive' : 'polite';\n if (theme === 'neutral') {\n ariaLive = undefined;\n }\n\n if (use === 'primary') {\n logger.warn(\n true,\n `Deprecated property-value pair \"use=primary\", use component <NoticeGlobal/> instead`,\n RootNotice.displayName,\n );\n return <NoticeGlobal {...this.asProps} />;\n }\n\n return sstyled(styles)(\n <SNotice\n render={FadeInOut}\n visible={!hidden}\n use:theme={useTheme}\n backgroundColor={color}\n role='region'\n aria-live={ariaLive}\n aria-label={getI18nText(theme === 'danger' ? 'criticalNotification' : 'notification')}\n >\n <Children />\n </SNotice>,\n );\n }\n}\n\nfunction Label({ styles, theme, resolveColor }) {\n const SLabel = Root;\n const useTheme = isCustomTheme(theme) ? 'custom' : theme;\n const color = resolveColor(theme);\n return sstyled(styles)(<SLabel render={Box} use:theme={useTheme} color={color} />);\n}\n\nfunction Actions({ styles }) {\n const SActions = Root;\n return sstyled(styles)(<SActions render={Box} />);\n}\n\nfunction Content({ styles }) {\n const SContent = Root;\n return sstyled(styles)(<SContent render={Box} />);\n}\n\nfunction CloseIcon({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon render={Box} tag={CloseIconM} interactive aria-label={getI18nText('close')} />,\n );\n}\n\nfunction Close({ styles, getI18nText }) {\n const SCloseIcon = Root;\n return sstyled(styles)(\n <SCloseIcon\n render={Button}\n addonLeft={CloseIconM}\n use='tertiary'\n theme='muted'\n aria-label={getI18nText('close')}\n />,\n );\n}\n\nexport default createComponent(RootNotice, {\n Label,\n Actions,\n Content,\n CloseIcon,\n Close,\n});\n"],"mappings":";;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe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,CAAN3C,MAAM;IAAER,WAAW,GAAAmD,MAAA,CAAXnD,WAAW;EACtC,IAAMsD,UAAU,GAEMtF,GAAG;EADzB,OAAAqF,MAAA,GAAOvF,OAAO,CAAC0C,MAAM,CAAC,eACpB7C,KAAA,CAAAuD,aAAA,CAACoC,UAAU,EAAAD,MAAA,CAAAlC,EAAA,eAAAC,aAAA,KAAAmC,aAAA;IAAA,OAAmBrF,UAAU;IAAA;IAAA,cAA0B8B,WAAW,CAAC,OAAO;EAAC,GAAAoD,KAAA,IAAI;AAE9F;AAEA,SAASI,KAAKA,CAAAC,MAAA,EAA0B;EAAA,IAAAC,KAAA,GAAAxB,YAAA;IAAAyB,MAAA;EAAA,IAAvBnD,MAAM,GAAAiD,MAAA,CAANjD,MAAM;IAAER,WAAW,GAAAyD,MAAA,CAAXzD,WAAW;EAClC,IAAMsD,UAAU,GAGJrF,MAAM;EAFlB,OAAA0F,MAAA,GAAO7F,OAAO,CAAC0C,MAAM,CAAC,eACpB7C,KAAA,CAAAuD,aAAA,CAACoC,UAAU,EAAAK,MAAA,CAAAxC,EAAA,eAAAC,aAAA,KAAAwC,aAAA;IAAA,aAEE1F,UAAU;IAAA,OACjB,UAAU;IAAA,SACR,OAAO;IAAA,cACD8B,WAAW,CAAC,OAAO;EAAC,GAAA0D,KAAA,IAChC;AAEN;AAEA,eAAe9F,eAAe,CAACoB,UAAU,EAAE;EACzC+C,KAAK,EAALA,KAAK;EACLO,OAAO,EAAPA,OAAO;EACPM,OAAO,EAAPA,OAAO;EACPM,SAAS,EAATA,SAAS;EACTM,KAAK,EAALA;AACF,CAAC,CAAC"}
@@ -26,7 +26,7 @@ var NoticeSmart = /*#__PURE__*/function (_Component) {
26
26
  actions = _this$asProps.actions,
27
27
  closable = _this$asProps.closable,
28
28
  onClose = _this$asProps.onClose;
29
- return /*#__PURE__*/React.createElement(SNoticeSmart, _assignProps({}, _ref), isNode(label) && /*#__PURE__*/React.createElement(Notice.Label, null, label), /*#__PURE__*/React.createElement(Notice.Content, null, /*#__PURE__*/React.createElement(Children, null), isNode(actions) && /*#__PURE__*/React.createElement(Notice.Actions, null, actions)), closable && /*#__PURE__*/React.createElement(Notice.CloseIcon, {
29
+ return /*#__PURE__*/React.createElement(SNoticeSmart, _assignProps({}, _ref), isNode(label) && /*#__PURE__*/React.createElement(Notice.Label, null, label), /*#__PURE__*/React.createElement(Notice.Content, null, /*#__PURE__*/React.createElement(Children, null), isNode(actions) && /*#__PURE__*/React.createElement(Notice.Actions, null, actions)), closable && /*#__PURE__*/React.createElement(Notice.Close, {
30
30
  onClick: onClose
31
31
  }));
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NoticeSmart.js","names":["React","createComponent","Component","Root","isNode","Notice","NoticeSmart","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","SNoticeSmart","_this$asProps","Children","label","actions","closable","onClose","createElement","_assignProps","Label","Content","Actions","CloseIcon","onClick","_defineProperty","theme"],"sources":["../../src/NoticeSmart.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport isNode from '@semcore/utils/lib/isNode';\nimport Notice from './Notice';\n\nclass NoticeSmart extends Component {\n static displayName = 'NoticeSmart';\n\n static defaultProps = {\n theme: 'info',\n };\n\n render() {\n const SNoticeSmart = Root;\n const { Children, label, actions, closable, onClose } = this.asProps;\n return (\n <SNoticeSmart render={Notice}>\n {isNode(label) && <Notice.Label>{label}</Notice.Label>}\n <Notice.Content>\n <Children />\n {isNode(actions) && <Notice.Actions>{actions}</Notice.Actions>}\n </Notice.Content>\n {closable && <Notice.CloseIcon onClick={onClose} />}\n </SNoticeSmart>\n );\n }\n}\n\nexport default createComponent(NoticeSmart);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,MAAM,MAAM,2BAA2B;AAC9C,OA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BACM,aAAa;AAAA4B,eAAA,CAD9B5B,WAAW,kBAGO;EACpB6B,KAAK,EAAE;AACT,CAAC;AAkBH,eAAelC,eAAe,CAACK,WAAW,CAAC"}
1
+ {"version":3,"file":"NoticeSmart.js","names":["React","createComponent","Component","Root","isNode","Notice","NoticeSmart","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","render","_ref","asProps","SNoticeSmart","_this$asProps","Children","label","actions","closable","onClose","createElement","_assignProps","Label","Content","Actions","Close","onClick","_defineProperty","theme"],"sources":["../../src/NoticeSmart.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root } from '@semcore/core';\nimport isNode from '@semcore/utils/lib/isNode';\nimport Notice from './Notice';\n\nclass NoticeSmart extends Component {\n static displayName = 'NoticeSmart';\n\n static defaultProps = {\n theme: 'info',\n };\n\n render() {\n const SNoticeSmart = Root;\n const { Children, label, actions, closable, onClose } = this.asProps;\n return (\n <SNoticeSmart render={Notice}>\n {isNode(label) && <Notice.Label>{label}</Notice.Label>}\n <Notice.Content>\n <Children />\n {isNode(actions) && <Notice.Actions>{actions}</Notice.Actions>}\n </Notice.Content>\n {closable && <Notice.Close onClick={onClose} />}\n </SNoticeSmart>\n );\n }\n}\n\nexport default createComponent(NoticeSmart);\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAChE,OAAOC,MAAM,MAAM,2BAA2B;AAC9C,OAAOC,MAAM,MAAM,UAAU;AAAC,IAExBC,WAAW,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,WAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,WAAA;EAAA,SAAAA,YAAA;IAAAK,eAAA,OAAAL,WAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,WAAA;IAAAS,GAAA;IAAAC,KAAA,EAOf,SAAAC,OAAA,EAAS;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,IAAMC,YAAY,GAGMf,MAAM;MAF9B,IAAAgB,aAAA,GAAwD,IAAI,CAACF,OAAO;QAA5DG,QAAQ,GAAAD,aAAA,CAARC,QAAQ;QAAEC,KAAK,GAAAF,aAAA,CAALE,KAAK;QAAEC,OAAO,GAAAH,aAAA,CAAPG,OAAO;QAAEC,QAAQ,GAAAJ,aAAA,CAARI,QAAQ;QAAEC,OAAO,GAAAL,aAAA,CAAPK,OAAO;MACnD,oBACE1B,KAAA,CAAA2B,aAAA,CAACP,YAAY,EAAAQ,YAAA,KAAAV,IAAA,GACVd,MAAM,CAACmB,KAAK,CAAC,iBAAIvB,KAAA,CAAA2B,aAAA,CAACtB,MAAM,CAACwB,KAAK,QAAEN,KAAK,CAAgB,eACtDvB,KAAA,CAAA2B,aAAA,CAACtB,MAAM,CAACyB,OAAO,qBACb9B,KAAA,CAAA2B,aAAA,CAACL,QAAQ,OAAG,EACXlB,MAAM,CAACoB,OAAO,CAAC,iBAAIxB,KAAA,CAAA2B,aAAA,CAACtB,MAAM,CAAC0B,OAAO,QAAEP,OAAO,CAAkB,CAC/C,EAChBC,QAAQ,iBAAIzB,KAAA,CAAA2B,aAAA,CAACtB,MAAM,CAAC2B,KAAK;QAACC,OAAO,EAAEP;MAAQ,EAAG,CAClC;IAEnB;EAAC;EAAA,OAAApB,WAAA;AAAA,EApBuBJ,SAAS;AAAAgC,eAAA,CAA7B5B,WAAW,iBACM,aAAa;AAAA4B,eAAA,CAD9B5B,WAAW,kBAGO;EACpB6B,KAAK,EAAE;AACT,CAAC;AAkBH,eAAelC,eAAe,CAACK,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close icon\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { IconProps } from '@semcore/icon';\nimport { FadeInOutProps } from '@semcore/animation';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\nexport type NoticeUse = 'primary' | 'secondary';\n\n/** @deprecated */\nexport interface INoticeProps extends NoticeProps, UnknownProperties {}\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /** Notice type\n * @deprecated since version ^4.1.0\n */\n use?: NoticeUse;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeLabelProps extends NoticeLabelProps, UnknownProperties {}\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\n/** @deprecated */\nexport interface INoticeContext extends NoticeContext, UnknownProperties {}\nexport type NoticeContext = {\n getLabelProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface INoticeSmartProps extends NoticeSmartProps, UnknownProperties {}\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n /**\n * Adds a Close icon\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n /**\n * @deprecated Use Notice.Close instead of Notice.CloseIcon\n */\n CloseIcon: Intergalactic.Component<'div', IconProps>;\n Close: typeof Button;\n};\n\ndeclare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":""}
@@ -86,9 +86,11 @@ SActions {
86
86
  }
87
87
 
88
88
  SLabel {
89
- margin-top: var(--intergalactic-spacing-05x, 2px);
89
+ min-height: var(--intergalactic-form-control-m, 28px);
90
+ height: fit-content;
90
91
  margin-right: var(--intergalactic-spacing-2x, 8px);
91
92
  display: inline-flex;
93
+ align-items: center;
92
94
  }
93
95
 
94
96
  SLabel[theme='info'] {
@@ -1,5 +1,6 @@
1
1
  import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core';
2
2
  import { Box, BoxProps } from 'intergalactic/flex-box';
3
+ import Button from 'intergalactic/button';
3
4
  import { IconProps } from 'intergalactic/icon';
4
5
  import { FadeInOutProps } from 'intergalactic/animation';
5
6
 
@@ -65,7 +66,11 @@ declare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext>
65
66
  Label: Intergalactic.Component<'div', NoticeLabelProps>;
66
67
  Actions: typeof Box;
67
68
  Content: typeof Box;
69
+ /**
70
+ * @deprecated Use Notice.Close instead of Notice.CloseIcon
71
+ */
68
72
  CloseIcon: Intergalactic.Component<'div', IconProps>;
73
+ Close: typeof Button;
69
74
  };
70
75
 
71
76
  declare const NoticeSmart: Intergalactic.Component<'div', NoticeSmartProps>;
@@ -1 +1 @@
1
- {"name":"intergalactic/notice","description":"Semrush Notice Component","version":"5.38.2","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/animation":"2.31.2","@semcore/utils":"4.32.2","@semcore/flex-box":"5.31.2","@semcore/icon":"4.43.2","@semcore/notice-global":"2.48.2"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/notice"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
1
+ {"name":"intergalactic/notice","description":"Semrush Notice Component","version":"5.39.0-prerelease.1","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/animation":"2.31.2","@semcore/utils":"4.32.2","@semcore/button":"5.35.1","@semcore/flex-box":"5.31.2","@semcore/icon":"4.43.2","@semcore/notice-global":"2.48.2"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/notice"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intergalactic",
3
- "version": "15.104.1",
3
+ "version": "15.105.0-prerelease.1",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "intergalactic-migrate": "0.0.0",
@@ -4,6 +4,7 @@ import { FadeInOutProps, SlideProps } from 'intergalactic/animation';
4
4
  import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core';
5
5
  import { Box, BoxProps, Flex } from 'intergalactic/flex-box';
6
6
  import { Text } from 'intergalactic/typography';
7
+ import Button from 'intergalactic/button';
7
8
 
8
9
  export type OnCloseTriggerType = 'onOutsideClick' | 'onEscape' | 'onCloseClick';
9
10
  export type OnCloseType = (
@@ -79,7 +80,7 @@ declare const SidePanel: Intergalactic.Component<'div', SidePanelProps, SidePane
79
80
  Title: typeof Text;
80
81
  Overlay: Intergalactic.Component<'div', SidePanelOverlayProps>;
81
82
  Panel: Intergalactic.Component<'div', SidePanelPanelProps>;
82
- Close: typeof Box;
83
+ Close: typeof Button;
83
84
  };
84
85
 
85
86
  export default SidePanel;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PortalProps } from '@semcore/portal';\nimport { FadeInOutProps, SlideProps } from '@semcore/animation';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps, Flex } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\n\nexport type OnCloseTriggerType = 'onOutsideClick' | 'onEscape' | 'onCloseClick';\nexport type OnCloseType = (\n trigger: OnCloseTriggerType,\n e?: React.MouseEvent | React.KeyboardEvent,\n) => void;\n\nexport type SidePanelPlacement = 'top' | 'left' | 'right' | 'bottom';\n\n/** @deprecated */\nexport interface ISidePanelProps extends SidePanelProps, UnknownProperties {}\nexport type SidePanelProps = PortalProps &\n BoxProps & {\n /** Animation display duration in ms\n * @default 350\n */\n duration?: number;\n /**\n * The property responsible for the visibility of the component\n */\n visible?: boolean;\n /**\n * Callback for the component closure\n */\n onClose?: OnCloseType;\n /**\n * Property for displaying the close button\n * @default true\n */\n closable?: boolean;\n /**\n * Position of a dropdown window\n * @default right\n */\n placement?: SidePanelPlacement;\n /**\n * Setting `true` disables mechanism that hides document body scrollbar when SidePanel is visible\n * @default false\n */\n disablePreventScroll?: boolean;\n };\n\n/** @deprecated */\nexport interface ISidePanelOverlayProps extends SidePanelOverlayProps, UnknownProperties {}\nexport type SidePanelOverlayProps = FadeInOutProps & BoxProps & {};\n\n/** @deprecated */\nexport interface ISidePanelPanelProps extends SidePanelPanelProps, UnknownProperties {}\nexport type SidePanelPanelProps = SlideProps &\n BoxProps & {\n onOutsideClick?: (e?: React.SyntheticEvent) => void;\n };\n\n/** @deprecated */\nexport interface ISidePanelContext extends SidePanelContext, UnknownProperties {}\nexport type SidePanelContext = {\n getOverlayProps?: PropGetterFn;\n getPanelProps?: PropGetterFn;\n getCloseProps?: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface ISidePanelHeaderProps extends SidePanelHeaderProps, UnknownProperties {}\nexport type SidePanelHeaderProps = BoxProps & {\n title?: React.ReactNode;\n};\n\ndeclare const SidePanel: Intergalactic.Component<'div', SidePanelProps, SidePanelContext> & {\n Header: Intergalactic.Component<'div', SidePanelHeaderProps>;\n Back: typeof Box;\n Body: typeof Box;\n Footer: typeof Flex;\n Title: typeof Text;\n Overlay: Intergalactic.Component<'div', SidePanelOverlayProps>;\n Panel: Intergalactic.Component<'div', SidePanelPanelProps>;\n Close: typeof Box;\n};\n\nexport default SidePanel;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PortalProps } from '@semcore/portal';\nimport { FadeInOutProps, SlideProps } from '@semcore/animation';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps, Flex } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\nimport Button from '@semcore/button';\n\nexport type OnCloseTriggerType = 'onOutsideClick' | 'onEscape' | 'onCloseClick';\nexport type OnCloseType = (\n trigger: OnCloseTriggerType,\n e?: React.MouseEvent | React.KeyboardEvent,\n) => void;\n\nexport type SidePanelPlacement = 'top' | 'left' | 'right' | 'bottom';\n\n/** @deprecated */\nexport interface ISidePanelProps extends SidePanelProps, UnknownProperties {}\nexport type SidePanelProps = PortalProps &\n BoxProps & {\n /** Animation display duration in ms\n * @default 350\n */\n duration?: number;\n /**\n * The property responsible for the visibility of the component\n */\n visible?: boolean;\n /**\n * Callback for the component closure\n */\n onClose?: OnCloseType;\n /**\n * Property for displaying the close button\n * @default true\n */\n closable?: boolean;\n /**\n * Position of a dropdown window\n * @default right\n */\n placement?: SidePanelPlacement;\n /**\n * Setting `true` disables mechanism that hides document body scrollbar when SidePanel is visible\n * @default false\n */\n disablePreventScroll?: boolean;\n };\n\n/** @deprecated */\nexport interface ISidePanelOverlayProps extends SidePanelOverlayProps, UnknownProperties {}\nexport type SidePanelOverlayProps = FadeInOutProps & BoxProps & {};\n\n/** @deprecated */\nexport interface ISidePanelPanelProps extends SidePanelPanelProps, UnknownProperties {}\nexport type SidePanelPanelProps = SlideProps &\n BoxProps & {\n onOutsideClick?: (e?: React.SyntheticEvent) => void;\n };\n\n/** @deprecated */\nexport interface ISidePanelContext extends SidePanelContext, UnknownProperties {}\nexport type SidePanelContext = {\n getOverlayProps?: PropGetterFn;\n getPanelProps?: PropGetterFn;\n getCloseProps?: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface ISidePanelHeaderProps extends SidePanelHeaderProps, UnknownProperties {}\nexport type SidePanelHeaderProps = BoxProps & {\n title?: React.ReactNode;\n};\n\ndeclare const SidePanel: Intergalactic.Component<'div', SidePanelProps, SidePanelContext> & {\n Header: Intergalactic.Component<'div', SidePanelHeaderProps>;\n Back: typeof Box;\n Body: typeof Box;\n Footer: typeof Flex;\n Title: typeof Text;\n Overlay: Intergalactic.Component<'div', SidePanelOverlayProps>;\n Panel: Intergalactic.Component<'div', SidePanelPanelProps>;\n Close: typeof Button;\n};\n\nexport default SidePanel;\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PortalProps } from '@semcore/portal';\nimport { FadeInOutProps, SlideProps } from '@semcore/animation';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps, Flex } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\n\nexport type OnCloseTriggerType = 'onOutsideClick' | 'onEscape' | 'onCloseClick';\nexport type OnCloseType = (\n trigger: OnCloseTriggerType,\n e?: React.MouseEvent | React.KeyboardEvent,\n) => void;\n\nexport type SidePanelPlacement = 'top' | 'left' | 'right' | 'bottom';\n\n/** @deprecated */\nexport interface ISidePanelProps extends SidePanelProps, UnknownProperties {}\nexport type SidePanelProps = PortalProps &\n BoxProps & {\n /** Animation display duration in ms\n * @default 350\n */\n duration?: number;\n /**\n * The property responsible for the visibility of the component\n */\n visible?: boolean;\n /**\n * Callback for the component closure\n */\n onClose?: OnCloseType;\n /**\n * Property for displaying the close button\n * @default true\n */\n closable?: boolean;\n /**\n * Position of a dropdown window\n * @default right\n */\n placement?: SidePanelPlacement;\n /**\n * Setting `true` disables mechanism that hides document body scrollbar when SidePanel is visible\n * @default false\n */\n disablePreventScroll?: boolean;\n };\n\n/** @deprecated */\nexport interface ISidePanelOverlayProps extends SidePanelOverlayProps, UnknownProperties {}\nexport type SidePanelOverlayProps = FadeInOutProps & BoxProps & {};\n\n/** @deprecated */\nexport interface ISidePanelPanelProps extends SidePanelPanelProps, UnknownProperties {}\nexport type SidePanelPanelProps = SlideProps &\n BoxProps & {\n onOutsideClick?: (e?: React.SyntheticEvent) => void;\n };\n\n/** @deprecated */\nexport interface ISidePanelContext extends SidePanelContext, UnknownProperties {}\nexport type SidePanelContext = {\n getOverlayProps?: PropGetterFn;\n getPanelProps?: PropGetterFn;\n getCloseProps?: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface ISidePanelHeaderProps extends SidePanelHeaderProps, UnknownProperties {}\nexport type SidePanelHeaderProps = BoxProps & {\n title?: React.ReactNode;\n};\n\ndeclare const SidePanel: Intergalactic.Component<'div', SidePanelProps, SidePanelContext> & {\n Header: Intergalactic.Component<'div', SidePanelHeaderProps>;\n Back: typeof Box;\n Body: typeof Box;\n Footer: typeof Flex;\n Title: typeof Text;\n Overlay: Intergalactic.Component<'div', SidePanelOverlayProps>;\n Panel: Intergalactic.Component<'div', SidePanelPanelProps>;\n Close: typeof Box;\n};\n\nexport default SidePanel;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PortalProps } from '@semcore/portal';\nimport { FadeInOutProps, SlideProps } from '@semcore/animation';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Box, BoxProps, Flex } from '@semcore/flex-box';\nimport { Text } from '@semcore/typography';\nimport Button from '@semcore/button';\n\nexport type OnCloseTriggerType = 'onOutsideClick' | 'onEscape' | 'onCloseClick';\nexport type OnCloseType = (\n trigger: OnCloseTriggerType,\n e?: React.MouseEvent | React.KeyboardEvent,\n) => void;\n\nexport type SidePanelPlacement = 'top' | 'left' | 'right' | 'bottom';\n\n/** @deprecated */\nexport interface ISidePanelProps extends SidePanelProps, UnknownProperties {}\nexport type SidePanelProps = PortalProps &\n BoxProps & {\n /** Animation display duration in ms\n * @default 350\n */\n duration?: number;\n /**\n * The property responsible for the visibility of the component\n */\n visible?: boolean;\n /**\n * Callback for the component closure\n */\n onClose?: OnCloseType;\n /**\n * Property for displaying the close button\n * @default true\n */\n closable?: boolean;\n /**\n * Position of a dropdown window\n * @default right\n */\n placement?: SidePanelPlacement;\n /**\n * Setting `true` disables mechanism that hides document body scrollbar when SidePanel is visible\n * @default false\n */\n disablePreventScroll?: boolean;\n };\n\n/** @deprecated */\nexport interface ISidePanelOverlayProps extends SidePanelOverlayProps, UnknownProperties {}\nexport type SidePanelOverlayProps = FadeInOutProps & BoxProps & {};\n\n/** @deprecated */\nexport interface ISidePanelPanelProps extends SidePanelPanelProps, UnknownProperties {}\nexport type SidePanelPanelProps = SlideProps &\n BoxProps & {\n onOutsideClick?: (e?: React.SyntheticEvent) => void;\n };\n\n/** @deprecated */\nexport interface ISidePanelContext extends SidePanelContext, UnknownProperties {}\nexport type SidePanelContext = {\n getOverlayProps?: PropGetterFn;\n getPanelProps?: PropGetterFn;\n getCloseProps?: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface ISidePanelHeaderProps extends SidePanelHeaderProps, UnknownProperties {}\nexport type SidePanelHeaderProps = BoxProps & {\n title?: React.ReactNode;\n};\n\ndeclare const SidePanel: Intergalactic.Component<'div', SidePanelProps, SidePanelContext> & {\n Header: Intergalactic.Component<'div', SidePanelHeaderProps>;\n Back: typeof Box;\n Body: typeof Box;\n Footer: typeof Flex;\n Title: typeof Text;\n Overlay: Intergalactic.Component<'div', SidePanelOverlayProps>;\n Panel: Intergalactic.Component<'div', SidePanelPanelProps>;\n Close: typeof Button;\n};\n\nexport default SidePanel;\n"],"mappings":""}
@@ -4,6 +4,7 @@ import { FadeInOutProps, SlideProps } from 'intergalactic/animation';
4
4
  import { PropGetterFn, UnknownProperties, Intergalactic } from 'intergalactic/core';
5
5
  import { Box, BoxProps, Flex } from 'intergalactic/flex-box';
6
6
  import { Text } from 'intergalactic/typography';
7
+ import Button from 'intergalactic/button';
7
8
 
8
9
  export type OnCloseTriggerType = 'onOutsideClick' | 'onEscape' | 'onCloseClick';
9
10
  export type OnCloseType = (
@@ -79,7 +80,7 @@ declare const SidePanel: Intergalactic.Component<'div', SidePanelProps, SidePane
79
80
  Title: typeof Text;
80
81
  Overlay: Intergalactic.Component<'div', SidePanelOverlayProps>;
81
82
  Panel: Intergalactic.Component<'div', SidePanelPanelProps>;
82
- Close: typeof Box;
83
+ Close: typeof Button;
83
84
  };
84
85
 
85
86
  export default SidePanel;
@@ -30,18 +30,18 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
30
30
  var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
31
31
  var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
32
32
  /*__reshadow-styles__:"./style/time-picker.shadow.css"*/
33
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___STimePicker_16m2m_gg_{position:relative;width:auto;outline:0}.___STimePicker_16m2m_gg_.__keyboardFocused_16m2m_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePicker_16m2m_gg_.__disabled_16m2m_gg_{color:var(--intergalactic-text-secondary, #6c6e79);cursor:default}.___SPickerInput_16m2m_gg_{box-sizing:content-box;text-align:center;z-index:1;height:1.5em}.___SPickerInput_16m2m_gg_.__placeholder_16m2m_gg_{text-overflow:initial}.___SPickerInput_16m2m_gg_:focus{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SPickerInput_16m2m_gg_._size_l_16m2m_gg_,.___SPickerInput_16m2m_gg_._size_m_16m2m_gg_{width:19px;margin:0 var(--intergalactic-spacing-2x, 8px);padding:0}.___SPickerInput_16m2m_gg_._size_l_16m2m_gg_{width:21px}.___SPickerFormat_16m2m_gg_{flex-shrink:0;position:relative;display:inline-flex;padding:0;white-space:nowrap;font-family:inherit;font-weight:var(--intergalactic-medium, 500);line-height:normal;-webkit-text-decoration:none;text-decoration:none;align-items:center;border:1px solid var(--intergalactic-border-primary, #c4c7cf);border-radius:0 var(--intergalactic-control-rounded, 6px) var(--intergalactic-control-rounded, 6px)0;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}@media (hover:hover){.___SPickerFormat_16m2m_gg_:hover{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SPickerFormat_16m2m_gg_.__active_16m2m_gg_,.___SPickerFormat_16m2m_gg_:active{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-active, #c4c7cf)}.___SPickerFormat_16m2m_gg_:focus,.___SPickerFormat_16m2m_gg_:focus-visible{outline:0}.___SPickerFormat_16m2m_gg_._size_m_16m2m_gg_{height:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px);margin:0-1px 0 0}.___SPickerFormat_16m2m_gg_._size_m_16m2m_gg_ .___SPickerFormatText_16m2m_gg_{margin:0 var(--intergalactic-spacing-2x, 8px)}.___SPickerFormat_16m2m_gg_._size_l_16m2m_gg_{height:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px);margin:0 calc(-1*var(--intergalactic-spacing-1x, 4px))0 0}.___SPickerFormat_16m2m_gg_._size_l_16m2m_gg_ .___SPickerFormatText_16m2m_gg_{margin:0 var(--intergalactic-spacing-3x, 12px)}.___SPickerFormat_16m2m_gg_.__disabled_16m2m_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;border-color:transparent transparent transparent var(--intergalactic-border-primary, #c4c7cf)}.___SPickerFormat_16m2m_gg_.__keyboardFocused_16m2m_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePickerSeparator_16m2m_gg_{color:var(--intergalactic-text-primary, #191b23)}.___STimePickerSeparator_16m2m_gg_.__disabled_16m2m_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);pointer-events:none}" /*__inner_css_end__*/, "16m2m_gg_") /*__reshadow_css_end__*/, {
34
- "__STimePicker": "___STimePicker_16m2m_gg_",
35
- "_keyboardFocused": "__keyboardFocused_16m2m_gg_",
36
- "_disabled": "__disabled_16m2m_gg_",
37
- "__SPickerInput": "___SPickerInput_16m2m_gg_",
38
- "_size_m": "_size_m_16m2m_gg_",
39
- "_size_l": "_size_l_16m2m_gg_",
40
- "__SPickerFormat": "___SPickerFormat_16m2m_gg_",
41
- "__STimePickerSeparator": "___STimePickerSeparator_16m2m_gg_",
42
- "_placeholder": "__placeholder_16m2m_gg_",
43
- "_active": "__active_16m2m_gg_",
44
- "__SPickerFormatText": "___SPickerFormatText_16m2m_gg_"
33
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___STimePicker_1w4xu_gg_{position:relative;width:auto;outline:0}.___STimePicker_1w4xu_gg_.__keyboardFocused_1w4xu_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePicker_1w4xu_gg_.__disabled_1w4xu_gg_{color:var(--intergalactic-text-secondary, #6c6e79);cursor:default}.___SPickerInput_1w4xu_gg_{box-sizing:content-box;text-align:center;z-index:1;height:1.5em}.___SPickerInput_1w4xu_gg_.__placeholder_1w4xu_gg_{text-overflow:initial}.___SPickerInput_1w4xu_gg_:focus{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SPickerInput_1w4xu_gg_._size_l_1w4xu_gg_,.___SPickerInput_1w4xu_gg_._size_m_1w4xu_gg_{width:19px;margin:0 var(--intergalactic-spacing-2x, 8px);padding:0}.___SPickerInput_1w4xu_gg_._size_l_1w4xu_gg_{width:21px}.___SPickerFormat_1w4xu_gg_{flex-shrink:0;position:relative;display:inline-flex;padding:0;white-space:nowrap;font-family:inherit;font-weight:var(--intergalactic-medium, 500);line-height:normal;-webkit-text-decoration:none;text-decoration:none;align-items:center;border:1px solid var(--intergalactic-border-primary, #c4c7cf);border-radius:0 var(--intergalactic-control-rounded, 6px) var(--intergalactic-control-rounded, 6px)0;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}@media (hover:hover){.___SPickerFormat_1w4xu_gg_:hover{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SPickerFormat_1w4xu_gg_.__active_1w4xu_gg_,.___SPickerFormat_1w4xu_gg_:active{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-active, #c4c7cf)}.___SPickerFormat_1w4xu_gg_:focus,.___SPickerFormat_1w4xu_gg_:focus-visible{outline:0}.___SPickerFormat_1w4xu_gg_._size_m_1w4xu_gg_{height:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px);margin:0-1px 0 0}.___SPickerFormat_1w4xu_gg_._size_m_1w4xu_gg_ .___SPickerFormatText_1w4xu_gg_{margin:0 var(--intergalactic-spacing-2x, 8px)}.___SPickerFormat_1w4xu_gg_._size_l_1w4xu_gg_{height:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px);margin:0 calc(-1*var(--intergalactic-spacing-1x, 4px))0 0}.___SPickerFormat_1w4xu_gg_._size_l_1w4xu_gg_ .___SPickerFormatText_1w4xu_gg_{margin:0 var(--intergalactic-spacing-3x, 12px)}.___SPickerFormat_1w4xu_gg_.__disabled_1w4xu_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;border-color:transparent transparent transparent var(--intergalactic-border-primary, #c4c7cf)}.___SPickerFormat_1w4xu_gg_.__keyboardFocused_1w4xu_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePickerSeparator_1w4xu_gg_{color:var(--intergalactic-text-primary, #191b23)}.___STimePickerSeparator_1w4xu_gg_.__disabled_1w4xu_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);pointer-events:none}" /*__inner_css_end__*/, "1w4xu_gg_") /*__reshadow_css_end__*/, {
34
+ "__STimePicker": "___STimePicker_1w4xu_gg_",
35
+ "_keyboardFocused": "__keyboardFocused_1w4xu_gg_",
36
+ "_disabled": "__disabled_1w4xu_gg_",
37
+ "__SPickerInput": "___SPickerInput_1w4xu_gg_",
38
+ "_size_m": "_size_m_1w4xu_gg_",
39
+ "_size_l": "_size_l_1w4xu_gg_",
40
+ "__SPickerFormat": "___SPickerFormat_1w4xu_gg_",
41
+ "__STimePickerSeparator": "___STimePickerSeparator_1w4xu_gg_",
42
+ "_placeholder": "__placeholder_1w4xu_gg_",
43
+ "_active": "__active_1w4xu_gg_",
44
+ "__SPickerFormatText": "___SPickerFormatText_1w4xu_gg_"
45
45
  });
46
46
  var MAP_MERIDIEM = {
47
47
  AM: 'PM',
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Zeiteingabe, eingegebene Zeit ist {time} {meridiem}",
3
- "titleEmpty": "Zeiteingabe, keine Zeit eingegeben",
4
- "hours": "Eingabefeld Stunden",
5
- "minutes": "Eingabefeld Minuten",
6
- "format": "Zeitformat {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Auswählen",
4
+ "hours": "Stunden",
5
+ "minutes": "Minuten",
6
+ "formatToggler": "Zeitraum",
7
+ "changedFormatNotice": "Zeitraum geändert auf {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Introducción de la hora, la hora introducida es {time} {meridiem}",
3
- "titleEmpty": "Introducción de la hora, no se ha introducido la hora",
4
- "hours": "Campo de entrada de horas",
5
- "minutes": "Campo de input de minutos",
6
- "format": "Formato de tiempo {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Seleccionar",
4
+ "hours": "Horas",
5
+ "minutes": "Minutos",
6
+ "formatToggler": "Período de tiempo",
7
+ "changedFormatNotice": "Periodo de tiempo cambiado a {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Saisie de l’heure, l’heure saisie est {time} {meridiem}",
3
- "titleEmpty": "Saisie de l’heure, aucune heure n’a été saisie",
4
- "hours": "Champ de saisie des heures",
5
- "minutes": "Champ de saisie des minutes",
6
- "format": "Format de l’heure {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Sélectionner",
4
+ "hours": "Heures",
5
+ "minutes": "Minutes",
6
+ "formatToggler": "Période",
7
+ "changedFormatNotice": "La période a été définie sur {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Input dell'orario, l'orario inserito è {time} {meridiem}",
3
- "titleEmpty": "Input dell'orario, nessun orario inserito",
4
- "hours": "Campo input ore",
5
- "minutes": "Campo input minuti",
6
- "format": "Formato orario {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Seleziona",
4
+ "hours": "Ore",
5
+ "minutes": "Minuti",
6
+ "formatToggler": "Periodo",
7
+ "changedFormatNotice": "Periodo indicato in {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "時刻入力、入力された時刻は{time} {meridiem} です",
3
- "titleEmpty": "時刻入力、時刻は入力されていません",
4
- "hours": "時間入力フィールド",
5
- "minutes": "分入力フィールド",
6
- "format": "時刻フォーマット{meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "選択",
4
+ "hours": "時間",
5
+ "minutes": "",
6
+ "formatToggler": "期間",
7
+ "changedFormatNotice": "期間を {meridiem} に変更"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "시간 입력값, 입력된 시간은 {time} {meridiem}",
3
- "titleEmpty": "시간 입력값, 입력된 시간 없음",
4
- "hours": "시간 입력란",
5
- "minutes": "분 입력란",
6
- "format": "시간 형식 {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "선택",
4
+ "hours": "",
5
+ "minutes": "분",
6
+ "formatToggler": "시간대",
7
+ "changedFormatNotice": "시간대가 {meridiem}로 변경되었습니다"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Tijdsinvoer, ingevoerde tijd is {time} {meridiem}",
3
- "titleEmpty": "Tijdsinvoer, geen tijd ingevoerd",
4
- "hours": "Invoerveld voor uren",
5
- "minutes": "Invoerveld voor minuten",
6
- "format": "Tijdsindeling {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Selecteren",
4
+ "hours": "Uur",
5
+ "minutes": "Minuten",
6
+ "formatToggler": "Tijdzone",
7
+ "changedFormatNotice": "Tijdzone gewijzigd in {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Wprowadzanie czasu, wprowadzono czas to {time} {meridiem}",
3
- "titleEmpty": "Wprowadzanie czasu, nie wprowadzono czasu",
4
- "hours": "Pole wprowadzania godzin",
5
- "minutes": "Pole wprowadzania minut",
6
- "format": "Format czasu {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Wybierz",
4
+ "hours": "Godziny",
5
+ "minutes": "Minuty",
6
+ "formatToggler": "Pora dnia",
7
+ "changedFormatNotice": "Zmieniono porę dnia na {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Entrada de hora – a hora informada é {time} {meridiem}",
3
- "titleEmpty": "Entrada de hora – hora não foi informada",
4
- "hours": "Campo de entrada de horas",
5
- "minutes": "Campo de entrada de minutos",
6
- "format": "Formato de hora {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Selecionar",
4
+ "hours": "Horas",
5
+ "minutes": "Minutos",
6
+ "formatToggler": "Período",
7
+ "changedFormatNotice": "Período alterado para {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Inmatad tid, angiven tid är {time} {meridiem}",
3
- "titleEmpty": "Inmatad tid, ingen tid angiven",
4
- "hours": "Fält för inmatade timmar",
5
- "minutes": "Fält för inmatade minuter",
6
- "format": "Tidsformat {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Välj",
4
+ "hours": "Timmar",
5
+ "minutes": "Minuter",
6
+ "formatToggler": "Tidsperiod",
7
+ "changedFormatNotice": "Tidsperiod ändrad till {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Saat girişi, girilen saat {time} {meridiem}",
3
- "titleEmpty": "Saat girişi, saat girilmedi",
4
- "hours": "Saat giriş alanı",
5
- "minutes": "Dakika giriş alanı",
6
- "format": "Saat formatı {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Seç",
4
+ "hours": "Saat",
5
+ "minutes": "Dakika",
6
+ "formatToggler": "Zaman aralığı",
7
+ "changedFormatNotice": "Zaman aralığı {meridiem} olarak değiştirildi"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Nhập thời gian, thời gian đã nhập là {time} {meridiem}",
3
- "titleEmpty": "Nhập thời gian, không có thời gian đã nhập",
4
- "hours": "Trường nhập số giờ",
5
- "minutes": "Trường nhập số phút",
6
- "format": "Định dạng thời gian {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Chọn",
4
+ "hours": "Giờ",
5
+ "minutes": "Phút",
6
+ "formatToggler": "Thời gian",
7
+ "changedFormatNotice": "Thời gian đã đổi thành {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "时间输入,输入的时间是 {time} {meridiem}",
3
- "titleEmpty": "时间输入,未输入时间",
4
- "hours": "小时输入字段",
5
- "minutes": "分钟输入字段",
6
- "format": "时间格式 {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "选择",
4
+ "hours": "小时",
5
+ "minutes": "分钟",
6
+ "formatToggler": "时段",
7
+ "changedFormatNotice": "时间段已更改为 {meridiem}"
7
8
  }
@@ -18,18 +18,18 @@ import Format from './PickerFormat';
18
18
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
19
19
  import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
20
20
  /*__reshadow-styles__:"./style/time-picker.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STimePicker_16m2m_gg_{position:relative;width:auto;outline:0}.___STimePicker_16m2m_gg_.__keyboardFocused_16m2m_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePicker_16m2m_gg_.__disabled_16m2m_gg_{color:var(--intergalactic-text-secondary, #6c6e79);cursor:default}.___SPickerInput_16m2m_gg_{box-sizing:content-box;text-align:center;z-index:1;height:1.5em}.___SPickerInput_16m2m_gg_.__placeholder_16m2m_gg_{text-overflow:initial}.___SPickerInput_16m2m_gg_:focus{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SPickerInput_16m2m_gg_._size_l_16m2m_gg_,.___SPickerInput_16m2m_gg_._size_m_16m2m_gg_{width:19px;margin:0 var(--intergalactic-spacing-2x, 8px);padding:0}.___SPickerInput_16m2m_gg_._size_l_16m2m_gg_{width:21px}.___SPickerFormat_16m2m_gg_{flex-shrink:0;position:relative;display:inline-flex;padding:0;white-space:nowrap;font-family:inherit;font-weight:var(--intergalactic-medium, 500);line-height:normal;-webkit-text-decoration:none;text-decoration:none;align-items:center;border:1px solid var(--intergalactic-border-primary, #c4c7cf);border-radius:0 var(--intergalactic-control-rounded, 6px) var(--intergalactic-control-rounded, 6px)0;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}@media (hover:hover){.___SPickerFormat_16m2m_gg_:hover{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SPickerFormat_16m2m_gg_.__active_16m2m_gg_,.___SPickerFormat_16m2m_gg_:active{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-active, #c4c7cf)}.___SPickerFormat_16m2m_gg_:focus,.___SPickerFormat_16m2m_gg_:focus-visible{outline:0}.___SPickerFormat_16m2m_gg_._size_m_16m2m_gg_{height:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px);margin:0-1px 0 0}.___SPickerFormat_16m2m_gg_._size_m_16m2m_gg_ .___SPickerFormatText_16m2m_gg_{margin:0 var(--intergalactic-spacing-2x, 8px)}.___SPickerFormat_16m2m_gg_._size_l_16m2m_gg_{height:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px);margin:0 calc(-1*var(--intergalactic-spacing-1x, 4px))0 0}.___SPickerFormat_16m2m_gg_._size_l_16m2m_gg_ .___SPickerFormatText_16m2m_gg_{margin:0 var(--intergalactic-spacing-3x, 12px)}.___SPickerFormat_16m2m_gg_.__disabled_16m2m_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;border-color:transparent transparent transparent var(--intergalactic-border-primary, #c4c7cf)}.___SPickerFormat_16m2m_gg_.__keyboardFocused_16m2m_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePickerSeparator_16m2m_gg_{color:var(--intergalactic-text-primary, #191b23)}.___STimePickerSeparator_16m2m_gg_.__disabled_16m2m_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);pointer-events:none}" /*__inner_css_end__*/, "16m2m_gg_") /*__reshadow_css_end__*/, {
22
- "__STimePicker": "___STimePicker_16m2m_gg_",
23
- "_keyboardFocused": "__keyboardFocused_16m2m_gg_",
24
- "_disabled": "__disabled_16m2m_gg_",
25
- "__SPickerInput": "___SPickerInput_16m2m_gg_",
26
- "_size_m": "_size_m_16m2m_gg_",
27
- "_size_l": "_size_l_16m2m_gg_",
28
- "__SPickerFormat": "___SPickerFormat_16m2m_gg_",
29
- "__STimePickerSeparator": "___STimePickerSeparator_16m2m_gg_",
30
- "_placeholder": "__placeholder_16m2m_gg_",
31
- "_active": "__active_16m2m_gg_",
32
- "__SPickerFormatText": "___SPickerFormatText_16m2m_gg_"
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STimePicker_1w4xu_gg_{position:relative;width:auto;outline:0}.___STimePicker_1w4xu_gg_.__keyboardFocused_1w4xu_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePicker_1w4xu_gg_.__disabled_1w4xu_gg_{color:var(--intergalactic-text-secondary, #6c6e79);cursor:default}.___SPickerInput_1w4xu_gg_{box-sizing:content-box;text-align:center;z-index:1;height:1.5em}.___SPickerInput_1w4xu_gg_.__placeholder_1w4xu_gg_{text-overflow:initial}.___SPickerInput_1w4xu_gg_:focus{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SPickerInput_1w4xu_gg_._size_l_1w4xu_gg_,.___SPickerInput_1w4xu_gg_._size_m_1w4xu_gg_{width:19px;margin:0 var(--intergalactic-spacing-2x, 8px);padding:0}.___SPickerInput_1w4xu_gg_._size_l_1w4xu_gg_{width:21px}.___SPickerFormat_1w4xu_gg_{flex-shrink:0;position:relative;display:inline-flex;padding:0;white-space:nowrap;font-family:inherit;font-weight:var(--intergalactic-medium, 500);line-height:normal;-webkit-text-decoration:none;text-decoration:none;align-items:center;border:1px solid var(--intergalactic-border-primary, #c4c7cf);border-radius:0 var(--intergalactic-control-rounded, 6px) var(--intergalactic-control-rounded, 6px)0;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}@media (hover:hover){.___SPickerFormat_1w4xu_gg_:hover{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-hover, #e0e1e9)}}.___SPickerFormat_1w4xu_gg_.__active_1w4xu_gg_,.___SPickerFormat_1w4xu_gg_:active{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-bg-secondary-neutral-active, #c4c7cf)}.___SPickerFormat_1w4xu_gg_:focus,.___SPickerFormat_1w4xu_gg_:focus-visible{outline:0}.___SPickerFormat_1w4xu_gg_._size_m_1w4xu_gg_{height:var(--intergalactic-form-control-m, 28px);font-size:var(--intergalactic-fs-200, 14px);margin:0-1px 0 0}.___SPickerFormat_1w4xu_gg_._size_m_1w4xu_gg_ .___SPickerFormatText_1w4xu_gg_{margin:0 var(--intergalactic-spacing-2x, 8px)}.___SPickerFormat_1w4xu_gg_._size_l_1w4xu_gg_{height:var(--intergalactic-form-control-l, 40px);font-size:var(--intergalactic-fs-300, 16px);margin:0 calc(-1*var(--intergalactic-spacing-1x, 4px))0 0}.___SPickerFormat_1w4xu_gg_._size_l_1w4xu_gg_ .___SPickerFormatText_1w4xu_gg_{margin:0 var(--intergalactic-spacing-3x, 12px)}.___SPickerFormat_1w4xu_gg_.__disabled_1w4xu_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;border-color:transparent transparent transparent var(--intergalactic-border-primary, #c4c7cf)}.___SPickerFormat_1w4xu_gg_.__keyboardFocused_1w4xu_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___STimePickerSeparator_1w4xu_gg_{color:var(--intergalactic-text-primary, #191b23)}.___STimePickerSeparator_1w4xu_gg_.__disabled_1w4xu_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);pointer-events:none}" /*__inner_css_end__*/, "1w4xu_gg_") /*__reshadow_css_end__*/, {
22
+ "__STimePicker": "___STimePicker_1w4xu_gg_",
23
+ "_keyboardFocused": "__keyboardFocused_1w4xu_gg_",
24
+ "_disabled": "__disabled_1w4xu_gg_",
25
+ "__SPickerInput": "___SPickerInput_1w4xu_gg_",
26
+ "_size_m": "_size_m_1w4xu_gg_",
27
+ "_size_l": "_size_l_1w4xu_gg_",
28
+ "__SPickerFormat": "___SPickerFormat_1w4xu_gg_",
29
+ "__STimePickerSeparator": "___STimePickerSeparator_1w4xu_gg_",
30
+ "_placeholder": "__placeholder_1w4xu_gg_",
31
+ "_active": "__active_1w4xu_gg_",
32
+ "__SPickerFormatText": "___SPickerFormatText_1w4xu_gg_"
33
33
  });
34
34
  import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
35
35
  var MAP_MERIDIEM = {
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Zeiteingabe, eingegebene Zeit ist {time} {meridiem}",
3
- "titleEmpty": "Zeiteingabe, keine Zeit eingegeben",
4
- "hours": "Eingabefeld Stunden",
5
- "minutes": "Eingabefeld Minuten",
6
- "format": "Zeitformat {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Auswählen",
4
+ "hours": "Stunden",
5
+ "minutes": "Minuten",
6
+ "formatToggler": "Zeitraum",
7
+ "changedFormatNotice": "Zeitraum geändert auf {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Introducción de la hora, la hora introducida es {time} {meridiem}",
3
- "titleEmpty": "Introducción de la hora, no se ha introducido la hora",
4
- "hours": "Campo de entrada de horas",
5
- "minutes": "Campo de input de minutos",
6
- "format": "Formato de tiempo {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Seleccionar",
4
+ "hours": "Horas",
5
+ "minutes": "Minutos",
6
+ "formatToggler": "Período de tiempo",
7
+ "changedFormatNotice": "Periodo de tiempo cambiado a {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Saisie de l’heure, l’heure saisie est {time} {meridiem}",
3
- "titleEmpty": "Saisie de l’heure, aucune heure n’a été saisie",
4
- "hours": "Champ de saisie des heures",
5
- "minutes": "Champ de saisie des minutes",
6
- "format": "Format de l’heure {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Sélectionner",
4
+ "hours": "Heures",
5
+ "minutes": "Minutes",
6
+ "formatToggler": "Période",
7
+ "changedFormatNotice": "La période a été définie sur {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "Input dell'orario, l'orario inserito è {time} {meridiem}",
3
- "titleEmpty": "Input dell'orario, nessun orario inserito",
4
- "hours": "Campo input ore",
5
- "minutes": "Campo input minuti",
6
- "format": "Formato orario {meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "Seleziona",
4
+ "hours": "Ore",
5
+ "minutes": "Minuti",
6
+ "formatToggler": "Periodo",
7
+ "changedFormatNotice": "Periodo indicato in {meridiem}"
7
8
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "title": "時刻入力、入力された時刻は{time} {meridiem} です",
3
- "titleEmpty": "時刻入力、時刻は入力されていません",
4
- "hours": "時間入力フィールド",
5
- "minutes": "分入力フィールド",
6
- "format": "時刻フォーマット{meridiem}"
2
+ "title": "{time} {meridiem}",
3
+ "titleEmpty": "選択",
4
+ "hours": "時間",
5
+ "minutes": "",
6
+ "formatToggler": "期間",
7
+ "changedFormatNotice": "期間を {meridiem} に変更"
7
8
  }