Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
0bb77b0
[theme] add new variables
j-mnizhek Jun 30, 2026
86f37f0
[theme] update theme and add comments to a bunch of components styles
j-mnizhek Jul 1, 2026
940a74e
[theme] update groups for some variables
j-mnizhek Jul 2, 2026
7d7e876
[theme] added renamed vars to derprecated
j-mnizhek Jul 2, 2026
c880f63
[theme] added TODO instead of changing styles
j-mnizhek Jul 3, 2026
a902bfa
[theme] added more context for neighborlocation styles
j-mnizhek Jul 3, 2026
7c54fee
Merge branch 'release/v17' into UIK-5351/add-more-variables-to-theme
j-mnizhek Jul 7, 2026
5bfa958
[theme] a bunch of updates after discussing
j-mnizhek Jul 7, 2026
0cfa5b4
[theme] update comment for Hint styles
j-mnizhek Jul 7, 2026
20fb9cc
[theme] name updates
j-mnizhek Jul 7, 2026
208e04a
[theme] add bg to additional Tag
j-mnizhek Jul 7, 2026
f23e679
[feature-highlight] fix missing top prop
j-mnizhek Jul 7, 2026
9d90750
[UIK-5565][dropdown-menu] fixed preventFocusByClick - skip draggable …
ilyabrower Jul 9, 2026
65bdb8f
[chore] Merge branch 'release/v17' into UIK-5351/add-more-variables-t…
j-mnizhek Jul 9, 2026
19e6690
[theme] update some variables names
j-mnizhek Jul 9, 2026
5ea3ceb
[chore] Merge branch 'release/v17' into UIK-5351/add-more-variables-t…
ilyabrower Jul 10, 2026
f83edb5
[theme] removed duplicates in depricates
ilyabrower Jul 13, 2026
e4ed6be
[theme] fix values for Wizard variables
j-mnizhek Jul 13, 2026
e111f7a
[theme] fix switch control bg
j-mnizhek Jul 13, 2026
f4516f6
[switch] update css file
Valeria-Zimnitskaya Jul 14, 2026
59fa951
[chore] Merge branch 'release/v17' into UIK-5351/add-more-variables-t…
ilyabrower Jul 16, 2026
8f52ab0
[UIK-5564][Button] Update button styles + removed hardcoded values + …
j-mnizhek Jul 20, 2026
25cb217
[chore] update snapshot
Valeria-Zimnitskaya Jul 20, 2026
cbcf31a
[theme] change form-control-s to 20px
sheila-semrush Jul 22, 2026
4b6c21e
[chore] fix correct token names for semantic spacing tokens (#3061)
slizhevskyv-semrush Jul 22, 2026
c75443c
[UIK-5580][Inputs] Update styles (#3059)
j-mnizhek Jul 24, 2026
2f5d341
[theme] add timing variables
sheila-semrush Jul 24, 2026
af06715
[theme] add Badge tokens and update DatePicker token values
j-mnizhek Jul 24, 2026
7a73135
[theme] update secondary controls lightness
j-mnizhek Jul 27, 2026
e00d1e7
[theme] update date-picker variables
j-mnizhek Jul 27, 2026
f1c268d
[theme] update vars for content padding
j-mnizhek Jul 28, 2026
8819591
[theme] add more padding variables
j-mnizhek Jul 28, 2026
a13aaab
[theme] add xsmall var for paddings
j-mnizhek Jul 28, 2026
d79b965
[chore] changed timing to easing key in theme
ilyabrower Jul 30, 2026
a1429b3
[chore] changed timing to easings key in theme
ilyabrower Jul 30, 2026
192a004
[theme] add vars for Presets components
j-mnizhek Jul 30, 2026
24945e1
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Jul 30, 2026
c0997e9
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Jul 31, 2026
37fff02
[UIK-5627] rebrand modal (#3079)
sheila-semrush Jul 31, 2026
a632ff6
[UIK-5613] checkbox radio switch rebranding (#3085)
slizhevskyv-semrush Jul 31, 2026
a4b3def
[UIK-5637][card] Update styles (#3080)
j-mnizhek Jul 31, 2026
dbfcd9d
[chore] update snapshots
Valeria-Zimnitskaya Jul 31, 2026
7895f42
[chore] update snapshots
Valeria-Zimnitskaya Jul 31, 2026
95922eb
[theme] update values for dimmed borders
j-mnizhek Jul 31, 2026
cfee282
[UIK-5586] Update Select and DropdownMenu styles (#3065)
sheila-semrush Aug 3, 2026
373f7f0
[notice] replaced old spacing-numbers variable to spacing-content-pad…
ilyabrower Aug 4, 2026
efd5d78
[theme] add more vars for content padding
j-mnizhek Aug 4, 2026
7c4b3ad
[theme] update value for Dot text
j-mnizhek Aug 4, 2026
231d98f
[theme] add 3 vars for gap and padding
j-mnizhek Aug 4, 2026
ae15809
[notice] redesign
ilyabrower Aug 5, 2026
fbdea38
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Aug 5, 2026
a595493
[theme] add 2 extra vars for gaps
j-mnizhek Aug 5, 2026
b440fda
[UIK-5619] tooltip and hint redesign (#3081)
ilyabrower Aug 5, 2026
4debd2d
UIK 5649/counter dot rebranding (#3103)
slizhevskyv-semrush Aug 5, 2026
cc7e1eb
[UIK-5551] pills rebranding (#3060)
slizhevskyv-semrush Aug 6, 2026
6dd1583
[UIK-5579][badge] redesign (#3082)
ilyabrower Aug 6, 2026
22a33fb
[chore] Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-…
ilyabrower Aug 7, 2026
8df4b5d
[notice] fixed build
ilyabrower Aug 7, 2026
dbaa20b
[chore] Merge remote-tracking branch 'origin/UIK-5351/add-more-variab…
ilyabrower Aug 7, 2026
e96c719
[feature-popover] update styles (#3104)
j-mnizhek Aug 7, 2026
afa18d9
[chore] Merge remote-tracking branch 'origin/UIK-5351/add-more-variab…
ilyabrower Aug 7, 2026
19d41a9
[notice] fixed build
ilyabrower Aug 7, 2026
5562a1f
[UIK-5696][notice-bubble] Rebranding (#3109)
j-mnizhek Aug 7, 2026
b5b4e4f
[theme] update vars for ProgressBar
j-mnizhek Aug 7, 2026
7e77a20
[chore] Merge remote-tracking branch 'origin/UIK-5351/add-more-variab…
ilyabrower Aug 10, 2026
358d7bd
[UIK-5609][InputTags] InputTags and Tag rebranding (#3073)
j-mnizhek Aug 10, 2026
d23311e
UIK 5658/pagination rebranding (#3107)
slizhevskyv-semrush Aug 10, 2026
30db205
[theme] make hover for secondary bg darker a little bit
j-mnizhek Aug 10, 2026
200a2f4
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
j-mnizhek Aug 10, 2026
102b167
[UIK-5639] BulkTextarea and Textarea rebranding (#3090)
j-mnizhek Aug 10, 2026
2c8f764
[theme] add and update vars for breakpoints and layout
j-mnizhek Aug 11, 2026
344a78b
[UIK-5614][date-picker] changed border-radius in calendar (#3097)
ilyabrower Aug 12, 2026
0733e5d
[docs] update values in breakpoints doc
j-mnizhek Aug 12, 2026
7fd9180
[UIK-5581] filter trigger rebranding (#3066)
ilyabrower Aug 13, 2026
cf98b03
[theme] update values for a couple of variables
j-mnizhek Aug 14, 2026
ae9f537
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Aug 14, 2026
f3bc11c
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
Valeria-Zimnitskaya Aug 14, 2026
b58a596
[chore] update snapshots
Valeria-Zimnitskaya Aug 14, 2026
57c393f
[theme] add xsmall gap
j-mnizhek Aug 14, 2026
615d13f
[chore] Merge branch 'UIK-5641/notice-redesign' of https://github.com…
Valeria-Zimnitskaya Aug 14, 2026
ca4ce49
[chore] update snapshots
Valeria-Zimnitskaya Aug 14, 2026
b4e1267
[theme] remove accidental sync-tokens.ts
j-mnizhek Aug 14, 2026
a64ffa7
[notice] fixed noticeSmart chidlren
ilyabrower Aug 17, 2026
5a8cc2c
[notice] exclude icon/illustration from DOM attributes
ilyabrower Aug 17, 2026
1421a9b
[notice] fixed in date-picker examples
ilyabrower Aug 17, 2026
ad178f3
[notice] update tests and snapshots
Valeria-Zimnitskaya Aug 17, 2026
8888ab8
[notice] fixed in date-picker examples
ilyabrower Aug 17, 2026
fa18b28
[chore] Merge branch 'UIK-5641/notice-redesign' of github.com:semrush…
ilyabrower Aug 17, 2026
b36e21d
[notice] fixed types
ilyabrower Aug 17, 2026
7c5e117
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
Valeria-Zimnitskaya Aug 17, 2026
2d0f53b
[chore] update snapshots
Valeria-Zimnitskaya Aug 17, 2026
9cae3eb
[notice] fixed types
ilyabrower Aug 17, 2026
ea1cb45
[chore] Merge branch 'UIK-5641/notice-redesign' of github.com:semrush…
ilyabrower Aug 17, 2026
57bc9be
[pills] update unit snapshots
Valeria-Zimnitskaya Aug 17, 2026
8c3dc0b
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
Valeria-Zimnitskaya Aug 17, 2026
83eda70
[UIK-5737][scroll-area] changed css tokens (#3123)
ilyabrower Aug 17, 2026
2d1aa51
UI k 5700/rewrite component to ns (#3110)
slizhevskyv-semrush Aug 18, 2026
7d12b88
[theme] update values for selected TabLine item
j-mnizhek Aug 18, 2026
9d8d4df
[theme] update accent border in several vars
j-mnizhek Aug 18, 2026
1d4429d
[UIK-5667][skeleton, spin-container, spin] redesign (#3106)
ilyabrower Aug 18, 2026
0184d54
[theme] fixed contrast in inverted spin & border tokens
sheila-semrush Aug 19, 2026
f09f28c
UI k 5553/links redesign (#3070)
ilyabrower Aug 20, 2026
b7e76af
[UIK-5804][drag-and-drop] changed bg color (#3140)
ilyabrower Aug 20, 2026
a17700e
[chore] update snapshots
Valeria-Zimnitskaya Aug 20, 2026
154ae02
[chore] update snapshots
Valeria-Zimnitskaya Aug 20, 2026
76facd8
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Aug 24, 2026
8aa0820
[UIK-5686][wizard] rebranding (#3128)
slizhevskyv-semrush Aug 24, 2026
90585ad
[UIK-5652][tab-line, tab-panel] redesign (#3112)
ilyabrower Aug 25, 2026
6a8aae9
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Aug 25, 2026
340b2e5
[chore] Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-…
ilyabrower Aug 25, 2026
4eae81d
[chore] fixed linter for notices
ilyabrower Aug 25, 2026
b83f4a7
[chore] fixed linter for notices
ilyabrower Aug 25, 2026
cc95408
[UIK-5642][breadcrumbs] added gap token (#3149)
ilyabrower Aug 25, 2026
63b870d
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Aug 26, 2026
34988fc
[chore] Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-…
ilyabrower Aug 26, 2026
238fe5b
[chore] fixed linter
ilyabrower Aug 26, 2026
6fdf25b
[chore] Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-…
ilyabrower Aug 26, 2026
5f658e2
[UIK-5690][fullscreen-modal] changed css tokens (#3124)
ilyabrower Aug 26, 2026
f4f6e86
[chore] update snapshots
Valeria-Zimnitskaya Aug 26, 2026
8a44af7
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
Valeria-Zimnitskaya Aug 26, 2026
f89d9d4
[theme] add bg-secondary-invert var
j-mnizhek Aug 26, 2026
5647a70
[UIK-5824] add min-width to Pills.Item.Text (#3148)
sheila-semrush Aug 26, 2026
a1ea5cf
[UIK-5848][chore] linter fix (#3158)
ilyabrower Aug 27, 2026
289d7b2
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
Valeria-Zimnitskaya Aug 27, 2026
c0cb9e5
[theme] update chart palette values
j-mnizhek Aug 27, 2026
915a780
[chore] Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-…
ilyabrower Aug 27, 2026
4cb7939
[theme] update semantic vars for chart data
j-mnizhek Aug 27, 2026
8f0f14a
UIK 5794/slider rebranding (#3144)
slizhevskyv-semrush Aug 27, 2026
ed6f075
[notice] fixed types in stories
ilyabrower Aug 28, 2026
edacee4
[UIK-5789][color-picker] redesign (#3150)
ilyabrower Aug 28, 2026
f40a490
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
sheila-semrush Aug 28, 2026
759981b
[stories] format text in daterangecomparator with notice example
sheila-semrush Aug 28, 2026
a21347e
[dropdown] fixed notice borde-radius
ilyabrower Aug 28, 2026
5851c17
[notice] updated padding tokens
sheila-semrush Aug 28, 2026
d52ed4b
[notice] removed custom color
ilyabrower Aug 28, 2026
f68bd02
[notice] update snapshots
Valeria-Zimnitskaya Aug 28, 2026
e8582fa
[notice] updated paddings
sheila-semrush Aug 28, 2026
b5e9ee2
[docs] changed button theme in playground, updated composition section
sheila-semrush Aug 28, 2026
49799ba
[progress-bar] redesign (#3143)
ilyabrower Sep 2, 2026
f088a9c
[chore] update snapshots
Valeria-Zimnitskaya Sep 2, 2026
03c0027
[notice] update test
Valeria-Zimnitskaya Sep 2, 2026
e264102
Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-5641/not…
Valeria-Zimnitskaya Sep 2, 2026
13d5d74
[UIK-5905][link] fixed description of theme property (#3170)
ilyabrower Sep 4, 2026
29c0ddf
[skeleton] fixed area chart svgs (#3164)
sheila-semrush Sep 7, 2026
45b3be5
[color-picker] removed unnecessary opacity (#3162)
ilyabrower Sep 7, 2026
82d85bd
[theme] make text-secondary and text-placeholder lighter
sheila-semrush Sep 7, 2026
2c7b074
[UIK-5788][data-table] changed LinkAction api, fixed ui (#3152)
ilyabrower Sep 9, 2026
4d3ec27
[typography] update styles (#3130)
j-mnizhek Sep 10, 2026
21b9ae1
[chore] Merge remote-tracking branch 'origin/UIK-5351/add-more-variab…
ilyabrower Sep 10, 2026
3816974
UI k 5806/divider rebranding (#3159)
slizhevskyv-semrush Sep 10, 2026
19d6042
[UIK-5701][carousel] Rebranding (#3153)
j-mnizhek Sep 10, 2026
d7d8aab
[dropdown] redesign notice in dd
ilyabrower Sep 10, 2026
5ad008f
[UIK-5742][side-panel] redesign (#3129)
ilyabrower Sep 10, 2026
6a3f8bc
[UIK-5641][notice] redesign (#3102)
ilyabrower Sep 10, 2026
eae3207
[chore] Merge branch 'release/v18' into UIK-5351/add-more-variables-t…
ilyabrower Sep 10, 2026
25fd892
[data-table] fixed test + updated screenshots
ilyabrower Sep 11, 2026
3bb3397
[d3-chart] updated screenshots
ilyabrower Sep 11, 2026
5ca6db7
[dropdown] redesign notice in dd
ilyabrower Sep 11, 2026
0097462
[chore] Merge branch 'UIK-5351/add-more-variables-to-theme' into UIK-…
ilyabrower Sep 11, 2026
331614c
[chore] Merge branch 'release/v18' into UIK-5869/notice-for-dropdown
ilyabrower Sep 11, 2026
a52a468
[chore] update stories and snapshots
Valeria-Zimnitskaya Sep 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 25 additions & 7 deletions semcore/dropdown/src/Notice.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,43 @@
import { Flex } from '@semcore/base-components';
import { Component, createComponent, Root, sstyled } from '@semcore/core';
import Notice, { type NSNotice } from '@semcore/notice';
import { Text } from '@semcore/typography';
import React from 'react';

import type { NSDropdown } from './index';
import style from './style/dropdownNotice.shadow.css';

class DropdownNoticeRoot extends Component<NSNotice.Props> {
class DropdownNoticeRoot extends Component<NSDropdown.Notice.Props> {
static displayName = 'Notice';
static style = style;

render() {
const { styles } = this.asProps;
const { styles, Children, icon, title, theme } = this.asProps;
const SDropdownNotice = Root;
return sstyled(styles)(<SDropdownNotice render={Notice} />);
const SIcon = 'div';
const STitle = Text;

return sstyled(styles)(
<SDropdownNotice render={Notice} use:icon={undefined}>
<Flex alignItems='baseline' gap={2}>
{Boolean(icon) && (
<SIcon
// @ts-expect-error for css styles only
theme={theme}
>
{icon}
</SIcon>
)}
<STitle bold size={300}>{title}</STitle>
</Flex>
<Children />
</SDropdownNotice>,
);
}
}

export const DropdownNotice = createComponent<NSNotice.Component, typeof DropdownNoticeRoot>(DropdownNoticeRoot, {
Label: Notice.Label,
Title: Notice.Title,
export const DropdownNotice = createComponent<NSDropdown.Notice.Component, typeof DropdownNoticeRoot>(DropdownNoticeRoot, {
Text: Notice.Text,
Actions: Notice.Actions,
Content: Notice.Content,
Close: Notice.Close,
}, { parent: Notice });
22 changes: 18 additions & 4 deletions semcore/dropdown/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
import type { NSBox, NSPopper } from '@semcore/base-components';
import type { Intergalactic, PropGetterFn } from '@semcore/core';
import type Notice from '@semcore/notice';
import type { NSNotice } from '@semcore/notice';
import type React from 'react';

declare namespace NSDropdown {

namespace Notice {
type Props = NSNotice.Props & {
title: React.ReactNode;
};

type Component = Intergalactic.Component<'div', Props> & {
Actions: NSNotice.Actions.Component;
Text: NSNotice.Text.Component;
};
}
}

export type DropdownProps = NSPopper.Props & {
/**
* Modifier responsible for the size of the pop-up window:
Expand Down Expand Up @@ -65,8 +79,6 @@ export type DropdownStatusItemProps = {

export type StatusItemComponent = Intergalactic.Component<'div', DropdownStatusItemProps>;

export type DropdownNoticeComponent = typeof Notice;

declare const Dropdown: Intergalactic.Component<
'div',
DropdownProps,
Expand All @@ -83,7 +95,9 @@ declare const Dropdown: Intergalactic.Component<
Item: Intergalactic.Component<NSBox.Component>;
Group: Intergalactic.Component<'div', DropdownGroupProps>;
StatusItem: StatusItemComponent;
Notice: DropdownNoticeComponent;
Notice: NSDropdown.Notice.Component;
};

export default Dropdown;

export type { NSDropdown };
23 changes: 23 additions & 0 deletions semcore/dropdown/src/style/dropdownNotice.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,27 @@ SDropdownNotice {
border-bottom-right-radius: calc(var(--intergalactic-rounded-small, 4px) + 1px);
border-top-left-radius: 0;
border-top-right-radius: 0;

flex-direction: column;
gap: 0;

SIcon[theme='info'] {
color: var(--intergalactic-icon-primary-neutral, oklch(0.092 0.024 152.2 / 0.526));
}

SIcon[theme='danger'] {
color: var(--intergalactic-icon-primary-critical, oklch(0.552 0.226 28.7 / 0.848));
}

SIcon[theme='warning'] {
color: var(--intergalactic-icon-primary-warning, oklch(0.728 0.188 51.8));
}

SIcon[theme='success'] {
color: var(--intergalactic-icon-primary-success, oklch(0.595 0.124 165.4));
}

SIcon[theme='muted'] {
color: var(--intergalactic-icon-primary-neutral, oklch(0.092 0.024 152.2 / 0.526));
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ const Demo = () => {
theme='warning'
style={{ borderTopLeftRadius: 0, borderTopRightRadius: 0 }}
icon={<WarningIcon />}
title='Warning'
>
<Dropdown.Notice.Content>
<Flex mb={1}>
<Dropdown.Notice.Title>
Warning
</Dropdown.Notice.Title>
</Flex>
<Dropdown.Notice.Text>
If you change your location, all previously collected data for this article will be
lost.
</Dropdown.Notice.Content>
</Dropdown.Notice.Text>
</Dropdown.Notice>
</DateRangeComparator.Popper>
</DateRangeComparator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ const Demo = () => {
theme='warning'
style={{ borderTopLeftRadius: 0, borderTopRightRadius: 0 }}
icon={<WarningIcon />}
title='Warning'
>
<Dropdown.Notice.Content>
<Flex mb={1}>
<Dropdown.Notice.Title>
Warning
</Dropdown.Notice.Title>
</Flex>
<Dropdown.Notice.Text>
If you change your location, all previously collected data for this article will be
lost.
</Dropdown.Notice.Content>
</Dropdown.Notice.Text>
</Dropdown.Notice>
</MonthDateRangeComparator.Popper>
</MonthDateRangeComparator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ const Demo = () => {
<DropdownMenu.Item onClick={handleClick}>CSV</DropdownMenu.Item>
<DropdownMenu.Item onClick={handleClick}>CSV Semicolon</DropdownMenu.Item>
</DropdownMenu.List>
<DropdownMenu.Notice px={3} theme='warning'>
<DropdownMenu.Notice.Content>
<DropdownMenu.Notice px={3} theme='warning' title='Unsaved changes'>
<DropdownMenu.Notice.Actions>
<Button onClick={handleOpen} use='primary'>
Open modal
</Button>
</DropdownMenu.Notice.Content>
</DropdownMenu.Notice.Actions>
</DropdownMenu.Notice>
</SpinContainer>
</DropdownMenu.Popper>
Expand Down
20 changes: 8 additions & 12 deletions stories/components/dropdown-menu/docs/examples/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,15 @@ const Demo = () => {
aria-labelledby='export-notice-title'
theme='warning'
px={3}
title='Export failed'
>
<DropdownMenu.Notice.Content>
<Text tag='strong' mb={1} style={{ display: 'block' }} id='export-notice-title'>
Export failed
</Text>
<Text>
If the problem persists, please contact us at
{' '}
<Link href='mailto:feedback@semrush.com'>
feedback@semrush.com
</Link>
</Text>
</DropdownMenu.Notice.Content>
<DropdownMenu.Notice.Text>
If the problem persists, please contact us at
{' '}
<Link href='mailto:feedback@semrush.com'>
feedback@semrush.com
</Link>
</DropdownMenu.Notice.Text>
</DropdownMenu.Notice>
</SpinContainer>
</DropdownMenu.Popper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ const noticeArgTypes = {
control: { type: 'text' },
table: { category: 'Notice content' },
},
showNoticeClose: {
control: { type: 'boolean' },
table: { category: 'Notice content' },
},
} as const;

export const WithFocusableTrigger: Story = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import InfoM from '@semcore/icon/Info/m';
import WarningM from '@semcore/icon/Warning/m';
import { Flex } from '@semcore/ui/base-components';
import Button from '@semcore/ui/button';
import Divider from '@semcore/ui/divider';
Expand Down Expand Up @@ -34,7 +34,6 @@ type DropDownPropsExample = DropdownMenuProps & DropdownMenuListProps & {
noticeText?: string;
showNoticeActions?: boolean;
noticeActionText?: string;
showNoticeClose?: boolean;
};
const Demo = (props: DropDownPropsExample) => {
const {
Expand Down Expand Up @@ -62,7 +61,6 @@ const Demo = (props: DropDownPropsExample) => {
noticeText,
showNoticeActions,
noticeActionText,
showNoticeClose,
} = props;

const [search, setSearch] = React.useState('');
Expand All @@ -85,24 +83,15 @@ const Demo = (props: DropDownPropsExample) => {
<DropdownMenu.Notice
theme={noticeTheme}
hidden={noticeHidden}
icon={showNoticeLabel ? (<WarningM />) : undefined}
title={noticeTitle}
>
{showNoticeLabel && (
<DropdownMenu.Notice.Label>
<InfoM />
</DropdownMenu.Notice.Label>
{noticeText && <DropdownMenu.Notice.Text>{noticeText}</DropdownMenu.Notice.Text>}
{showNoticeActions && (
<DropdownMenu.Notice.Actions>
<Button use='primary'>{noticeActionText}</Button>
</DropdownMenu.Notice.Actions>
)}
<DropdownMenu.Notice.Content>
{noticeTitle && (
<DropdownMenu.Notice.Title>{noticeTitle}</DropdownMenu.Notice.Title>
)}
{noticeText && <DropdownMenu.Notice.Text>{noticeText}</DropdownMenu.Notice.Text>}
{showNoticeActions && (
<DropdownMenu.Notice.Actions>
<Button use='primary'>{noticeActionText}</Button>
</DropdownMenu.Notice.Actions>
)}
</DropdownMenu.Notice.Content>
{showNoticeClose && <DropdownMenu.Notice.Close />}
</DropdownMenu.Notice>
);
};
Expand Down Expand Up @@ -209,7 +198,6 @@ export const defaultDropDownPropsExample: DropDownPropsExample = {
noticeText: 'Additional information related to the available actions.',
showNoticeActions: true,
noticeActionText: 'Action',
showNoticeClose: false,
};

Demo.defaultProps = defaultDropDownPropsExample;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ type DropDownPropsExample = DropdownMenuProps & DropdownMenuListProps & {
noticeText?: string;
showNoticeActions?: boolean;
noticeActionText?: string;
showNoticeClose?: boolean;
};
const Demo = (props: DropDownPropsExample) => {
const [selected, setSelected] = React.useState<number[]>([0, 1]);
Expand All @@ -45,26 +44,17 @@ const Demo = (props: DropDownPropsExample) => {
<DropdownMenu.Notice
theme={props.noticeTheme}
hidden={props.noticeHidden}
icon={props.showNoticeLabel ? (<InfoM />) : undefined}
title={props.noticeTitle}
>
{props.showNoticeLabel && (
<DropdownMenu.Notice.Label>
<InfoM />
</DropdownMenu.Notice.Label>
{props.noticeText && (
<DropdownMenu.Notice.Text>{props.noticeText}</DropdownMenu.Notice.Text>
)}
{props.showNoticeActions && (
<DropdownMenu.Notice.Actions>
<Button use='primary'>{props.noticeActionText}</Button>
</DropdownMenu.Notice.Actions>
)}
<DropdownMenu.Notice.Content>
{props.noticeTitle && (
<DropdownMenu.Notice.Title>{props.noticeTitle}</DropdownMenu.Notice.Title>
)}
{props.noticeText && (
<DropdownMenu.Notice.Text>{props.noticeText}</DropdownMenu.Notice.Text>
)}
{props.showNoticeActions && (
<DropdownMenu.Notice.Actions>
<Button use='primary'>{props.noticeActionText}</Button>
</DropdownMenu.Notice.Actions>
)}
</DropdownMenu.Notice.Content>
{props.showNoticeClose && <DropdownMenu.Notice.Close />}
</DropdownMenu.Notice>
);
};
Expand Down Expand Up @@ -179,7 +169,6 @@ export const defaultDropDownMultiselectPropsExample: DropDownPropsExample = {
noticeText: 'Additional information related to the available actions.',
showNoticeActions: true,
noticeActionText: 'Action',
showNoticeClose: false,
};

Demo.defaultProps = defaultDropDownMultiselectPropsExample;
Expand Down
4 changes: 0 additions & 4 deletions stories/components/dropdown/tests/dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ export const ExampleWithProps: StoryObj<typeof defaultDropdownExampleProps> = {
control: { type: 'text' },
table: { category: 'Notice content' },
},
showNoticeClose: {
control: { type: 'boolean' },
table: { category: 'Notice content' },
},
},
args: defaultDropdownExampleProps,
};
Expand Down
25 changes: 7 additions & 18 deletions stories/components/dropdown/tests/examples/example-with-props.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type DropdownExampleProps =
noticeText?: string;
showNoticeActions?: boolean;
noticeActionText?: string;
showNoticeClose?: boolean;
};
const Demo = (props: DropdownExampleProps) => (
<Flex p={30}>
Expand Down Expand Up @@ -73,24 +72,15 @@ const Demo = (props: DropdownExampleProps) => (
<Dropdown.Notice
theme={props.noticeTheme}
hidden={props.noticeHidden}
icon={props.showNoticeLabel ? (<InfoM />) : undefined}
title={props.noticeTitle}
>
{props.showNoticeLabel && (
<Dropdown.Notice.Label>
<InfoM />
</Dropdown.Notice.Label>
{props.noticeText && <Dropdown.Notice.Text>{props.noticeText}</Dropdown.Notice.Text>}
{props.showNoticeActions && (
<Dropdown.Notice.Actions>
<Button use='primary'>{props.noticeActionText}</Button>
</Dropdown.Notice.Actions>
)}
<Dropdown.Notice.Content>
{props.noticeTitle && (
<Dropdown.Notice.Title>{props.noticeTitle}</Dropdown.Notice.Title>
)}
{props.noticeText && <Dropdown.Notice.Text>{props.noticeText}</Dropdown.Notice.Text>}
{props.showNoticeActions && (
<Dropdown.Notice.Actions>
<Button use='primary'>{props.noticeActionText}</Button>
</Dropdown.Notice.Actions>
)}
</Dropdown.Notice.Content>
{props.showNoticeClose && <Dropdown.Notice.Close />}
</Dropdown.Notice>
)}
</Dropdown.Popper>
Expand Down Expand Up @@ -121,7 +111,6 @@ export const defaultDropdownExampleProps: DropdownExampleProps = {
noticeText: 'Additional information related to the dropdown content.',
showNoticeActions: true,
noticeActionText: 'Action',
showNoticeClose: false,
};

Demo.defaultProps = defaultDropdownExampleProps;
Expand Down
Loading
Loading