Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
common.blocks/select/select.tmpl-specs/10-radio-default.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'radio', theme : 'normal', size : 'l', focused : true }, | ||
name : 'select', | ||
id : 1, | ||
optionsMaxHeight : 100, | ||
textMaxWidth : 50, | ||
options : [ | ||
{ val : 1, text : 'first' }, | ||
{ val : 2, text : 'second', checked : true, icon : { block : 'icon', mods : { social : 'vk' } } } | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_radio select_theme_normal select_size_l select_focused i-bem" data-bem="{"select":{"name":"select","optionsMaxHeight":100,"live":false}}"><input class="select__control" type="hidden" name="select" value="2"/><button class="button button_size_l button_theme_normal button_focused button__control select__button i-bem" data-bem="{"button":{"live":false}}" role="button" type="button" id="1"><span class="button__text" style="max-width:50px">second</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_size_l menu_theme_normal menu_mode_radio menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":1}}" role="menuitem">first</div><div class="menu-item menu-item_checked menu-item_theme_normal i-bem" data-bem="{"menu-item":{"text":"second","val":2}}" role="menuitem"><i class="icon icon_social_vk"></i>second</div></div></div></div> |
8 changes: 8 additions & 0 deletions
8
common.blocks/select/select.tmpl-specs/20-control-disabled.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'radio', theme : 'normal', disabled : true }, | ||
options : [ | ||
{ val : 1, text : 'first' }, | ||
{ val : 2, text : 'second' } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/select/select.tmpl-specs/20-control-disabled.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_radio select_theme_normal select_disabled i-bem" data-bem="{"select":{}}"><input class="select__control" type="hidden" value="1" disabled="disabled"/><button class="button button_theme_normal button_disabled button__control select__button i-bem" data-bem="{"button":{}}" role="button" type="button" disabled="disabled"><span class="button__text">first</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_theme_normal menu_disabled menu_mode_radio menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_checked menu-item_disabled menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":1}}" role="menuitem">first</div><div class="menu-item menu-item_disabled menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":2}}" role="menuitem">second</div></div></div></div> |
8 changes: 8 additions & 0 deletions
8
common.blocks/select/select.tmpl-specs/30-control-val-json.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'radio', theme : 'normal' }, | ||
options : [ | ||
{ val : { value : '2' }, text : 'first' }, | ||
{ val : 2, text : 'second' } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/select/select.tmpl-specs/30-control-val-json.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_radio select_theme_normal i-bem" data-bem="{"select":{}}"><input class="select__control" type="hidden" value="{"value":"2"}"/><button class="button button_theme_normal button__control select__button i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">first</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_theme_normal menu_mode_radio menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_checked menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":{"value":"2"}}}" role="menuitem">first</div><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":2}}" role="menuitem">second</div></div></div></div> |
10 changes: 10 additions & 0 deletions
10
common.blocks/select/select.tmpl-specs/40-check-default-all-checked-checkedText.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'check', theme : 'normal' }, | ||
name : 'select', | ||
text : 'select-check', | ||
options : [ | ||
{ val : 1, text : 'first', checked : true, checkedText : 'checkedText' }, | ||
{ val : 2, text : 'second', checked : true } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/select/select.tmpl-specs/40-check-default-all-checked-checkedText.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_check select_theme_normal i-bem" data-bem="{"select":{"name":"select","text":"select-check"}}"><input class="select__control" type="hidden" name="select" value="1"/><input class="select__control" type="hidden" name="select" value="2"/><button class="button button_theme_normal button_checked button__control select__button i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">checkedText, second</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_theme_normal menu_mode_check menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_checked menu-item_theme_normal i-bem" data-bem="{"menu-item":{"checkedText":"checkedText","val":1}}" role="menuitem">first</div><div class="menu-item menu-item_checked menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":2}}" role="menuitem">second</div></div></div></div> |
9 changes: 9 additions & 0 deletions
9
common.blocks/select/select.tmpl-specs/50-check-default-no-checked.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'check', theme : 'normal' }, | ||
text : 'select-check', | ||
options : [ | ||
{ val : 1, text : 'first' }, | ||
{ val : 2, text : 'second' } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/select/select.tmpl-specs/50-check-default-no-checked.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_check select_theme_normal i-bem" data-bem="{"select":{"text":"select-check"}}"><button class="button button_theme_normal button__control select__button i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">select-check</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_theme_normal menu_mode_check menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":1}}" role="menuitem">first</div><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":2}}" role="menuitem">second</div></div></div></div> |
9 changes: 9 additions & 0 deletions
9
common.blocks/select/select.tmpl-specs/60-radio-check-no-checked.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'radio-check', theme : 'normal' }, | ||
text : 'select-radio-check', | ||
options : [ | ||
{ val : 1, text : 'first' }, | ||
{ val : 2, text : 'second' } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/select/select.tmpl-specs/60-radio-check-no-checked.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_radio-check select_theme_normal i-bem" data-bem="{"select":{"text":"select-radio-check"}}"><button class="button button_theme_normal button__control select__button i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">select-radio-check</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_theme_normal menu_mode_radio-check menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":1}}" role="menuitem">first</div><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":2}}" role="menuitem">second</div></div></div></div> |
8 changes: 8 additions & 0 deletions
8
common.blocks/select/select.tmpl-specs/70-radio-check-some-checked.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
block : 'select', | ||
mods : { mode : 'radio-check', theme : 'normal' }, | ||
options : [ | ||
{ val : 1, text : 'first', checked : true }, | ||
{ val : 2, text : 'second' } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/select/select.tmpl-specs/70-radio-check-some-checked.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="select select_mode_radio-check select_theme_normal i-bem" data-bem="{"select":{}}"><input class="select__control" type="hidden" value="1"/><button class="button button_theme_normal button_checked button__control select__button i-bem" data-bem="{"button":{}}" role="button" type="button"><span class="button__text">first</span><i class="icon select__tick"></i></button><div class="popup popup_theme_normal popup_autoclosable i-bem" data-bem="{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}"><div class="menu menu_theme_normal menu_mode_radio-check menu__control select__menu i-bem" data-bem="{"menu":{}}" role="menu"><div class="menu-item menu-item_checked menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":1}}" role="menuitem">first</div><div class="menu-item menu-item_theme_normal i-bem" data-bem="{"menu-item":{"val":2}}" role="menuitem">second</div></div></div></div> |