@salutejs/plasma-new-hope 0.78.0-canary.1185.8913944828.0 → 0.78.0-canary.1185.8915022482.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/Combobox.css +5 -0
- package/cjs/components/Combobox/Combobox.js +1 -1
- package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +5 -0
- package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +1 -1
- package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +5 -0
- package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +1 -1
- package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +5 -0
- package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +1 -1
- package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +5 -0
- package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +1 -1
- package/cjs/components/Dropdown/Dropdown.css +5 -0
- package/cjs/components/Dropdown/Dropdown.js +2 -2
- package/cjs/components/Dropdown/Dropdown.tokens.js +17 -2
- package/cjs/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js +2 -0
- package/cjs/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +59 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +30 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +4 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +112 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js +9 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +1 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js +9 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +1 -0
- package/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Dropdown/utils/index.js +15 -0
- package/cjs/components/Dropdown/utils/index.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +6 -31
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +6 -31
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/cjs/components/Select/Select.css +6 -31
- package/cjs/components/Select/Select.js +3 -3
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +5 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +1 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +5 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +1 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +5 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +1 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +5 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +1 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.css +7 -50
- package/cjs/components/Select/ui/SelectItem/SelectItem.js +4 -4
- package/cjs/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +1 -0
- package/cjs/index.css +6 -1
- package/cjs/index.js +3 -0
- package/cjs/index.js.map +1 -1
- package/es/components/Combobox/Combobox.css +5 -0
- package/es/components/Combobox/Combobox.js +1 -1
- package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +5 -0
- package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.js +1 -1
- package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +5 -0
- package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.js +1 -1
- package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +5 -0
- package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.js +1 -1
- package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +5 -0
- package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.js +1 -1
- package/es/components/Dropdown/Dropdown.css +5 -0
- package/es/components/Dropdown/Dropdown.js +2 -2
- package/es/components/Dropdown/Dropdown.tokens.js +17 -2
- package/es/components/Dropdown/Dropdown.tokens.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js +2 -0
- package/es/components/Dropdown/ui/DropdownInner/DropdownInner.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +59 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +23 -0
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js.map +1 -0
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles_12e50g5.css +4 -0
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.css +4 -0
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +107 -0
- package/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js.map +1 -0
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js +5 -0
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js.map +1 -0
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base_x642ct.css +1 -0
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js +5 -0
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js.map +1 -0
- package/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base_x642ct.css +1 -0
- package/es/components/Dropdown/utils/index.js +16 -2
- package/es/components/Dropdown/utils/index.js.map +1 -1
- package/es/components/Pagination/Pagination.css +6 -31
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +6 -31
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.js +1 -1
- package/es/components/Select/Select.css +6 -31
- package/es/components/Select/Select.js +3 -3
- package/es/components/Select/ui/SelectDivider/SelectDivider.css +5 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.js +1 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.css +5 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.js +1 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.css +5 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.js +1 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.css +5 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.js +1 -1
- package/es/components/Select/ui/SelectItem/SelectItem.css +7 -50
- package/es/components/Select/ui/SelectItem/SelectItem.js +4 -4
- package/es/components/Select/ui/SelectItem/SelectItem.js.map +1 -1
- package/es/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
- package/es/components/Select/ui/SelectItem/SelectItem.styles.js.map +1 -1
- package/es/components/Select/ui/SelectItem/SelectItem.styles_vk39mp.css +1 -0
- package/es/index.css +6 -1
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Dropdown/Dropdown.tokens.js +17 -2
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +59 -9
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +33 -0
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +5 -0
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +119 -0
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js +8 -0
- package/styled-components/cjs/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js +8 -0
- package/styled-components/cjs/components/Dropdown/ui/index.js +14 -1
- package/styled-components/cjs/components/Dropdown/utils/index.js +15 -2
- package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.js +2 -2
- package/styled-components/cjs/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
- package/styled-components/es/components/Dropdown/Dropdown.tokens.js +17 -2
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +58 -8
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.js +25 -0
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.js +1 -0
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js +111 -0
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/variations/_size/base.js +2 -0
- package/styled-components/es/components/Dropdown/ui/DropdownItemOld/variations/_view/base.js +2 -0
- package/styled-components/es/components/Dropdown/ui/index.js +2 -1
- package/styled-components/es/components/Dropdown/utils/index.js +15 -1
- package/styled-components/es/components/Select/ui/SelectItem/SelectItem.js +2 -2
- package/styled-components/es/components/Select/ui/SelectItem/SelectItem.styles.js +3 -3
- package/types/components/Dropdown/Dropdown.tokens.d.ts +15 -0
- package/types/components/Dropdown/Dropdown.tokens.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +7 -0
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +1 -0
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +60 -0
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +1 -0
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +58 -0
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +1 -0
- package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts +2 -0
- package/types/components/Dropdown/ui/DropdownItemOld/variations/_size/base.d.ts.map +1 -0
- package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts +2 -0
- package/types/components/Dropdown/ui/DropdownItemOld/variations/_view/base.d.ts.map +1 -0
- package/types/components/Dropdown/ui/index.d.ts +1 -0
- package/types/components/Dropdown/ui/index.d.ts.map +1 -1
- package/types/components/Dropdown/utils/index.d.ts +2 -1
- package/types/components/Dropdown/utils/index.d.ts.map +1 -1
- package/types/components/Select/ui/SelectItem/SelectItem.d.ts +2 -2
- package/types/components/Select/ui/SelectItem/SelectItem.d.ts.map +1 -1
- package/cjs/components/Select/ui/SelectItem/SelectItem.styles_1jgsd1a.css +0 -1
- package/es/components/Select/ui/SelectItem/SelectItem.styles_1jgsd1a.css +0 -1
package/es/index.css
CHANGED
@@ -294,6 +294,11 @@
|
|
294
294
|
.DropdownItem_styles_1o4szyu_soib72h__6703745b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-flex:1;-ms-flex:1;flex:1;}
|
295
295
|
.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;box-sizing:content-box;padding-top:var(--w6l2f0g-0);padding-right:var(--plasma-dropdown-item-padding-right);padding-bottom:var(--w6l2f0g-1);padding-left:var(--plasma-dropdown-item-padding-left);font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b:hover:not(.DropdownItem_styles_1o4szyu_dropdownItemIsDisabled__6703745b){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsActive__6703745b{background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsDisabled__6703745b{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b:focus{outline:none;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_1o4szyu_w6l2f0g__6703745b.DropdownItem_styles_1o4szyu_dropdownItemIsFocused__6703745b:before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}
|
296
296
|
|
297
|
+
.DropdownItem_styles_12e50g5_s1iqs5in__94ac8eef{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-left-width);color:var(--plasma-dropdown-item-content-left-color);}
|
298
|
+
.DropdownItem_styles_12e50g5_sfg3dyd__94ac8eef{margin-left:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:var(--plasma-dropdown-item-content-right-width);color:var(--plasma-dropdown-item-content-right-color);}
|
299
|
+
.DropdownItem_styles_12e50g5_s1dea6tl__94ac8eef{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
300
|
+
.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:focus{outline:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_focusVisible__94ac8eef:focus::before,.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsSelected__94ac8eef:hover:not(.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef){background:var(--plasma-dropdown-item-background-selected-hover);}.DropdownItem_styles_12e50g5_b1b2nce8__94ac8eef.DropdownItem_styles_12e50g5_dropdownItemIsDisabled__94ac8eef{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
|
301
|
+
|
297
302
|
.base_1ght2ik_b1dbu9r0__c7db4365 .base_1ght2ik_headerLogoImage__c7db4365{--plasma_private-header-size:var(--plasma-header-height);width:var(--plasma_private-header-size);height:var(--plasma_private-header-size);-webkit-flex:0 0 var(--plasma_private-header-size);-ms-flex:0 0 var(--plasma_private-header-size);flex:0 0 var(--plasma_private-header-size);margin-right:var(--plasma-header-logo-margin-right);}
|
298
303
|
|
299
304
|
.HeaderArrow_styles_y91a69_b14hodcq__c7749097{position:absolute;top:0;bottom:0;margin-top:auto;margin-bottom:auto;right:100%;}
|
@@ -502,7 +507,7 @@
|
|
502
507
|
|
503
508
|
.SelectHeader_styles_24gqog_m1tqc9mt__2df5b6b6{--plasma-dropdown-header-background:var(--plasma-select-header-background);--plasma-dropdown-header-width:var(--plasma-select-header-width);--plasma-dropdown-header-height:var(--plasma-select-header-height);--plasma-dropdown-header-padding-top:var(--plasma-select-header-padding-top);--plasma-dropdown-header-padding-right:var(--plasma-select-header-padding-right);--plasma-dropdown-header-padding-bottom:var(--plasma-select-header-padding-bottom);--plasma-dropdown-header-padding-left:var(--plasma-select-header-padding-left);--plasma-dropdown-header-margin-top:var(--plasma-select-header-margin-top);--plasma-dropdown-header-margin-right:var(--plasma-select-header-margin-right);--plasma-dropdown-header-margin-bottom:var(--plasma-select-header-margin-bottom);--plasma-dropdown-header-margin-left:var(--plasma-select-header-margin-left);--plasma-dropdown-header-font-family:var(--plasma-select-header-font-family);--plasma-dropdown-header-font-size:var(--plasma-select-header-font-size);--plasma-dropdown-header-font-style:var(--plasma-select-header-font-style);--plasma-dropdown-header-letter-spacing:var(--plasma-select-header-letter-spacing);--plasma-dropdown-header-line-height:var(--plasma-select-header-line-height);--plasma-dropdown-header-font-weight:var(--plasma-select-header-font-weight);}
|
504
509
|
|
505
|
-
.
|
510
|
+
.SelectItem_styles_vk39mp_bhy25de__bb65e3c1{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:auto;font-family:var(--plasma-dropdown-item-font-family);font-size:var(--plasma-dropdown-item-font-size);font-style:var(--plasma-dropdown-item-font-style);font-weight:var(--plasma-dropdown-item-letter-spacing);-webkit-letter-spacing:var(--plasma-dropdown-item-line-height);-moz-letter-spacing:var(--plasma-dropdown-item-line-height);-ms-letter-spacing:var(--plasma-dropdown-item-line-height);letter-spacing:var(--plasma-dropdown-item-line-height);line-height:var(--plasma-dropdown-item-font-weight);background:var(--plasma-dropdown-item-background);color:var(--plasma-dropdown-item-color);border-radius:var(--plasma-dropdown-item-border-radius);width:var(--plasma-dropdown-item-width);height:var(--plasma-dropdown-item-height);padding:var(--plasma-dropdown-item-padding-top) var(--plasma-dropdown-item-padding-right) var(--plasma-dropdown-item-padding-bottom) var(--plasma-dropdown-item-padding-left);margin:var(--plasma-dropdown-item-margin-top) var(--plasma-dropdown-item-margin-right) var(--plasma-dropdown-item-margin-bottom) var(--plasma-dropdown-item-margin-left);--plasma-dropdown-item-background:var(--plasma-select-item-background);--plasma-dropdown-item-color:var(--plasma-select-item-color);--plasma-dropdown-item-background-hover:var(--plasma-select-item-background-hover);--plasma-dropdown-item-background-selected:var(--plasma-select-item-background-selected);--plasma-dropdown-item-color-selected:var(--plasma-select-item-color-selected);--plasma-dropdown-item-background-selected-hover:var(--plasma-select-item-background-selected-hover);--plasma-dropdown-item-color-selected-hover:var(--plasma-select-item-color-selected-hover);--plasma-dropdown-item-content-left-color:var(--plasma-select-item-content-left-color);--plasma-dropdown-item-content-right-color:var(--plasma-select-item-content-right-color);--plasma-dropdown-disabled-opacity:var(--plasma-select-disabled-opacity);--plasma-dropdown-focus-color:var(--plasma-select-focus-color);--plasma-dropdown-item-width:var(--plasma-select-item-width);--plasma-dropdown-item-height:var(--plasma-select-item-height);--plasma-dropdown-item-border-radius:var(--plasma-select-item-border-radius);--plasma-dropdown-item-padding-top:var(--plasma-select-item-padding-top);--plasma-dropdown-item-padding-right:var(--plasma-select-item-padding-right);--plasma-dropdown-item-padding-bottom:var(--plasma-select-item-padding-bottom);--plasma-dropdown-item-padding-left:var(--plasma-select-item-padding-left);--plasma-dropdown-item-margin-top:var(--plasma-select-item-margin-top);--plasma-dropdown-item-margin-right:var(--plasma-select-item-margin-right);--plasma-dropdown-item-margin-bottom:var(--plasma-select-item-margin-bottom);--plasma-dropdown-item-margin-left:var(--plasma-select-item-margin-left);--plasma-dropdown-item-font-family:var(--plasma-select-item-font-family);--plasma-dropdown-item-font-size:var(--plasma-select-item-font-size);--plasma-dropdown-item-font-style:var(--plasma-select-item-font-style);--plasma-dropdown-item-letter-spacing:var(--plasma-select-item-letter-spacing);--plasma-dropdown-item-line-height:var(--plasma-select-item-line-height);--plasma-dropdown-item-font-weight:var(--plasma-select-item-font-weight);--plasma-dropdown-item-content-left-width:var(--plasma-select-item-content-left-width);--plasma-dropdown-item-content-right-width:var(--plasma-select-item-content-right-width);}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1:focus{outline:none;}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:var(--plasma-dropdown-item-border-radius);-webkit-transition:none;transition:none;pointer-events:none;}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1.SelectItem_styles_vk39mp_focusVisible__bb65e3c1:focus::before,.SelectItem_styles_vk39mp_bhy25de__bb65e3c1[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-dropdown-focus-color);}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1:hover:not(.SelectItem_styles_vk39mp_dropdownItemIsDisabled__bb65e3c1){cursor:pointer;background:var(--plasma-dropdown-item-background-hover);}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1.SelectItem_styles_vk39mp_dropdownItemIsSelected__bb65e3c1{color:var(--plasma-dropdown-item-color-selected);background:var(--plasma-dropdown-item-background-selected);}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1.SelectItem_styles_vk39mp_dropdownItemIsSelected__bb65e3c1:hover:not(.SelectItem_styles_vk39mp_dropdownItemIsDisabled__bb65e3c1){background:var(--plasma-dropdown-item-background-selected-hover);}.SelectItem_styles_vk39mp_bhy25de__bb65e3c1.SelectItem_styles_vk39mp_dropdownItemIsDisabled__bb65e3c1{opacity:var(--plasma-dropdown-disabled-opacity);cursor:not-allowed;}
|
506
511
|
|
507
512
|
.SelectChip_styles_1u4uw04_s1eowjbp__c23911c1{--plasma-chip-color:var(--plasma-select-chip-color);--plasma-chip-background:var(--plasma-select-chip-background);--plasma-chip-color-hover:var(--plasma-select-chip-color-hover);--plasma-chip-background-hover:var(--plasma-select-chip-background-hover);--plasma-chip-color-active:var(--plasma-select-chip-color-active);--plasma-chip-background-active:var(--plasma-select-chip-background-active);--plasma-chip-background-readonly:var(--plasma-select-chip-background-readonly);--plasma-chip-color-readonly:var(--plasma-select-chip-color-readonly);--plasma-chip-background-readonly-hover:var(--plasma-select-chip-background-readonly-hover);--plasma-chip-color-readonly-hover:var(--plasma-select-chip-color-readonly-hover);--plasma-chip-border-radius:var(--plasma-select-chip-border-radius);--plasma-chip-width:var(--plasma-select-chip-width);--plasma-chip-height:var(--plasma-select-chip-height);--plasma-chip-padding-right:var(--plasma-select-chip-padding-right);--plasma-chip-padding-left:var(--plasma-select-chip-padding-left);--plasma-chip-font-family:var(--plasma-select-chip-font-family);--plasma-chip-font-size:var(--plasma-select-chip-font-size);--plasma-chip-font-style:var(--plasma-select-chip-font-style);--plasma-chip-font-weight:var(--plasma-select-chip-font-weight);--plasma-chip-letter-spacing:var(--plasma-select-chip-letter-spacing);--plasma-chip-lineheight:var(--plasma-select-chip-line-height);--plasma-chip-clear-content-margin-left:var(--plasma-select-chip-clear-content-margin-left);--plasma-chip-clear-content-margin-right:var(--plasma-select-chip-clear-content-margin-right);--plasma-chip-scale-hover:var(--plasma-select-chip-scale-hover);--plasma-chip-scale-active:var(--plasma-select-chip-scale-active);--plasma-chip-close-icon-size:var(--plasma-select-chip-close-icon-size);--plasma-chip-close-icon-color:var(--plasma-select-chip-close-icon-color);--plasma-chip-focus-color:var(--plasma-select-focus-color);position:relative;}.SelectChip_styles_1u4uw04_s1eowjbp__c23911c1::before{content:'';position:absolute;top:0.125rem;left:0.125rem;right:0.125rem;bottom:0.125rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-select-chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.SelectChip_styles_1u4uw04_s1eowjbp__c23911c1.SelectChip_styles_1u4uw04_focusVisible__c23911c1:focus::before,.SelectChip_styles_1u4uw04_s1eowjbp__c23911c1[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-select-focus-color);}.SelectChip_styles_1u4uw04_s1eowjbp__c23911c1[readonly]{opacity:var(--plasma-select-chip-opacity-readonly);}
|
508
513
|
|
package/es/index.js
CHANGED
@@ -93,6 +93,7 @@ export { dropdownGroupConfig, dropdownGroupRoot } from './components/Dropdown/ui
|
|
93
93
|
export { dropdownHeaderConfig, dropdownHeaderRoot } from './components/Dropdown/ui/DropdownHeader/DropdownHeader.js';
|
94
94
|
export { DropdownItem } from './components/Dropdown/ui/DropdownItem/DropdownItem.js';
|
95
95
|
export { DropdownInner } from './components/Dropdown/ui/DropdownInner/DropdownInner.js';
|
96
|
+
export { dropdownItemOldConfig, dropdownItemOldRoot } from './components/Dropdown/ui/DropdownItemOld/DropdownItemOld.js';
|
96
97
|
export { headerLogoConfig } from './components/Header/ui/HeaderLogo/HeaderLogo.js';
|
97
98
|
export { headerArrowConfig } from './components/Header/ui/HeaderArrow/HeaderArrow.js';
|
98
99
|
export { headerTitleWrapperConfig } from './components/Header/ui/HeaderTitleWrapper/HeaderTitleWrapper.js';
|
package/es/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.78.0-canary.1185.
|
3
|
+
"version": "0.78.0-canary.1185.8915022482.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -102,5 +102,5 @@
|
|
102
102
|
"react-popper": "2.3.0",
|
103
103
|
"storeon": "3.1.5"
|
104
104
|
},
|
105
|
-
"gitHead": "
|
105
|
+
"gitHead": "ee30996848a083a9e67faf0fc7cbb863d0d5192c"
|
106
106
|
}
|
@@ -8,7 +8,8 @@ var classes = exports.classes = {
|
|
8
8
|
dropdownRoot: 'dropdown-root',
|
9
9
|
dropdownItemIsFocused: 'dropdown-item-is-focused',
|
10
10
|
dropdownItemIsDisabled: 'dropdown-item-is-disabled',
|
11
|
-
dropdownItemIsActive: 'dropdown-item-is-active'
|
11
|
+
dropdownItemIsActive: 'dropdown-item-is-active',
|
12
|
+
dropdownItemIsSelected: 'dropdownItemIsSelected'
|
12
13
|
};
|
13
14
|
var tokens = exports.tokens = {
|
14
15
|
background: '--plasma-dropdown-background',
|
@@ -102,5 +103,19 @@ var tokens = exports.tokens = {
|
|
102
103
|
groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',
|
103
104
|
groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',
|
104
105
|
groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',
|
105
|
-
groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left'
|
106
|
+
groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',
|
107
|
+
itemBackgroundSelected: '--plasma-dropdown-item-background-selected',
|
108
|
+
itemColorSelected: '--plasma-dropdown-item-color-selected',
|
109
|
+
itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
|
110
|
+
itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
|
111
|
+
itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
|
112
|
+
itemContentRightColor: '--plasma-dropdown-item-content-right-color',
|
113
|
+
itemWidth: '--plasma-dropdown-item-width',
|
114
|
+
itemHeight: '--plasma-dropdown-item-height',
|
115
|
+
itemMarginTop: '--plasma-dropdown-item-margin-top',
|
116
|
+
itemMarginRight: '--plasma-dropdown-item-margin-right',
|
117
|
+
itemMarginBottom: '--plasma-dropdown-item-margin-bottom',
|
118
|
+
itemMarginLeft: '--plasma-dropdown-item-margin-left',
|
119
|
+
itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
|
120
|
+
itemContentRightWidth: '--plasma-dropdown-item-content-right-width'
|
106
121
|
};
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.Wrapper = exports.StyledText = exports.StyledContentRight = exports.StyledContentLeft = exports.DisclosureIconWrapper = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
8
8
|
var _Dropdown = /*#__PURE__*/require("../../Dropdown.tokens");
|
9
9
|
var _mixins = /*#__PURE__*/require("../../../../mixins");
|
@@ -22,14 +22,64 @@ var StyledText = exports.StyledText = /*#__PURE__*/_styledComponents["default"].
|
|
22
22
|
})(["", ";flex:1;"], /*#__PURE__*/(0, _mixins.applyEllipsis)());
|
23
23
|
|
24
24
|
// TODO: Remove baseContent after refactoring a Select component
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
25
|
+
// export const baseContent = `
|
26
|
+
// box-sizing: content-box;
|
27
|
+
// display: flex;
|
28
|
+
// align-items: center;
|
29
|
+
// user-select: none;
|
30
|
+
//
|
31
|
+
// :focus {
|
32
|
+
// outline: none;
|
33
|
+
// }
|
34
|
+
//
|
35
|
+
// ${addFocus({
|
36
|
+
// outlineSize: '0.0625rem',
|
37
|
+
// outlineOffset: '0',
|
38
|
+
// outlineColor: `var(${tokens.focusColor})`,
|
39
|
+
// outlineRadius: `var(${tokens.itemBorderRadius})`,
|
40
|
+
// hasTransition: false,
|
41
|
+
// customFocusRules: `
|
42
|
+
// &.${classes.dropdownItemIsFocused}:before {
|
43
|
+
// outline: none;
|
44
|
+
// box-shadow: 0 0 0 0.0625rem var(${tokens.focusColor});
|
45
|
+
// }
|
46
|
+
// `,
|
47
|
+
// })};
|
48
|
+
//
|
49
|
+
// width: 100%;
|
50
|
+
//
|
51
|
+
// font-family: var(${tokens.itemFontFamily});
|
52
|
+
// font-size: var(${tokens.itemFontSize});
|
53
|
+
// font-style: var(${tokens.itemFontStyle});
|
54
|
+
// font-weight: var(${tokens.itemFontWeightBold});
|
55
|
+
// letter-spacing: var(${tokens.itemFontLetterSpacing});
|
56
|
+
// line-height: var(${tokens.itemFontLineHeight});
|
57
|
+
//
|
58
|
+
// background: var(${tokens.itemBackground});
|
59
|
+
// color: var(${tokens.itemColor});
|
60
|
+
// border-radius: var(${tokens.itemBorderRadius});
|
61
|
+
//
|
62
|
+
// padding: var(${tokens.itemPaddingTop}) var(${tokens.itemPaddingRight}) var(${tokens.itemPaddingBottom}) var(${
|
63
|
+
// tokens.itemPaddingLeft
|
64
|
+
// });
|
65
|
+
//
|
66
|
+
// margin: 0;
|
67
|
+
//
|
68
|
+
// &:hover:not(.${classes.dropdownItemIsDisabled}) {
|
69
|
+
// cursor: pointer;
|
70
|
+
// background: var(${tokens.itemBackgroundHover});
|
71
|
+
// }
|
72
|
+
//
|
73
|
+
// &.${classes.dropdownItemIsActive} {
|
74
|
+
// background: var(${tokens.itemBackgroundHover});
|
75
|
+
// }
|
76
|
+
//
|
77
|
+
// &.${classes.dropdownItemIsDisabled} {
|
78
|
+
// opacity: var(${tokens.disabledOpacity});
|
79
|
+
// cursor: not-allowed;
|
80
|
+
// }
|
81
|
+
// `;
|
82
|
+
|
33
83
|
var Wrapper = exports.Wrapper = /*#__PURE__*/_styledComponents["default"].li.withConfig({
|
34
84
|
componentId: "plasma-new-hope__sc-hs0ek1-4"
|
35
85
|
})(["display:flex;align-items:center;margin:0;box-sizing:content-box;padding-top:", ";padding-right:var(", ");padding-bottom:", ";padding-left:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ");color:var(", ");border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ");}&.", "{background:var(", ");}&.", "{opacity:var(", ");cursor:not-allowed;}:focus{outline:none;}", ";"], function (_ref) {
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.baseContent = exports.base = exports.StyledText = exports.StyledContentRight = exports.StyledContentLeft = void 0;
|
8
|
+
var _styledComponents = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("styled-components"));
|
9
|
+
var _Dropdown = /*#__PURE__*/require("../../Dropdown.tokens");
|
10
|
+
var _mixins = /*#__PURE__*/require("../../../../mixins");
|
11
|
+
var _templateObject;
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
14
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
15
|
+
var StyledContentLeft = exports.StyledContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
16
|
+
componentId: "plasma-new-hope__sc-17ya3ay-0"
|
17
|
+
})(["display:inline-flex;min-width:var(", ");color:var(", ");"], _Dropdown.tokens.itemContentLeftWidth, _Dropdown.tokens.itemContentLeftColor);
|
18
|
+
var StyledContentRight = exports.StyledContentRight = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
19
|
+
componentId: "plasma-new-hope__sc-17ya3ay-1"
|
20
|
+
})(["margin-left:auto;display:inline-flex;min-width:var(", ");color:var(", ");"], _Dropdown.tokens.itemContentRightWidth, _Dropdown.tokens.itemContentRightColor);
|
21
|
+
var StyledText = exports.StyledText = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
22
|
+
componentId: "plasma-new-hope__sc-17ya3ay-2"
|
23
|
+
})(["", ";"], /*#__PURE__*/(0, _mixins.applyEllipsis)());
|
24
|
+
|
25
|
+
// INFO: Для возможности переиспользования стилей в других компонентах
|
26
|
+
var baseContent = exports.baseContent = /*#__PURE__*/"\n box-sizing: content-box;\n display: flex;\n align-items: center;\n user-select: none;\n\n :focus {\n outline: none;\n }\n\n ".concat((0, _mixins.addFocus)({
|
27
|
+
outlineSize: '0.0625rem',
|
28
|
+
outlineOffset: '0',
|
29
|
+
outlineColor: "var(".concat(_Dropdown.tokens.focusColor, ")"),
|
30
|
+
outlineRadius: "var(".concat(_Dropdown.tokens.itemBorderRadius, ")"),
|
31
|
+
hasTransition: false
|
32
|
+
}), ";\n\n width: auto;\n\n font-family: var(").concat(_Dropdown.tokens.itemFontFamily, ");\n font-size: var(").concat(_Dropdown.tokens.itemFontSize, ");\n font-style: var(").concat(_Dropdown.tokens.itemFontStyle, ");\n font-weight: var(").concat(_Dropdown.tokens.itemFontWeightBold, ");\n letter-spacing: var(").concat(_Dropdown.tokens.itemFontLetterSpacing, ");\n line-height: var(").concat(_Dropdown.tokens.itemFontLineHeight, ");\n\n background: var(").concat(_Dropdown.tokens.itemBackground, ");\n color: var(").concat(_Dropdown.tokens.itemColor, ");\n border-radius: var(").concat(_Dropdown.tokens.itemBorderRadius, ");\n\n width: var(").concat(_Dropdown.tokens.itemWidth, ");\n height: var(").concat(_Dropdown.tokens.itemHeight, ");\n\n padding: var(").concat(_Dropdown.tokens.itemPaddingTop, ") var(").concat(_Dropdown.tokens.itemPaddingRight, ") var(").concat(_Dropdown.tokens.itemPaddingBottom, ")\n var(").concat(_Dropdown.tokens.itemPaddingLeft, ");\n\n margin: var(").concat(_Dropdown.tokens.itemMarginTop, ") var(").concat(_Dropdown.tokens.itemMarginRight, ") var(").concat(_Dropdown.tokens.itemMarginBottom, ")\n var(").concat(_Dropdown.tokens.itemMarginLeft, ");\n\n &:hover:not(.").concat(_Dropdown.classes.dropdownItemIsDisabled, ") {\n cursor: pointer;\n background: var(").concat(_Dropdown.tokens.itemBackgroundHover, ");\n }\n\n &.").concat(String(_Dropdown.classes.dropdownItemIsSelected), " {\n color: var(").concat(_Dropdown.tokens.itemColorSelected, ");\n background: var(").concat(_Dropdown.tokens.itemBackgroundSelected, ");\n\n &:hover:not(.").concat(_Dropdown.classes.dropdownItemIsDisabled, ") {\n background: var(").concat(_Dropdown.tokens.itemBackgroundSelectedHover, ");\n }\n }\n\n &.").concat(_Dropdown.classes.dropdownItemIsDisabled, " {\n opacity: var(").concat(_Dropdown.tokens.disabledOpacity, ");\n cursor: not-allowed;\n }\n");
|
33
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ";\n"])), baseContent);
|
@@ -0,0 +1,119 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.dropdownItemOldRoot = exports.dropdownItemOldConfig = void 0;
|
8
|
+
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
+
var _plasmaCore = /*#__PURE__*/require("@salutejs/plasma-core");
|
10
|
+
var _Dropdown = /*#__PURE__*/require("../../Dropdown.tokens");
|
11
|
+
var _utils = /*#__PURE__*/require("../../../../utils");
|
12
|
+
var _utils2 = /*#__PURE__*/require("../../utils");
|
13
|
+
var _base = /*#__PURE__*/require("./variations/_view/base");
|
14
|
+
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
15
|
+
var _DropdownItem = /*#__PURE__*/require("./DropdownItem.styles");
|
16
|
+
var _excluded = ["id", "className", "children", "text", "isSelected", "name", "checked", "value", "role", "view", "size", "disabled", "contentLeft", "contentRight", "onSelect", "onClick", "onChange"];
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
19
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
22
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
24
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
25
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
27
|
+
/**
|
28
|
+
* Элемент выпадающего списка
|
29
|
+
*/
|
30
|
+
var dropdownItemOldRoot = exports.dropdownItemOldRoot = function dropdownItemOldRoot(Root) {
|
31
|
+
return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRootRef) {
|
32
|
+
var id = _ref.id,
|
33
|
+
className = _ref.className,
|
34
|
+
children = _ref.children,
|
35
|
+
text = _ref.text,
|
36
|
+
isSelected = _ref.isSelected,
|
37
|
+
name = _ref.name,
|
38
|
+
checked = _ref.checked,
|
39
|
+
value = _ref.value,
|
40
|
+
role = _ref.role,
|
41
|
+
view = _ref.view,
|
42
|
+
size = _ref.size,
|
43
|
+
disabled = _ref.disabled,
|
44
|
+
ContentLeftComponent = _ref.contentLeft,
|
45
|
+
ContentRightComponent = _ref.contentRight,
|
46
|
+
onSelect = _ref.onSelect,
|
47
|
+
onClick = _ref.onClick,
|
48
|
+
onChange = _ref.onChange,
|
49
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
50
|
+
var uniqId = (0, _plasmaCore.safeUseId)();
|
51
|
+
var innerId = id || uniqId;
|
52
|
+
var withDropdownItemIsSelected = checked || isSelected ? _Dropdown.classes.dropdownItemIsSelected : undefined;
|
53
|
+
var withDropdownItemIsDisabled = disabled ? _Dropdown.classes.dropdownItemIsDisabled : undefined;
|
54
|
+
var handleOnClick = (0, _react.useCallback)(function (event) {
|
55
|
+
if (disabled) {
|
56
|
+
return;
|
57
|
+
}
|
58
|
+
onClick === null || onClick === void 0 || onClick(event);
|
59
|
+
if (onSelect && !ContentLeftComponent) {
|
60
|
+
onSelect(value, text);
|
61
|
+
}
|
62
|
+
}, [onSelect, disabled]);
|
63
|
+
var handleOnChange = (0, _react.useCallback)(function (event) {
|
64
|
+
if (disabled) {
|
65
|
+
return;
|
66
|
+
}
|
67
|
+
onChange === null || onChange === void 0 || onChange(event);
|
68
|
+
if (onSelect && ContentLeftComponent) {
|
69
|
+
onSelect(value, text);
|
70
|
+
}
|
71
|
+
}, [onSelect, disabled]);
|
72
|
+
var contentProps = _objectSpread({
|
73
|
+
name: name,
|
74
|
+
value: value,
|
75
|
+
checked: checked || isSelected,
|
76
|
+
disabled: disabled,
|
77
|
+
tabIndex: 0
|
78
|
+
}, !disabled && {
|
79
|
+
onChange: handleOnChange
|
80
|
+
});
|
81
|
+
var ContentLeft = (0, _react.useMemo)(function () {
|
82
|
+
return (0, _utils2.getValidComponent)(ContentLeftComponent, contentProps);
|
83
|
+
}, [ContentRightComponent, contentProps]);
|
84
|
+
var ContentRight = (0, _react.useMemo)(function () {
|
85
|
+
return (0, _utils2.getValidComponent)(ContentRightComponent, contentProps);
|
86
|
+
}, [ContentRightComponent, contentProps]);
|
87
|
+
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
88
|
+
className: (0, _utils.cx)(withDropdownItemIsSelected, withDropdownItemIsDisabled, className),
|
89
|
+
view: view,
|
90
|
+
size: size,
|
91
|
+
id: innerId,
|
92
|
+
isSelected: isSelected,
|
93
|
+
role: role,
|
94
|
+
ref: outerRootRef,
|
95
|
+
tabIndex: 0,
|
96
|
+
"aria-disabled": disabled,
|
97
|
+
onClick: handleOnClick,
|
98
|
+
"data-value": value
|
99
|
+
}, rest), text ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledContentLeft, null, ContentLeftComponent && ContentLeft), /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledText, null, text), /*#__PURE__*/_react["default"].createElement(_DropdownItem.StyledContentRight, null, ContentRightComponent && ContentRight)) : children);
|
100
|
+
});
|
101
|
+
};
|
102
|
+
var dropdownItemOldConfig = exports.dropdownItemOldConfig = {
|
103
|
+
name: 'DropdownItem',
|
104
|
+
tag: 'div',
|
105
|
+
layout: dropdownItemOldRoot,
|
106
|
+
base: _DropdownItem.base,
|
107
|
+
variations: {
|
108
|
+
view: {
|
109
|
+
css: _base.base
|
110
|
+
},
|
111
|
+
size: {
|
112
|
+
css: _base2.base
|
113
|
+
}
|
114
|
+
},
|
115
|
+
defaults: {
|
116
|
+
view: 'primary',
|
117
|
+
size: 'm'
|
118
|
+
}
|
119
|
+
};
|
@@ -63,9 +63,22 @@ Object.defineProperty(exports, "dropdownHeaderRoot", {
|
|
63
63
|
return _DropdownHeader.dropdownHeaderRoot;
|
64
64
|
}
|
65
65
|
});
|
66
|
+
Object.defineProperty(exports, "dropdownItemOldConfig", {
|
67
|
+
enumerable: true,
|
68
|
+
get: function get() {
|
69
|
+
return _DropdownItemOld.dropdownItemOldConfig;
|
70
|
+
}
|
71
|
+
});
|
72
|
+
Object.defineProperty(exports, "dropdownItemOldRoot", {
|
73
|
+
enumerable: true,
|
74
|
+
get: function get() {
|
75
|
+
return _DropdownItemOld.dropdownItemOldRoot;
|
76
|
+
}
|
77
|
+
});
|
66
78
|
var _DropdownDivider = /*#__PURE__*/require("./DropdownDivider/DropdownDivider");
|
67
79
|
var _DropdownFooter = /*#__PURE__*/require("./DropdownFooter/DropdownFooter");
|
68
80
|
var _DropdownGroup = /*#__PURE__*/require("./DropdownGroup/DropdownGroup");
|
69
81
|
var _DropdownHeader = /*#__PURE__*/require("./DropdownHeader/DropdownHeader");
|
70
82
|
var _DropdownItem = /*#__PURE__*/require("./DropdownItem/DropdownItem");
|
71
|
-
var _DropdownInner = /*#__PURE__*/require("./DropdownInner/DropdownInner");
|
83
|
+
var _DropdownInner = /*#__PURE__*/require("./DropdownInner/DropdownInner");
|
84
|
+
var _DropdownItemOld = /*#__PURE__*/require("./DropdownItemOld/DropdownItemOld");
|
@@ -1,13 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
|
-
exports.getPlacements = exports.getPlacement = exports.getCorrectHeight = exports.childrenWithProps = void 0;
|
6
|
+
exports.getValidComponent = exports.getPlacements = exports.getPlacement = exports.getCorrectHeight = exports.childrenWithProps = void 0;
|
8
7
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
8
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
10
9
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
11
11
|
var getPlacement = exports.getPlacement = function getPlacement(placement) {
|
12
12
|
return "".concat(placement, "-start");
|
13
13
|
};
|
@@ -36,4 +36,17 @@ var childrenWithProps = exports.childrenWithProps = function childrenWithProps(c
|
|
36
36
|
}
|
37
37
|
return child;
|
38
38
|
});
|
39
|
+
};
|
40
|
+
var isReactObject = function isReactObject(element) {
|
41
|
+
return _typeof(element) === 'object' || typeof element === 'function';
|
42
|
+
};
|
43
|
+
var getValidComponent = exports.getValidComponent = function getValidComponent(element, props) {
|
44
|
+
if ( /*#__PURE__*/(0, _react.isValidElement)(element)) {
|
45
|
+
return /*#__PURE__*/(0, _react.cloneElement)(element, props);
|
46
|
+
}
|
47
|
+
if (isReactObject(element)) {
|
48
|
+
var Component = element;
|
49
|
+
return /*#__PURE__*/_react["default"].createElement(Component, props);
|
50
|
+
}
|
51
|
+
return element;
|
39
52
|
};
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.selectItemRoot = exports.selectItemConfig = void 0;
|
7
|
-
var
|
7
|
+
var _Dropdown = /*#__PURE__*/require("../../../Dropdown");
|
8
8
|
var _base = /*#__PURE__*/require("./variations/_view/base");
|
9
9
|
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
10
10
|
var _SelectItem = /*#__PURE__*/require("./SelectItem.styles");
|
11
|
-
var selectItemRoot = exports.selectItemRoot =
|
11
|
+
var selectItemRoot = exports.selectItemRoot = _Dropdown.dropdownItemOldRoot;
|
12
12
|
var selectItemConfig = exports.selectItemConfig = {
|
13
13
|
name: 'SelectItem',
|
14
14
|
tag: 'div',
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.mappingOverride = exports.base = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _Select = /*#__PURE__*/require("../../Select.tokens");
|
9
|
-
var
|
10
|
-
var _DropdownItem = /*#__PURE__*/require("../../../Dropdown/ui/
|
9
|
+
var _Dropdown = /*#__PURE__*/require("../../../Dropdown");
|
10
|
+
var _DropdownItem = /*#__PURE__*/require("../../../Dropdown/ui/DropdownItemOld/DropdownItem.styles");
|
11
11
|
// NOTE: Необходимое переопределение токенов из компонента DropdownItem т.к. используются его части
|
12
|
-
var mappingOverride = exports.mappingOverride = /*#__PURE__*/"\n ".concat(
|
12
|
+
var mappingOverride = exports.mappingOverride = /*#__PURE__*/"\n ".concat(_Dropdown.dropdownTokens.itemBackground, ": var(").concat(_Select.tokens.itemBackground, ");\n ").concat(_Dropdown.dropdownTokens.itemColor, ": var(").concat(_Select.tokens.itemColor, ");\n ").concat(_Dropdown.dropdownTokens.itemBackgroundHover, ": var(").concat(_Select.tokens.itemBackgroundHover, ");\n ").concat(_Dropdown.dropdownTokens.itemBackgroundSelected, ": var(").concat(_Select.tokens.itemBackgroundSelected, ");\n ").concat(_Dropdown.dropdownTokens.itemColorSelected, ": var(").concat(_Select.tokens.itemColorSelected, ");\n ").concat(_Dropdown.dropdownTokens.itemBackgroundSelectedHover, ": var(").concat(_Select.tokens.itemBackgroundSelectedHover, ");\n ").concat(_Dropdown.dropdownTokens.itemColorSelectedHover, ": var(").concat(_Select.tokens.itemColorSelectedHover, ");\n ").concat(_Dropdown.dropdownTokens.itemContentLeftColor, ": var(").concat(_Select.tokens.itemContentLeftColor, ");\n ").concat(_Dropdown.dropdownTokens.itemContentRightColor, ": var(").concat(_Select.tokens.itemContentRightColor, ");\n ").concat(_Dropdown.dropdownTokens.disabledOpacity, ": var(").concat(_Select.tokens.disabledOpacity, ");\n ").concat(_Dropdown.dropdownTokens.focusColor, ": var(").concat(_Select.tokens.focusColor, ");\n ").concat(_Dropdown.dropdownTokens.itemWidth, ": var(").concat(_Select.tokens.itemWidth, ");\n ").concat(_Dropdown.dropdownTokens.itemHeight, ": var(").concat(_Select.tokens.itemHeight, ");\n ").concat(_Dropdown.dropdownTokens.itemBorderRadius, ": var(").concat(_Select.tokens.itemBorderRadius, ");\n ").concat(_Dropdown.dropdownTokens.itemPaddingTop, ": var(").concat(_Select.tokens.itemPaddingTop, ");\n ").concat(_Dropdown.dropdownTokens.itemPaddingRight, ": var(").concat(_Select.tokens.itemPaddingRight, ");\n ").concat(_Dropdown.dropdownTokens.itemPaddingBottom, ": var(").concat(_Select.tokens.itemPaddingBottom, ");\n ").concat(_Dropdown.dropdownTokens.itemPaddingLeft, ": var(").concat(_Select.tokens.itemPaddingLeft, ");\n ").concat(_Dropdown.dropdownTokens.itemMarginTop, ": var(").concat(_Select.tokens.itemMarginTop, ");\n ").concat(_Dropdown.dropdownTokens.itemMarginRight, ": var(").concat(_Select.tokens.itemMarginRight, ");\n ").concat(_Dropdown.dropdownTokens.itemMarginBottom, ": var(").concat(_Select.tokens.itemMarginBottom, ");\n ").concat(_Dropdown.dropdownTokens.itemMarginLeft, ": var(").concat(_Select.tokens.itemMarginLeft, ");\n ").concat(_Dropdown.dropdownTokens.itemFontFamily, ": var(").concat(_Select.tokens.itemFontFamily, ");\n ").concat(_Dropdown.dropdownTokens.itemFontSize, ": var(").concat(_Select.tokens.itemFontSize, ");\n ").concat(_Dropdown.dropdownTokens.itemFontStyle, ": var(").concat(_Select.tokens.itemFontStyle, ");\n ").concat(_Dropdown.dropdownTokens.itemFontWeightBold, ": var(").concat(_Select.tokens.itemFontWeightBold, ");\n ").concat(_Dropdown.dropdownTokens.itemFontLetterSpacing, ": var(").concat(_Select.tokens.itemFontLetterSpacing, ");\n ").concat(_Dropdown.dropdownTokens.itemFontLineHeight, ": var(").concat(_Select.tokens.itemFontLineHeight, ");\n ").concat(_Dropdown.dropdownTokens.itemContentLeftWidth, ": var(").concat(_Select.tokens.itemContentLeftWidth, ");\n ").concat(_Dropdown.dropdownTokens.itemContentRightWidth, ": var(").concat(_Select.tokens.itemContentRightWidth, ");\n");
|
13
13
|
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", ";", ";"], _DropdownItem.baseContent, mappingOverride);
|
@@ -2,7 +2,8 @@ export var classes = {
|
|
2
2
|
dropdownRoot: 'dropdown-root',
|
3
3
|
dropdownItemIsFocused: 'dropdown-item-is-focused',
|
4
4
|
dropdownItemIsDisabled: 'dropdown-item-is-disabled',
|
5
|
-
dropdownItemIsActive: 'dropdown-item-is-active'
|
5
|
+
dropdownItemIsActive: 'dropdown-item-is-active',
|
6
|
+
dropdownItemIsSelected: 'dropdownItemIsSelected'
|
6
7
|
};
|
7
8
|
export var tokens = {
|
8
9
|
background: '--plasma-dropdown-background',
|
@@ -96,5 +97,19 @@ export var tokens = {
|
|
96
97
|
groupLabelMarginTop: '--plasma-dropdown-group-label-margin-top',
|
97
98
|
groupLabelMarginRight: '--plasma-dropdown-group-label-margin-right',
|
98
99
|
groupLabelMarginBottom: '--plasma-dropdown-group-label-margin-bottom',
|
99
|
-
groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left'
|
100
|
+
groupLabelMarginLeft: '--plasma-dropdown-group-label-margin-left',
|
101
|
+
itemBackgroundSelected: '--plasma-dropdown-item-background-selected',
|
102
|
+
itemColorSelected: '--plasma-dropdown-item-color-selected',
|
103
|
+
itemBackgroundSelectedHover: '--plasma-dropdown-item-background-selected-hover',
|
104
|
+
itemColorSelectedHover: '--plasma-dropdown-item-color-selected-hover',
|
105
|
+
itemContentLeftColor: '--plasma-dropdown-item-content-left-color',
|
106
|
+
itemContentRightColor: '--plasma-dropdown-item-content-right-color',
|
107
|
+
itemWidth: '--plasma-dropdown-item-width',
|
108
|
+
itemHeight: '--plasma-dropdown-item-height',
|
109
|
+
itemMarginTop: '--plasma-dropdown-item-margin-top',
|
110
|
+
itemMarginRight: '--plasma-dropdown-item-margin-right',
|
111
|
+
itemMarginBottom: '--plasma-dropdown-item-margin-bottom',
|
112
|
+
itemMarginLeft: '--plasma-dropdown-item-margin-left',
|
113
|
+
itemContentLeftWidth: '--plasma-dropdown-item-content-left-width',
|
114
|
+
itemContentRightWidth: '--plasma-dropdown-item-content-right-width'
|
100
115
|
};
|
@@ -15,14 +15,64 @@ export var StyledText = /*#__PURE__*/styled.div.withConfig({
|
|
15
15
|
})(["", ";flex:1;"], /*#__PURE__*/applyEllipsis());
|
16
16
|
|
17
17
|
// TODO: Remove baseContent after refactoring a Select component
|
18
|
-
export
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
// export const baseContent = `
|
19
|
+
// box-sizing: content-box;
|
20
|
+
// display: flex;
|
21
|
+
// align-items: center;
|
22
|
+
// user-select: none;
|
23
|
+
//
|
24
|
+
// :focus {
|
25
|
+
// outline: none;
|
26
|
+
// }
|
27
|
+
//
|
28
|
+
// ${addFocus({
|
29
|
+
// outlineSize: '0.0625rem',
|
30
|
+
// outlineOffset: '0',
|
31
|
+
// outlineColor: `var(${tokens.focusColor})`,
|
32
|
+
// outlineRadius: `var(${tokens.itemBorderRadius})`,
|
33
|
+
// hasTransition: false,
|
34
|
+
// customFocusRules: `
|
35
|
+
// &.${classes.dropdownItemIsFocused}:before {
|
36
|
+
// outline: none;
|
37
|
+
// box-shadow: 0 0 0 0.0625rem var(${tokens.focusColor});
|
38
|
+
// }
|
39
|
+
// `,
|
40
|
+
// })};
|
41
|
+
//
|
42
|
+
// width: 100%;
|
43
|
+
//
|
44
|
+
// font-family: var(${tokens.itemFontFamily});
|
45
|
+
// font-size: var(${tokens.itemFontSize});
|
46
|
+
// font-style: var(${tokens.itemFontStyle});
|
47
|
+
// font-weight: var(${tokens.itemFontWeightBold});
|
48
|
+
// letter-spacing: var(${tokens.itemFontLetterSpacing});
|
49
|
+
// line-height: var(${tokens.itemFontLineHeight});
|
50
|
+
//
|
51
|
+
// background: var(${tokens.itemBackground});
|
52
|
+
// color: var(${tokens.itemColor});
|
53
|
+
// border-radius: var(${tokens.itemBorderRadius});
|
54
|
+
//
|
55
|
+
// padding: var(${tokens.itemPaddingTop}) var(${tokens.itemPaddingRight}) var(${tokens.itemPaddingBottom}) var(${
|
56
|
+
// tokens.itemPaddingLeft
|
57
|
+
// });
|
58
|
+
//
|
59
|
+
// margin: 0;
|
60
|
+
//
|
61
|
+
// &:hover:not(.${classes.dropdownItemIsDisabled}) {
|
62
|
+
// cursor: pointer;
|
63
|
+
// background: var(${tokens.itemBackgroundHover});
|
64
|
+
// }
|
65
|
+
//
|
66
|
+
// &.${classes.dropdownItemIsActive} {
|
67
|
+
// background: var(${tokens.itemBackgroundHover});
|
68
|
+
// }
|
69
|
+
//
|
70
|
+
// &.${classes.dropdownItemIsDisabled} {
|
71
|
+
// opacity: var(${tokens.disabledOpacity});
|
72
|
+
// cursor: not-allowed;
|
73
|
+
// }
|
74
|
+
// `;
|
75
|
+
|
26
76
|
export var Wrapper = /*#__PURE__*/styled.li.withConfig({
|
27
77
|
componentId: "plasma-new-hope__sc-hs0ek1-4"
|
28
78
|
})(["display:flex;align-items:center;margin:0;box-sizing:content-box;padding-top:", ";padding-right:var(", ");padding-bottom:", ";padding-left:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");background:var(", ");color:var(", ");border-radius:var(", ");user-select:none;&:hover:not(.", "){cursor:pointer;background:var(", ");}&.", "{background:var(", ");}&.", "{opacity:var(", ");cursor:not-allowed;}:focus{outline:none;}", ";"], function (_ref) {
|