@cloud-ru/ds-uikit-product-widget 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +201 -0
  3. package/README.md +374 -0
  4. package/dist/cjs/components/Widget/Widget.d.ts +2 -0
  5. package/dist/cjs/components/Widget/Widget.js +42 -0
  6. package/dist/cjs/components/Widget/index.d.ts +1 -0
  7. package/dist/cjs/components/Widget/index.js +17 -0
  8. package/dist/cjs/components/Widget/styles.module.css +284 -0
  9. package/dist/cjs/components/index.d.ts +1 -0
  10. package/dist/cjs/components/index.js +17 -0
  11. package/dist/cjs/constants.d.ts +25 -0
  12. package/dist/cjs/constants.js +28 -0
  13. package/dist/cjs/helperComponents/Actions/ActionView.d.ts +10 -0
  14. package/dist/cjs/helperComponents/Actions/ActionView.js +40 -0
  15. package/dist/cjs/helperComponents/Actions/Actions.d.ts +12 -0
  16. package/dist/cjs/helperComponents/Actions/Actions.js +43 -0
  17. package/dist/cjs/helperComponents/Actions/helpers.d.ts +21 -0
  18. package/dist/cjs/helperComponents/Actions/helpers.js +57 -0
  19. package/dist/cjs/helperComponents/Actions/index.d.ts +3 -0
  20. package/dist/cjs/helperComponents/Actions/index.js +21 -0
  21. package/dist/cjs/helperComponents/Actions/styles.module.css +46 -0
  22. package/dist/cjs/helperComponents/ButtonDroplist/ActionList.d.ts +9 -0
  23. package/dist/cjs/helperComponents/ButtonDroplist/ActionList.js +39 -0
  24. package/dist/cjs/helperComponents/ButtonDroplist/ButtonDroplist.d.ts +2 -0
  25. package/dist/cjs/helperComponents/ButtonDroplist/ButtonDroplist.js +34 -0
  26. package/dist/cjs/helperComponents/ButtonDroplist/index.d.ts +1 -0
  27. package/dist/cjs/helperComponents/ButtonDroplist/index.js +17 -0
  28. package/dist/cjs/helperComponents/ButtonDroplist/styles.module.css +5 -0
  29. package/dist/cjs/helperComponents/ButtonKebab/ButtonKebab.d.ts +2 -0
  30. package/dist/cjs/helperComponents/ButtonKebab/ButtonKebab.js +18 -0
  31. package/dist/cjs/helperComponents/ButtonKebab/index.d.ts +1 -0
  32. package/dist/cjs/helperComponents/ButtonKebab/index.js +17 -0
  33. package/dist/cjs/helperComponents/ButtonKebab/styles.module.css +5 -0
  34. package/dist/cjs/helperComponents/Content/Content.d.ts +11 -0
  35. package/dist/cjs/helperComponents/Content/Content.js +36 -0
  36. package/dist/cjs/helperComponents/Content/index.d.ts +1 -0
  37. package/dist/cjs/helperComponents/Content/index.js +17 -0
  38. package/dist/cjs/helperComponents/Content/styles.module.css +22 -0
  39. package/dist/cjs/helperComponents/ControlBlock/ControlBlock.d.ts +12 -0
  40. package/dist/cjs/helperComponents/ControlBlock/ControlBlock.js +22 -0
  41. package/dist/cjs/helperComponents/ControlBlock/index.d.ts +1 -0
  42. package/dist/cjs/helperComponents/ControlBlock/index.js +17 -0
  43. package/dist/cjs/helperComponents/ControlBlock/styles.module.css +12 -0
  44. package/dist/cjs/helperComponents/index.d.ts +5 -0
  45. package/dist/cjs/helperComponents/index.js +21 -0
  46. package/dist/cjs/index.d.ts +4 -0
  47. package/dist/cjs/index.js +20 -0
  48. package/dist/cjs/locale/index.d.ts +27 -0
  49. package/dist/cjs/locale/index.js +18 -0
  50. package/dist/cjs/package.json +3 -0
  51. package/dist/cjs/style.css +374 -0
  52. package/dist/cjs/types.d.ts +116 -0
  53. package/dist/cjs/types.js +2 -0
  54. package/dist/esm/components/Widget/Widget.d.ts +2 -0
  55. package/dist/esm/components/Widget/Widget.js +36 -0
  56. package/dist/esm/components/Widget/index.d.ts +1 -0
  57. package/dist/esm/components/Widget/index.js +1 -0
  58. package/dist/esm/components/Widget/styles.module.css +284 -0
  59. package/dist/esm/components/index.d.ts +1 -0
  60. package/dist/esm/components/index.js +1 -0
  61. package/dist/esm/constants.d.ts +25 -0
  62. package/dist/esm/constants.js +25 -0
  63. package/dist/esm/helperComponents/Actions/ActionView.d.ts +10 -0
  64. package/dist/esm/helperComponents/Actions/ActionView.js +37 -0
  65. package/dist/esm/helperComponents/Actions/Actions.d.ts +12 -0
  66. package/dist/esm/helperComponents/Actions/Actions.js +37 -0
  67. package/dist/esm/helperComponents/Actions/helpers.d.ts +21 -0
  68. package/dist/esm/helperComponents/Actions/helpers.js +50 -0
  69. package/dist/esm/helperComponents/Actions/index.d.ts +3 -0
  70. package/dist/esm/helperComponents/Actions/index.js +3 -0
  71. package/dist/esm/helperComponents/Actions/styles.module.css +46 -0
  72. package/dist/esm/helperComponents/ButtonDroplist/ActionList.d.ts +9 -0
  73. package/dist/esm/helperComponents/ButtonDroplist/ActionList.js +33 -0
  74. package/dist/esm/helperComponents/ButtonDroplist/ButtonDroplist.d.ts +2 -0
  75. package/dist/esm/helperComponents/ButtonDroplist/ButtonDroplist.js +28 -0
  76. package/dist/esm/helperComponents/ButtonDroplist/index.d.ts +1 -0
  77. package/dist/esm/helperComponents/ButtonDroplist/index.js +1 -0
  78. package/dist/esm/helperComponents/ButtonDroplist/styles.module.css +5 -0
  79. package/dist/esm/helperComponents/ButtonKebab/ButtonKebab.d.ts +2 -0
  80. package/dist/esm/helperComponents/ButtonKebab/ButtonKebab.js +12 -0
  81. package/dist/esm/helperComponents/ButtonKebab/index.d.ts +1 -0
  82. package/dist/esm/helperComponents/ButtonKebab/index.js +1 -0
  83. package/dist/esm/helperComponents/ButtonKebab/styles.module.css +5 -0
  84. package/dist/esm/helperComponents/Content/Content.d.ts +11 -0
  85. package/dist/esm/helperComponents/Content/Content.js +30 -0
  86. package/dist/esm/helperComponents/Content/index.d.ts +1 -0
  87. package/dist/esm/helperComponents/Content/index.js +1 -0
  88. package/dist/esm/helperComponents/Content/styles.module.css +22 -0
  89. package/dist/esm/helperComponents/ControlBlock/ControlBlock.d.ts +12 -0
  90. package/dist/esm/helperComponents/ControlBlock/ControlBlock.js +16 -0
  91. package/dist/esm/helperComponents/ControlBlock/index.d.ts +1 -0
  92. package/dist/esm/helperComponents/ControlBlock/index.js +1 -0
  93. package/dist/esm/helperComponents/ControlBlock/styles.module.css +12 -0
  94. package/dist/esm/helperComponents/index.d.ts +5 -0
  95. package/dist/esm/helperComponents/index.js +5 -0
  96. package/dist/esm/index.d.ts +4 -0
  97. package/dist/esm/index.js +4 -0
  98. package/dist/esm/locale/index.d.ts +27 -0
  99. package/dist/esm/locale/index.js +15 -0
  100. package/dist/esm/style.css +374 -0
  101. package/dist/esm/types.d.ts +116 -0
  102. package/dist/esm/types.js +1 -0
  103. package/dist/tsconfig.cjs.tsbuildinfo +1 -0
  104. package/dist/tsconfig.esm.tsbuildinfo +1 -0
  105. package/package.json +59 -0
  106. package/src/components/Widget/Widget.tsx +113 -0
  107. package/src/components/Widget/index.ts +1 -0
  108. package/src/components/Widget/styles.module.scss +93 -0
  109. package/src/components/index.ts +1 -0
  110. package/src/constants.ts +27 -0
  111. package/src/helperComponents/Actions/ActionView.tsx +56 -0
  112. package/src/helperComponents/Actions/Actions.tsx +84 -0
  113. package/src/helperComponents/Actions/helpers.ts +84 -0
  114. package/src/helperComponents/Actions/index.ts +3 -0
  115. package/src/helperComponents/Actions/styles.module.scss +54 -0
  116. package/src/helperComponents/ButtonDroplist/ButtonDroplist.tsx +50 -0
  117. package/src/helperComponents/ButtonDroplist/index.ts +1 -0
  118. package/src/helperComponents/ButtonDroplist/styles.module.scss +5 -0
  119. package/src/helperComponents/ButtonKebab/ButtonKebab.tsx +36 -0
  120. package/src/helperComponents/ButtonKebab/index.ts +1 -0
  121. package/src/helperComponents/ButtonKebab/styles.module.scss +5 -0
  122. package/src/helperComponents/Content/Content.tsx +72 -0
  123. package/src/helperComponents/Content/index.ts +1 -0
  124. package/src/helperComponents/Content/styles.module.scss +26 -0
  125. package/src/helperComponents/ControlBlock/ControlBlock.tsx +40 -0
  126. package/src/helperComponents/ControlBlock/index.ts +1 -0
  127. package/src/helperComponents/ControlBlock/styles.module.scss +16 -0
  128. package/src/helperComponents/index.ts +5 -0
  129. package/src/index.ts +4 -0
  130. package/src/locale/index.ts +19 -0
  131. package/src/types.ts +151 -0
@@ -0,0 +1,2 @@
1
+ import { ButtonKebabProps } from '../../types.js';
2
+ export declare const ButtonKebab: import("react").NamedExoticComponent<ButtonKebabProps>;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button, VIEW } from '@cloud-ru/ds-button';
3
+ import { KebabSVG } from '@cloud-ru/ds-icons/interface/system';
4
+ import { Droplist } from '@cloud-ru/ds-list';
5
+ import { memo } from 'react';
6
+ import { TEST_IDS } from '../../constants.js';
7
+ import styles from './styles.module.css';
8
+ function ButtonKebabComponent({ button, list }) {
9
+ const { items, className, closeDroplistOnItemClick = true, open, onOpenChange } = list;
10
+ return (_jsx(Droplist, { items: items, className: className, open: open, onOpenChange: onOpenChange, closeDroplistOnItemClick: closeDroplistOnItemClick, placement: 'bottom-end', triggerClassName: styles.trigger, "data-test-id": TEST_IDS.kebabDroplist, children: _jsx(Button, { ...button, icon: _jsx(KebabSVG, {}), appearance: 'neutral', size: 'm', view: VIEW.Outline, "data-test-id": TEST_IDS.kebabButton }) }));
11
+ }
12
+ export const ButtonKebab = memo(ButtonKebabComponent);
@@ -0,0 +1 @@
1
+ export * from './ButtonKebab.js';
@@ -0,0 +1 @@
1
+ export * from './ButtonKebab.js';
@@ -0,0 +1,5 @@
1
+ .trigger{
2
+ display:inline-flex;
3
+ align-items:center;
4
+ vertical-align:top;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { WidgetErrorStateProps, WidgetLoadingStateProps, WidgetState } from '../../types.js';
3
+ type ContentProps = {
4
+ children: ReactNode;
5
+ state?: WidgetState;
6
+ wide?: boolean;
7
+ loadingState?: WidgetLoadingStateProps;
8
+ errorState?: WidgetErrorStateProps;
9
+ };
10
+ export declare const Content: import("react").NamedExoticComponent<ContentProps>;
11
+ export {};
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button, VIEW } from '@cloud-ru/ds-button';
3
+ import { CrossSVG, UpdateSVG } from '@cloud-ru/ds-icons/interface/system';
4
+ import { InfoBlock } from '@cloud-ru/ds-info-block';
5
+ import { Skeleton } from '@cloud-ru/ds-skeleton';
6
+ import { memo } from 'react';
7
+ import { TEST_IDS, WIDGET_STATE } from '../../constants.js';
8
+ import { widgetLocale } from '../../locale/index.js';
9
+ import styles from './styles.module.css';
10
+ function ContentComponent({ children, state, wide, loadingState, errorState }) {
11
+ const { t } = widgetLocale.useTranslations();
12
+ switch (state) {
13
+ case WIDGET_STATE.Loading: {
14
+ if (loadingState?.loadingContent) {
15
+ return loadingState.loadingContent;
16
+ }
17
+ if (loadingState?.showSkeleton) {
18
+ return (_jsx("div", { className: styles.skeletonContent, children: _jsx(Skeleton, { loading: true, width: '100%', height: '80px', borderRadius: '8px' }) }));
19
+ }
20
+ return null;
21
+ }
22
+ case WIDGET_STATE.Error: {
23
+ return (_jsx("div", { className: styles.errorWrapper, "data-wide": wide || undefined, children: _jsx(InfoBlock, { size: 'm', className: styles.infoBlock, icon: errorState?.errorIcon ?? { icon: CrossSVG, appearance: 'neutral', background: true }, title: errorState?.errorTitle || t('dataErrorTitle'), content: errorState?.errorDescription || t('dataErrorDescription'), footer: errorState?.onClickUpdate && (_jsx(Button, { size: 'm', label: errorState?.updateButtonLabel || t('updateButtonLabel'), appearance: 'neutral', view: VIEW.Filled, icon: _jsx(UpdateSVG, {}), onClick: errorState?.onClickUpdate, "data-test-id": TEST_IDS.errorRetry })) }) }));
24
+ }
25
+ case WIDGET_STATE.Default:
26
+ default:
27
+ return children;
28
+ }
29
+ }
30
+ export const Content = memo(ContentComponent);
@@ -0,0 +1 @@
1
+ export * from './Content.js';
@@ -0,0 +1 @@
1
+ export * from './Content.js';
@@ -0,0 +1,22 @@
1
+ .skeletonContent{
2
+ display:flex;
3
+ flex-direction:column;
4
+ gap:var(--sn-primitive-dimension-4, 4px);
5
+ }
6
+
7
+ .errorWrapper{
8
+ display:flex;
9
+ justify-content:center;
10
+ box-sizing:border-box;
11
+ width:100%;
12
+ padding-block:var(--sn-primitive-dimension-8, 8px);
13
+ }
14
+ .errorWrapper[data-wide]{
15
+ padding-block:var(--sn-primitive-dimension-16, 16px);
16
+ }
17
+
18
+ .infoBlock{
19
+ justify-content:center;
20
+ width:100%;
21
+ max-width:calc(9 * var(--sn-primitive-dimension-64, 64px) + var(--sn-primitive-dimension-48, 48px));
22
+ }
@@ -0,0 +1,12 @@
1
+ import { SegmentControlProps } from '@cloud-ru/ds-segment-control';
2
+ import { ReactNode } from 'react';
3
+ import { WidgetAction, WidgetState } from '../../types.js';
4
+ type ControlBlockProps = {
5
+ actions?: WidgetAction[];
6
+ actionsChildren?: ReactNode;
7
+ segmentControl?: SegmentControlProps;
8
+ wide?: boolean;
9
+ state?: WidgetState;
10
+ };
11
+ export declare const ControlBlock: import("react").NamedExoticComponent<ControlBlockProps>;
12
+ export {};
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SegmentControl } from '@cloud-ru/ds-segment-control';
3
+ import { Skeleton } from '@cloud-ru/ds-skeleton';
4
+ import { memo } from 'react';
5
+ import { TEST_IDS } from '../../constants.js';
6
+ import { Actions } from '../Actions/index.js';
7
+ import styles from './styles.module.css';
8
+ function ControlBlockComponent({ actions, actionsChildren, segmentControl, wide, state }) {
9
+ const shouldShowControl = segmentControl || state === 'loading';
10
+ if (!shouldShowControl && !wide) {
11
+ return null;
12
+ }
13
+ const content = state === 'loading' ? (_jsx(Skeleton, { loading: true, width: '100%', height: '32px', borderRadius: '8px' })) : (segmentControl && _jsx(SegmentControl, { ...segmentControl }));
14
+ return (_jsxs("div", { className: styles.controlWrapper, "data-mobile": !wide || undefined, "data-test-id": TEST_IDS.control, children: [shouldShowControl && content, wide && _jsx(Actions, { actions: actions, actionsChildren: actionsChildren, wide: wide, state: state })] }));
15
+ }
16
+ export const ControlBlock = memo(ControlBlockComponent);
@@ -0,0 +1 @@
1
+ export * from './ControlBlock.js';
@@ -0,0 +1 @@
1
+ export * from './ControlBlock.js';
@@ -0,0 +1,12 @@
1
+ .controlWrapper{
2
+ display:flex;
3
+ flex-shrink:0;
4
+ gap:var(--sn-primitive-dimension-8, 8px);
5
+ align-items:center;
6
+ }
7
+ .controlWrapper[data-mobile]{
8
+ width:100%;
9
+ }
10
+ .controlWrapper[data-mobile] > *{
11
+ width:100%;
12
+ }
@@ -0,0 +1,5 @@
1
+ export * from './Actions/index.js';
2
+ export * from './ButtonDroplist/index.js';
3
+ export * from './ButtonKebab/index.js';
4
+ export * from './Content/index.js';
5
+ export * from './ControlBlock/index.js';
@@ -0,0 +1,5 @@
1
+ export * from './Actions/index.js';
2
+ export * from './ButtonDroplist/index.js';
3
+ export * from './ButtonKebab/index.js';
4
+ export * from './Content/index.js';
5
+ export * from './ControlBlock/index.js';
@@ -0,0 +1,4 @@
1
+ export * from './components/index.js';
2
+ export * from './constants.js';
3
+ export * from './types.js';
4
+ export * from './locale/index.js';
@@ -0,0 +1,4 @@
1
+ export * from './components/index.js';
2
+ export * from './constants.js';
3
+ export * from './types.js';
4
+ export * from './locale/index.js';
@@ -0,0 +1,27 @@
1
+ declare const WIDGET_MESSAGES: {
2
+ readonly 'en-GB': {
3
+ readonly dataErrorTitle: "Could not load data";
4
+ readonly dataErrorDescription: "Try to refresh the widget";
5
+ readonly updateButtonLabel: "Update";
6
+ };
7
+ readonly 'ru-RU': {
8
+ readonly dataErrorTitle: "Не удалось получить данные";
9
+ readonly dataErrorDescription: "Попробуйте обновить виджет";
10
+ readonly updateButtonLabel: "Обновить";
11
+ };
12
+ };
13
+ export type WidgetMessages = (typeof WIDGET_MESSAGES)['en-GB'];
14
+ /** locale компонента Widget: `widgetLocale.useTranslations()` в коде, `widgetLocale.extend(...)` в сервисе. */
15
+ export declare const widgetLocale: import("@cloud-ru/ds-locale").DefinedLocale<{
16
+ readonly 'en-GB': {
17
+ readonly dataErrorTitle: "Could not load data";
18
+ readonly dataErrorDescription: "Try to refresh the widget";
19
+ readonly updateButtonLabel: "Update";
20
+ };
21
+ readonly 'ru-RU': {
22
+ readonly dataErrorTitle: "Не удалось получить данные";
23
+ readonly dataErrorDescription: "Попробуйте обновить виджет";
24
+ readonly updateButtonLabel: "Обновить";
25
+ };
26
+ }, "@cloud-ru/ds-uikit-product-widget">;
27
+ export {};
@@ -0,0 +1,15 @@
1
+ import { defineLocale, defineMessages } from '@cloud-ru/ds-locale';
2
+ const WIDGET_MESSAGES = defineMessages({
3
+ 'en-GB': {
4
+ dataErrorTitle: 'Could not load data',
5
+ dataErrorDescription: 'Try to refresh the widget',
6
+ updateButtonLabel: 'Update',
7
+ },
8
+ 'ru-RU': {
9
+ dataErrorTitle: 'Не удалось получить данные',
10
+ dataErrorDescription: 'Попробуйте обновить виджет',
11
+ updateButtonLabel: 'Обновить',
12
+ },
13
+ });
14
+ /** locale компонента Widget: `widgetLocale.useTranslations()` в коде, `widgetLocale.extend(...)` в сервисе. */
15
+ export const widgetLocale = defineLocale('@cloud-ru/ds-uikit-product-widget', WIDGET_MESSAGES);
@@ -0,0 +1,374 @@
1
+ @charset "UTF-8";
2
+ .widget{
3
+ position:relative;
4
+ display:flex;
5
+ flex-direction:column;
6
+ gap:var(--sn-primitive-dimension-12, 12px);
7
+ box-sizing:border-box;
8
+ width:100%;
9
+ min-width:0;
10
+ padding:var(--sn-primitive-dimension-16, 16px);
11
+ border-radius:var(--sn-card-anatomy-radius-l-container-borderRadius, var(--sn-brand-anatomy-radius-card-l, var(--sn-primitive-dimension-4, 4px)));
12
+ color:var(--sn-theme-color-available-version-textMain, var(--sn-brand-color-text-version-main, #41424e));
13
+ background:var(--sn-theme-color-neutral-background1Level, var(--sn-brand-color-neutral-95, var(--sn-primitive-color-gray-95, #fdfdfd)));
14
+ }
15
+ .widget[data-acrylic-appearance=primary][data-acrylic-level=default]{
16
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
17
+ }
18
+ .widget[data-acrylic-appearance=primary][data-acrylic-level=default] .acrylic{
19
+ opacity:var(--sn-acrylic-opacityBackground, 1);
20
+ background:var(--sn-theme-color-primary-background, var(--sn-brand-color-primary-90, var(--sn-brandRole-color-brandA-90, var(--sn-primitive-color-brandA-90, #edf7f1))));
21
+ }
22
+ .widget[data-acrylic-appearance=primary][data-acrylic-level="1Level"]{
23
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
24
+ }
25
+ .widget[data-acrylic-appearance=primary][data-acrylic-level="1Level"] .acrylic{
26
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
27
+ background:var(--sn-theme-color-primary-background1Level, var(--sn-brand-color-primary-95, var(--sn-brandRole-color-brandA-95, var(--sn-primitive-color-brandA-95, #f5fdf8))));
28
+ }
29
+ .widget[data-acrylic-appearance=primary][data-acrylic-level="2Level"]{
30
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
31
+ }
32
+ .widget[data-acrylic-appearance=primary][data-acrylic-level="2Level"] .acrylic{
33
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
34
+ background:var(--sn-theme-color-primary-background2Level, var(--sn-brand-color-primary-99, var(--sn-brandRole-color-brandA-99, var(--sn-primitive-color-brandA-99, #fbfffc))));
35
+ }
36
+ .widget[data-acrylic-appearance=neutral][data-acrylic-level=default]{
37
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
38
+ }
39
+ .widget[data-acrylic-appearance=neutral][data-acrylic-level=default] .acrylic{
40
+ opacity:var(--sn-acrylic-opacityBackground, 1);
41
+ background:var(--sn-theme-color-neutral-background, var(--sn-brand-color-neutral-90, var(--sn-primitive-color-gray-90, #eeeff3)));
42
+ }
43
+ .widget[data-acrylic-appearance=neutral][data-acrylic-level="1Level"]{
44
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
45
+ }
46
+ .widget[data-acrylic-appearance=neutral][data-acrylic-level="1Level"] .acrylic{
47
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
48
+ background:var(--sn-theme-color-neutral-background1Level, var(--sn-brand-color-neutral-95, var(--sn-primitive-color-gray-95, #fdfdfd)));
49
+ }
50
+ .widget[data-acrylic-appearance=neutral][data-acrylic-level="2Level"]{
51
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
52
+ }
53
+ .widget[data-acrylic-appearance=neutral][data-acrylic-level="2Level"] .acrylic{
54
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
55
+ background:var(--sn-theme-color-neutral-background2Level, var(--sn-brand-color-neutral-99, var(--sn-primitive-color-gray-99, #ffffff)));
56
+ }
57
+ .widget[data-acrylic-appearance=red][data-acrylic-level=default]{
58
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
59
+ }
60
+ .widget[data-acrylic-appearance=red][data-acrylic-level=default] .acrylic{
61
+ opacity:var(--sn-acrylic-opacityBackground, 1);
62
+ background:var(--sn-theme-color-red-background, var(--sn-primitive-color-red-90, #fee8e5));
63
+ }
64
+ .widget[data-acrylic-appearance=red][data-acrylic-level="1Level"]{
65
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
66
+ }
67
+ .widget[data-acrylic-appearance=red][data-acrylic-level="1Level"] .acrylic{
68
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
69
+ background:var(--sn-theme-color-red-background1Level, var(--sn-primitive-color-red-95, #fef5f1));
70
+ }
71
+ .widget[data-acrylic-appearance=red][data-acrylic-level="2Level"]{
72
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
73
+ }
74
+ .widget[data-acrylic-appearance=red][data-acrylic-level="2Level"] .acrylic{
75
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
76
+ background:var(--sn-theme-color-red-background2Level, var(--sn-primitive-color-red-99, #fffaf7));
77
+ }
78
+ .widget[data-acrylic-appearance=orange][data-acrylic-level=default]{
79
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
80
+ }
81
+ .widget[data-acrylic-appearance=orange][data-acrylic-level=default] .acrylic{
82
+ opacity:var(--sn-acrylic-opacityBackground, 1);
83
+ background:var(--sn-theme-color-orange-background, var(--sn-primitive-color-orange-90, #ffedcf));
84
+ }
85
+ .widget[data-acrylic-appearance=orange][data-acrylic-level="1Level"]{
86
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
87
+ }
88
+ .widget[data-acrylic-appearance=orange][data-acrylic-level="1Level"] .acrylic{
89
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
90
+ background:var(--sn-theme-color-orange-background1Level, var(--sn-primitive-color-orange-95, #fff6e5));
91
+ }
92
+ .widget[data-acrylic-appearance=orange][data-acrylic-level="2Level"]{
93
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
94
+ }
95
+ .widget[data-acrylic-appearance=orange][data-acrylic-level="2Level"] .acrylic{
96
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
97
+ background:var(--sn-theme-color-orange-background2Level, var(--sn-primitive-color-orange-99, #fffcf4));
98
+ }
99
+ .widget[data-acrylic-appearance=yellow][data-acrylic-level=default]{
100
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
101
+ }
102
+ .widget[data-acrylic-appearance=yellow][data-acrylic-level=default] .acrylic{
103
+ opacity:var(--sn-acrylic-opacityBackground, 1);
104
+ background:var(--sn-theme-color-yellow-background, var(--sn-primitive-color-yellow-90, #fdf4cc));
105
+ }
106
+ .widget[data-acrylic-appearance=yellow][data-acrylic-level="1Level"]{
107
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
108
+ }
109
+ .widget[data-acrylic-appearance=yellow][data-acrylic-level="1Level"] .acrylic{
110
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
111
+ background:var(--sn-theme-color-yellow-background1Level, var(--sn-primitive-color-yellow-95, #fffbe6));
112
+ }
113
+ .widget[data-acrylic-appearance=yellow][data-acrylic-level="2Level"]{
114
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
115
+ }
116
+ .widget[data-acrylic-appearance=yellow][data-acrylic-level="2Level"] .acrylic{
117
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
118
+ background:var(--sn-theme-color-yellow-background2Level, var(--sn-primitive-color-yellow-99, #fffef6));
119
+ }
120
+ .widget[data-acrylic-appearance=green][data-acrylic-level=default]{
121
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
122
+ }
123
+ .widget[data-acrylic-appearance=green][data-acrylic-level=default] .acrylic{
124
+ opacity:var(--sn-acrylic-opacityBackground, 1);
125
+ background:var(--sn-theme-color-green-background, var(--sn-primitive-color-green-90, #e4f5df));
126
+ }
127
+ .widget[data-acrylic-appearance=green][data-acrylic-level="1Level"]{
128
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
129
+ }
130
+ .widget[data-acrylic-appearance=green][data-acrylic-level="1Level"] .acrylic{
131
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
132
+ background:var(--sn-theme-color-green-background1Level, var(--sn-primitive-color-green-95, #f1faed));
133
+ }
134
+ .widget[data-acrylic-appearance=green][data-acrylic-level="2Level"]{
135
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
136
+ }
137
+ .widget[data-acrylic-appearance=green][data-acrylic-level="2Level"] .acrylic{
138
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
139
+ background:var(--sn-theme-color-green-background2Level, var(--sn-primitive-color-green-99, #fcfefa));
140
+ }
141
+ .widget[data-acrylic-appearance=blue][data-acrylic-level=default]{
142
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
143
+ }
144
+ .widget[data-acrylic-appearance=blue][data-acrylic-level=default] .acrylic{
145
+ opacity:var(--sn-acrylic-opacityBackground, 1);
146
+ background:var(--sn-theme-color-blue-background, var(--sn-primitive-color-blue-90, #e6f4fd));
147
+ }
148
+ .widget[data-acrylic-appearance=blue][data-acrylic-level="1Level"]{
149
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
150
+ }
151
+ .widget[data-acrylic-appearance=blue][data-acrylic-level="1Level"] .acrylic{
152
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
153
+ background:var(--sn-theme-color-blue-background1Level, var(--sn-primitive-color-blue-95, #f2f9ff));
154
+ }
155
+ .widget[data-acrylic-appearance=blue][data-acrylic-level="2Level"]{
156
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
157
+ }
158
+ .widget[data-acrylic-appearance=blue][data-acrylic-level="2Level"] .acrylic{
159
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
160
+ background:var(--sn-theme-color-blue-background2Level, var(--sn-primitive-color-blue-99, #fdfeff));
161
+ }
162
+ .widget[data-acrylic-appearance=violet][data-acrylic-level=default]{
163
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
164
+ }
165
+ .widget[data-acrylic-appearance=violet][data-acrylic-level=default] .acrylic{
166
+ opacity:var(--sn-acrylic-opacityBackground, 1);
167
+ background:var(--sn-theme-color-violet-background, var(--sn-primitive-color-violet-90, #f3edfc));
168
+ }
169
+ .widget[data-acrylic-appearance=violet][data-acrylic-level="1Level"]{
170
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
171
+ }
172
+ .widget[data-acrylic-appearance=violet][data-acrylic-level="1Level"] .acrylic{
173
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
174
+ background:var(--sn-theme-color-violet-background1Level, var(--sn-primitive-color-violet-95, #f9f5ff));
175
+ }
176
+ .widget[data-acrylic-appearance=violet][data-acrylic-level="2Level"]{
177
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
178
+ }
179
+ .widget[data-acrylic-appearance=violet][data-acrylic-level="2Level"] .acrylic{
180
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
181
+ background:var(--sn-theme-color-violet-background2Level, var(--sn-primitive-color-violet-99, #fdfdfd));
182
+ }
183
+ .widget[data-acrylic-appearance=pink][data-acrylic-level=default]{
184
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
185
+ }
186
+ .widget[data-acrylic-appearance=pink][data-acrylic-level=default] .acrylic{
187
+ opacity:var(--sn-acrylic-opacityBackground, 1);
188
+ background:var(--sn-theme-color-pink-background, var(--sn-primitive-color-pink-90, #fceaf0));
189
+ }
190
+ .widget[data-acrylic-appearance=pink][data-acrylic-level="1Level"]{
191
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
192
+ }
193
+ .widget[data-acrylic-appearance=pink][data-acrylic-level="1Level"] .acrylic{
194
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
195
+ background:var(--sn-theme-color-pink-background1Level, var(--sn-primitive-color-pink-95, #fff5f7));
196
+ }
197
+ .widget[data-acrylic-appearance=pink][data-acrylic-level="2Level"]{
198
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
199
+ }
200
+ .widget[data-acrylic-appearance=pink][data-acrylic-level="2Level"] .acrylic{
201
+ opacity:var(--sn-acrylic-opacityBackground2Level, 1);
202
+ background:var(--sn-theme-color-pink-background2Level, var(--sn-primitive-color-pink-99, #fdfcfc));
203
+ }
204
+ .widget[data-acrylic-appearance=transparent]{
205
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
206
+ }
207
+ .widget[data-acrylic-appearance=transparent] .acrylic{
208
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
209
+ background:transparent;
210
+ }
211
+ .widget[data-acrylic-appearance=decorTransparent]{
212
+ backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
213
+ }
214
+ .widget[data-acrylic-appearance=decorTransparent] .acrylic{
215
+ opacity:var(--sn-acrylic-opacityBackground1Level, 1);
216
+ background:var(--sn-theme-color-neutral-decorTransparent, var(--sn-brand-color-neutral-transparent-forLightMode, rgba(124, 131, 182, 0.0784313725)));
217
+ }
218
+ .widget[data-state=loading][data-wide]{
219
+ gap:var(--sn-primitive-dimension-16, 16px);
220
+ }
221
+
222
+ .widgetHeader{
223
+ display:flex;
224
+ gap:var(--sn-primitive-dimension-16, 16px);
225
+ align-items:center;
226
+ justify-content:space-between;
227
+ min-width:0;
228
+ }
229
+ .widgetHeader[data-mobile]{
230
+ flex-direction:column;
231
+ align-items:flex-start;
232
+ }
233
+ .widgetHeader[data-loading]{
234
+ gap:var(--sn-primitive-dimension-12, 12px);
235
+ }
236
+
237
+ .headerMain{
238
+ display:flex;
239
+ flex:0 1 auto;
240
+ gap:var(--sn-primitive-dimension-16, 16px);
241
+ align-items:center;
242
+ justify-content:space-between;
243
+ min-width:0;
244
+ max-width:100%;
245
+ }
246
+
247
+ .widgetHeader[data-mobile] .headerMain{
248
+ width:100%;
249
+ }
250
+
251
+ .titleClickable{
252
+ flex:0 1 auto;
253
+ min-width:0;
254
+ max-width:100%;
255
+ }
256
+
257
+ .widgetContent{
258
+ min-height:0;
259
+ color:var(--sn-theme-color-available-version-textMain, var(--sn-brand-color-text-version-main, #41424e));
260
+ font-family:var(--sn-regular-body-s-fontFamily, var(--sn-brand-font-fontFamily-regular-body, var(--sn-primitive-fontFamily-brandA-sans, SB Sans Interface)));
261
+ font-weight:var(--sn-regular-body-s-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-s, var(--sn-brand-font-fontWeight-light-regular-body-s, var(--sn-primitive-font-fontWeightValue-400, 400))));
262
+ line-height:var(--sn-regular-body-s-lineHeight, var(--sn-density-typography-roleBody-lineHeightS, var(--sn-primitive-font-lineHeight-by14, 20px)));
263
+ font-size:var(--sn-regular-body-s-fontSize, var(--sn-density-typography-roleBody-fontSizeS, var(--sn-primitive-font-fontSize-14, 14px)));
264
+ letter-spacing:var(--sn-regular-body-s-letterSpacing, var(--sn-primitive-font-letterSpacing-m, 0.1px));
265
+ paragraph-spacing:var(--sn-regular-body-s-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize12, 6px));
266
+ }
267
+
268
+ .skeletonHeader{
269
+ flex:1;
270
+ width:100%;
271
+ min-width:0;
272
+ }
273
+
274
+ .button{
275
+ white-space:nowrap;
276
+ }
277
+ .button[data-full-width]:not([data-variant=icon-only]){
278
+ flex-shrink:0;
279
+ width:auto;
280
+ }
281
+ .button[data-variant=icon-only]{
282
+ flex-grow:0;
283
+ flex-shrink:0;
284
+ }
285
+ .mobileActionsWrapper{
286
+ scrollbar-width:none;
287
+ overflow-y:auto;
288
+ display:flex;
289
+ flex-shrink:0;
290
+ gap:var(--sn-primitive-dimension-8, 8px);
291
+ justify-content:stretch;
292
+ width:100%;
293
+ }
294
+ .mobileActionsWrapper::-webkit-scrollbar{
295
+ display:none;
296
+ }
297
+
298
+ .button{
299
+ white-space:nowrap;
300
+ }
301
+ .button[data-full-width]:not([data-variant=icon-only]){
302
+ flex-shrink:0;
303
+ width:auto;
304
+ }
305
+ .button[data-variant=icon-only]{
306
+ flex-grow:0;
307
+ flex-shrink:0;
308
+ }
309
+
310
+ .actionsWrapper{
311
+ display:flex;
312
+ flex-shrink:0;
313
+ gap:var(--sn-primitive-dimension-8, 8px);
314
+ align-items:center;
315
+ }
316
+ .actionsWrapper[data-wide]{
317
+ justify-content:flex-end;
318
+ }
319
+
320
+ .skeletonActions{
321
+ display:flex;
322
+ gap:var(--sn-primitive-dimension-8, 8px);
323
+ align-items:center;
324
+ width:100%;
325
+ }
326
+
327
+ .skeletonActionFull{
328
+ flex:1;
329
+ min-width:0;
330
+ }
331
+ .trigger{
332
+ display:inline-flex;
333
+ align-items:center;
334
+ vertical-align:top;
335
+ }
336
+ .trigger{
337
+ display:inline-flex;
338
+ align-items:center;
339
+ vertical-align:top;
340
+ }
341
+ .skeletonContent{
342
+ display:flex;
343
+ flex-direction:column;
344
+ gap:var(--sn-primitive-dimension-4, 4px);
345
+ }
346
+
347
+ .errorWrapper{
348
+ display:flex;
349
+ justify-content:center;
350
+ box-sizing:border-box;
351
+ width:100%;
352
+ padding-block:var(--sn-primitive-dimension-8, 8px);
353
+ }
354
+ .errorWrapper[data-wide]{
355
+ padding-block:var(--sn-primitive-dimension-16, 16px);
356
+ }
357
+
358
+ .infoBlock{
359
+ justify-content:center;
360
+ width:100%;
361
+ max-width:calc(9 * var(--sn-primitive-dimension-64, 64px) + var(--sn-primitive-dimension-48, 48px));
362
+ }
363
+ .controlWrapper{
364
+ display:flex;
365
+ flex-shrink:0;
366
+ gap:var(--sn-primitive-dimension-8, 8px);
367
+ align-items:center;
368
+ }
369
+ .controlWrapper[data-mobile]{
370
+ width:100%;
371
+ }
372
+ .controlWrapper[data-mobile] > *{
373
+ width:100%;
374
+ }