@cfx-dev/ui-components 4.3.14 → 4.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DropdownContent-Robn2rha.js → DropdownContent-BertjH0y.js} +128 -124
- package/dist/assets/css/DropdownContent.css +1 -1
- package/dist/assets/css/Select.css +1 -1
- package/dist/components/DropdownContent/DropdownContent.d.ts +6 -2
- package/dist/components/DropdownContent/DropdownContent.js +1 -1
- package/dist/components/DropdownContent/index.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +2 -2
- package/dist/components/DropdownSelect/DropdownSelect.js +56 -55
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +14 -14
- package/dist/components/Text/Text.js +54 -41
- package/dist/components/Text/Text.types.d.ts +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +178 -176
- package/dist/utils/joaat32.d.ts +1 -0
- package/dist/utils/joaat32.js +11 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.cfxui__DropdownContent__content__ea3aa{--border-color: var(--color-input-border);border-radius:var(--border-radius-small);box-shadow:0 0 0 var(--input-border-size, initial) var(--border-color) inset;background-color:rgba(var(--color-bg),1);overflow:hidden}.cfxui__DropdownContent__content__ea3aa.cfxui__DropdownContent__onlight__352dc{--border-color: var(--color-input-onlight-border)}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xsmall);height:var(--control-height-normal);display:flex;align-items:center;padding:0 var(--offset-medium);cursor:pointer}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac:not(:last-child){box-shadow:0 calc(-1 * var(--input-border-size, initial)) 0 0 var(--border-color) inset}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac:hover{background-color:rgba(var(--color-bg-light),1)}.cfxui__DropdownContent__content__ea3aa.cfxui__DropdownContent__fullWidth__c56c3,.cfxui__DropdownContent__content__ea3aa.cfxui__DropdownContent__fullWidth__c56c3 .cfxui__DropdownContent__item__8feac{width:100%}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}@media (min-width: 360px){.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 360px){.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 640px){.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 640px){.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 1024px){.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 1024px){.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 1280px){.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 1280px){.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 1920px){.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 1920px){.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 2560px){.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 2560px){.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}
|
|
1
|
+
.cfxui__DropdownContent__fullWidth__c56c3,.cfxui__DropdownContent__fullWidth__c56c3 .cfxui__DropdownContent__item__8feac{width:100%}.cfxui__DropdownContent__content__ea3aa{--border-color: var(--color-input-border);border-radius:var(--border-radius-small);box-shadow:0 0 0 var(--input-border-size, initial) var(--border-color) inset;background-color:rgba(var(--color-bg),1);overflow:hidden}.cfxui__DropdownContent__content__ea3aa.cfxui__DropdownContent__onlight__352dc{--border-color: var(--color-input-onlight-border)}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xsmall);height:var(--control-height-normal);display:flex;align-items:center;padding:0 var(--offset-medium);cursor:pointer}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac:not(:last-child){box-shadow:0 calc(-1 * var(--input-border-size, initial)) 0 0 var(--border-color) inset}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac:hover:not(.cfxui__DropdownContent__disabled__9002a){background-color:rgba(var(--color-bg-light),1)}.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac.cfxui__DropdownContent__disabled__9002a{cursor:not-allowed;color:rgba(var(--color-secondary),1);background-color:rgba(var(--color-bg-dark),.5)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-large__04104.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-initial-small__1d3ca.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}@media (min-width: 360px){.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-large__269b0.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 360px){.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-small__faa09.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 640px){.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-large__3106f.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 640px){.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-small-medium-small__88821.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 1024px){.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large__a7e74.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 1024px){.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-small__d130d.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 1280px){.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-large__ca9d3.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 1280px){.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-medium-large-small__a2a72.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 1920px){.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-large-large__87b4b.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 1920px){.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-large-small__e42f3.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}@media (min-width: 2560px){.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-large__026e8.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-small);height:var(--control-height-normal)}}@media (min-width: 2560px){.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__trigger__4bac0{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__trigger__4bac0 .cfxui__DropdownContent__icon__2ede5 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__DropdownContent__dropdownselect-size-xlarge-small__fa5cb.cfxui__DropdownContent__content__ea3aa .cfxui__DropdownContent__item__8feac{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.cfxui__Select__trigger__232e4{width:100%;padding:0 var(--offset-medium);border:none;display:inline-flex;align-items:center;justify-content:space-between;width:auto;font-size:var(--font-size-xsmall);height:var(--control-height-normal);color:var(--color-input-text);font-weight:var(--font-weight-normal);font-family:var(--font-family-primary);border-radius:var(--border-radius-small);background-color:var(--color-input-background);box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-border) inset}.cfxui__Select__trigger__232e4::placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4::-webkit-input-placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4::-moz-placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4:-ms-input-placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4:disabled{cursor:not-allowed;opacity:.5;box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-disabled-border) inset}.cfxui__Select__trigger__232e4:not(:disabled):hover{box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-hover-border) inset}.cfxui__Select__trigger__232e4:not(:disabled):hover::placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):hover::-webkit-input-placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):hover::-moz-placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):hover:-ms-input-placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover{box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-focus-border) inset}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible::placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover::placeholder{color:transparent}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible::-webkit-input-placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover::-webkit-input-placeholder{color:transparent}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible::-moz-placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover::-moz-placeholder{color:transparent}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:-ms-input-placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover:-ms-input-placeholder{color:transparent}.cfxui__Select__trigger__232e4::placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4::-webkit-input-placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4::-moz-placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4:-ms-input-placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4[type=search]::-ms-clear,.cfxui__Select__trigger__232e4[type=search]::-ms-reveal{display:none;width:0;height:0}.cfxui__Select__trigger__232e4[type=search]::-webkit-search-decoration,.cfxui__Select__trigger__232e4[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.cfxui__Select__trigger__232e4[type=search]{padding-right:calc(var(--offset-medium) + var(--offset-large));-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}.cfxui__Select__trigger__232e4:not(:disabled){cursor:pointer}.cfxui__Select__trigger__232e4[data-placeholder]{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4[data-placeholder]:hover,.cfxui__Select__trigger__232e4[data-placeholder]:focus{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4.cfxui__Select__fullWidth__739d7{width:100%}.cfxui__Select__icon__36b6c{margin-left:var(--quant)}.cfxui__Select__content__067da{padding:var(--border-radius-xsmall) 0;border-radius:var(--border-radius-xsmall);background-color:var(--color-interactive-list-background);box-shadow:var(--shadow-large, initial);z-index:2;animation:cfxui__Select__app__e0114 ease .2s}.cfxui__Select__content__067da .cfxui__Select__arrow__8e7eb{display:flex;align-items:center;justify-content:center}.cfxui__Select__content__067da .cfxui__Select__arrow__8e7eb:hover{background-color:var(--color-interactive-list-item-hover-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:var(--offset-small) var(--offset-normal);color:var(--color-input-text);font-weight:var(--font-weight-normal);font-family:var(--font-family-primary);font-size:var(--font-size-xsmall);height:var(--control-height-normal);background-color:var(--color-interactive-list-item-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d[data-state=checked]{background-color:var(--color-interactive-list-item-active-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d[data-highlighted]{background-color:var(--color-interactive-list-item-hover-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xsmall, initial);height:var(--font-size-xsmall, initial)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xsmall, initial);height:var(--font-size-xsmall, initial)}@keyframes cfxui__Select__app__e0114{0%{opacity:0}to{opacity:1}}.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}@media (min-width: 360px){.cfxui__Select__select-size-small-large__79811.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-large__79811.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-small-large__79811.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-small-large__79811.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 360px){.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 640px){.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 640px){.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 1024px){.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 1024px){.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 1280px){.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 1280px){.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 1920px){.cfxui__Select__select-size-large-large__88062.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-large-large__88062.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-large-large__88062.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-large-large__88062.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 1920px){.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 2560px){.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 2560px){.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}
|
|
1
|
+
.cfxui__Select__trigger__232e4{width:100%;padding:0 var(--offset-medium);border:none;display:inline-flex;align-items:center;justify-content:space-between;width:auto;font-size:var(--font-size-xsmall);height:var(--control-height-normal);color:var(--color-input-text);font-weight:var(--font-weight-normal);font-family:var(--font-family-primary);border-radius:var(--border-radius-small);background-color:var(--color-input-background);box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-border) inset}.cfxui__Select__trigger__232e4::placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4::-webkit-input-placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4::-moz-placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4:-ms-input-placeholder{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4:disabled{cursor:not-allowed;opacity:.5;box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-disabled-border) inset}.cfxui__Select__trigger__232e4:not(:disabled):hover{box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-hover-border) inset}.cfxui__Select__trigger__232e4:not(:disabled):hover::placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):hover::-webkit-input-placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):hover::-moz-placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):hover:-ms-input-placeholder{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover{box-shadow:0 0 0 var(--input-border-size, initial) var(--color-input-focus-border) inset}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible::placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover::placeholder{color:transparent}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible::-webkit-input-placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover::-webkit-input-placeholder{color:transparent}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible::-moz-placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover::-moz-placeholder{color:transparent}.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:-ms-input-placeholder,.cfxui__Select__trigger__232e4:not(:disabled):focus-visible:hover:-ms-input-placeholder{color:transparent}.cfxui__Select__trigger__232e4::placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4::-webkit-input-placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4::-moz-placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4:-ms-input-placeholder{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4{transition:all .25s ease,outline-offset 0s,outline 0s}.cfxui__Select__trigger__232e4[type=search]::-ms-clear,.cfxui__Select__trigger__232e4[type=search]::-ms-reveal{display:none;width:0;height:0}.cfxui__Select__trigger__232e4[type=search]::-webkit-search-decoration,.cfxui__Select__trigger__232e4[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.cfxui__Select__trigger__232e4[type=search]{padding-right:calc(var(--offset-medium) + var(--offset-large));-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;outline-offset:-2px}.cfxui__Select__trigger__232e4:not(:disabled){cursor:pointer}.cfxui__Select__trigger__232e4[data-placeholder]{color:var(--color-input-placeholder)}.cfxui__Select__trigger__232e4[data-placeholder]:hover,.cfxui__Select__trigger__232e4[data-placeholder]:focus{color:var(--color-input-placeholder-hover)}.cfxui__Select__trigger__232e4.cfxui__Select__fullWidth__739d7{width:100%}.cfxui__Select__icon__36b6c{margin-left:var(--quant)}.cfxui__Select__content__067da{padding:var(--border-radius-xsmall) 0;border-radius:var(--border-radius-xsmall);background-color:var(--color-interactive-list-background);box-shadow:var(--shadow-large, initial);z-index:9000;animation:cfxui__Select__app__e0114 ease .2s}.cfxui__Select__content__067da .cfxui__Select__arrow__8e7eb{display:flex;align-items:center;justify-content:center}.cfxui__Select__content__067da .cfxui__Select__arrow__8e7eb:hover{background-color:var(--color-interactive-list-item-hover-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:var(--offset-small) var(--offset-normal);color:var(--color-input-text);font-weight:var(--font-weight-normal);font-family:var(--font-family-primary);font-size:var(--font-size-xsmall);height:var(--control-height-normal);background-color:var(--color-interactive-list-item-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d[data-state=checked]{background-color:var(--color-interactive-list-item-active-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d[data-highlighted]{background-color:var(--color-interactive-list-item-hover-background)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xsmall, initial);height:var(--font-size-xsmall, initial)}.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xsmall, initial);height:var(--font-size-xsmall, initial)}@keyframes cfxui__Select__app__e0114{0%{opacity:0}to{opacity:1}}.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-initial-large__5e47d.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-initial-small__5ae12.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}@media (min-width: 360px){.cfxui__Select__select-size-small-large__79811.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-large__79811.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-small-large__79811.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-small-large__79811.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 360px){.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-small-small__1c10c.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 640px){.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-small-medium-large__0bc35.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 640px){.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-small-medium-small__82515.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 1024px){.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-medium-large__e0eb0.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 1024px){.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-medium-small__2c904.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 1280px){.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-medium-large-large__a66c1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 1280px){.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-medium-large-small__7dce3.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 1920px){.cfxui__Select__select-size-large-large__88062.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-large-large__88062.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-large-large__88062.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-large-large__88062.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 1920px){.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-large-small__fb50b.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}@media (min-width: 2560px){.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-small);height:var(--control-height-large)}.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}.cfxui__Select__select-size-xlarge-large__5abb1.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-small, initial);height:var(--font-size-small, initial)}}@media (min-width: 2560px){.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__trigger__232e4,.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__content__067da .cfxui__Select__option__2de5d{font-size:var(--font-size-xxsmall);height:var(--control-height-small)}.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}.cfxui__Select__select-size-xlarge-small__5ddbb.cfxui__Select__content__067da .cfxui__Select__option__2de5d .cfxui__Select__tickIcon__71e80 svg{width:var(--font-size-xxsmall, initial);height:var(--font-size-xxsmall, initial)}}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { InputSize } from '../Input';
|
|
3
|
-
import { SelectOption } from '../Select';
|
|
4
3
|
import { ResponsiveValueType } from '../../utils/ui';
|
|
5
4
|
|
|
5
|
+
export interface DropdownOption<T extends string> {
|
|
6
|
+
value: T;
|
|
7
|
+
label: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
6
10
|
export type ExtraClassNameTyape = 'content' | 'trigger';
|
|
7
|
-
export type DropdownContentOption =
|
|
11
|
+
export type DropdownContentOption = DropdownOption<string>;
|
|
8
12
|
export interface DropdownContentProps {
|
|
9
13
|
options: DropdownContentOption[];
|
|
10
14
|
className?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { DropdownContentOption } from '../DropdownContent';
|
|
2
3
|
import { IconSize } from '../Icon';
|
|
3
4
|
import { InputSize } from '../Input';
|
|
4
|
-
import { SelectOption } from '../Select';
|
|
5
5
|
import { ResponsiveValueType } from '../../utils/ui';
|
|
6
6
|
|
|
7
7
|
export declare const ICON_SIZE_MAP: Record<InputSize, IconSize>;
|
|
8
8
|
export interface DropdownSelectProps<T = string> {
|
|
9
|
-
options:
|
|
9
|
+
options: DropdownContentOption[];
|
|
10
10
|
value?: T;
|
|
11
11
|
onChange: (value: T) => void;
|
|
12
12
|
placeholder?: React.ReactNode;
|
|
@@ -1,74 +1,75 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { g as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { mergeRefs as
|
|
8
|
-
const
|
|
9
|
-
icon:
|
|
10
|
-
trigger:
|
|
11
|
-
onlight:
|
|
12
|
-
fullWidth:
|
|
13
|
-
placeholder:
|
|
14
|
-
},
|
|
1
|
+
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { g as D, R as W, T as N, D as R } from "../../DropdownContent-BertjH0y.js";
|
|
3
|
+
import f, { useRef as v, useState as b, useEffect as z } from "react";
|
|
4
|
+
import I from "../Flex/Flex.js";
|
|
5
|
+
import { clsx as T } from "../../utils/clsx.js";
|
|
6
|
+
import { Icon as j } from "../Icon/Icon.js";
|
|
7
|
+
import { mergeRefs as E } from "../../utils/mergeRefs.js";
|
|
8
|
+
const M = "cfxui__DropdownSelect__icon__d05b8", O = "cfxui__DropdownSelect__trigger__c03df", k = "cfxui__DropdownSelect__onlight__f0191", y = "cfxui__DropdownSelect__fullWidth__dce56", A = "cfxui__DropdownSelect__placeholder__e0d89", e = {
|
|
9
|
+
icon: M,
|
|
10
|
+
trigger: O,
|
|
11
|
+
onlight: k,
|
|
12
|
+
fullWidth: y,
|
|
13
|
+
placeholder: A
|
|
14
|
+
}, J = {
|
|
15
15
|
small: "xxsmall",
|
|
16
16
|
normal: "xsmall",
|
|
17
17
|
large: "normal"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function K(_) {
|
|
20
20
|
const {
|
|
21
|
-
options:
|
|
22
|
-
value:
|
|
23
|
-
onChange:
|
|
24
|
-
size:
|
|
25
|
-
fullWidth:
|
|
26
|
-
onlight:
|
|
27
|
-
disabled:
|
|
28
|
-
placeholder:
|
|
29
|
-
ref:
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
t && o.current && h(o.current.offsetWidth);
|
|
33
|
-
}, [t]);
|
|
34
|
-
const p = w(s, "trigger"), u = I(
|
|
35
|
-
p,
|
|
21
|
+
options: t,
|
|
22
|
+
value: l,
|
|
23
|
+
onChange: c,
|
|
24
|
+
size: i = "normal",
|
|
25
|
+
fullWidth: o = !1,
|
|
26
|
+
onlight: g = !1,
|
|
27
|
+
disabled: m,
|
|
28
|
+
placeholder: u = "Select...",
|
|
29
|
+
ref: p
|
|
30
|
+
} = _, r = v(null), [h, x] = b(void 0), S = D(i, "trigger"), w = T(
|
|
31
|
+
S,
|
|
36
32
|
e.trigger,
|
|
37
33
|
{
|
|
38
|
-
[e.placeholder]: !
|
|
39
|
-
[e.fullWidth]:
|
|
40
|
-
[e.onlight]:
|
|
34
|
+
[e.placeholder]: !l,
|
|
35
|
+
[e.fullWidth]: o,
|
|
36
|
+
[e.onlight]: g
|
|
41
37
|
}
|
|
42
|
-
),
|
|
43
|
-
n
|
|
44
|
-
}, [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
), C = f.useCallback((n) => {
|
|
39
|
+
c(n);
|
|
40
|
+
}, [c]), a = f.useMemo(
|
|
41
|
+
() => t.find((n) => n.value === l),
|
|
42
|
+
[t, l]
|
|
43
|
+
);
|
|
44
|
+
return z(() => {
|
|
45
|
+
o && r.current && x(r.current.offsetWidth);
|
|
46
|
+
}, [o]), /* @__PURE__ */ d(W, { children: [
|
|
47
|
+
/* @__PURE__ */ s(
|
|
48
|
+
N,
|
|
48
49
|
{
|
|
49
|
-
ref:
|
|
50
|
-
className:
|
|
51
|
-
disabled:
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */
|
|
50
|
+
ref: E(p, r),
|
|
51
|
+
className: w,
|
|
52
|
+
disabled: m,
|
|
53
|
+
children: /* @__PURE__ */ d(I, { gap: "small", centered: !0, spaceBetween: !0, children: [
|
|
54
|
+
a !== void 0 ? a.label : u,
|
|
55
|
+
/* @__PURE__ */ s(j, { className: e.icon, name: "DownChevron" })
|
|
55
56
|
] })
|
|
56
57
|
}
|
|
57
58
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
59
|
+
/* @__PURE__ */ s(
|
|
60
|
+
R,
|
|
60
61
|
{
|
|
61
|
-
triggerWidth:
|
|
62
|
-
options:
|
|
63
|
-
size:
|
|
64
|
-
fullWidth:
|
|
65
|
-
onSelect:
|
|
62
|
+
triggerWidth: h,
|
|
63
|
+
options: t,
|
|
64
|
+
size: i,
|
|
65
|
+
fullWidth: o,
|
|
66
|
+
onSelect: C
|
|
66
67
|
}
|
|
67
68
|
)
|
|
68
69
|
] });
|
|
69
70
|
}
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
K as DropdownSelect,
|
|
73
|
+
J as ICON_SIZE_MAP,
|
|
74
|
+
K as default
|
|
74
75
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import
|
|
4
|
-
import { Text as
|
|
3
|
+
import t from "../Flex/Flex.js";
|
|
4
|
+
import { Text as a } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
|
-
import { DropdownSelect as
|
|
6
|
+
import { DropdownSelect as o } from "./DropdownSelect.js";
|
|
7
7
|
const c = [
|
|
8
8
|
{
|
|
9
|
-
value: "
|
|
9
|
+
value: "value_all",
|
|
10
10
|
label: "all"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
value: "
|
|
13
|
+
value: "value_recurring",
|
|
14
14
|
label: "recurring"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
value: "
|
|
17
|
+
value: "value_bursts",
|
|
18
18
|
label: "bursts"
|
|
19
19
|
}
|
|
20
20
|
];
|
|
21
21
|
function d() {
|
|
22
22
|
const [i, n] = r.useState(void 0), [u, s] = r.useState(void 0);
|
|
23
|
-
return /* @__PURE__ */ t
|
|
24
|
-
/* @__PURE__ */ t
|
|
25
|
-
/* @__PURE__ */ e(
|
|
23
|
+
return /* @__PURE__ */ l(t, { gap: "large", vertical: !0, pb: 20, children: [
|
|
24
|
+
/* @__PURE__ */ l(t, { gap: "normal", vertical: !0, children: [
|
|
25
|
+
/* @__PURE__ */ e(a, { children: "Default Select Input" }),
|
|
26
26
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
27
|
-
|
|
27
|
+
o,
|
|
28
28
|
{
|
|
29
29
|
options: c,
|
|
30
30
|
onChange: n,
|
|
@@ -32,10 +32,10 @@ function d() {
|
|
|
32
32
|
}
|
|
33
33
|
) })
|
|
34
34
|
] }),
|
|
35
|
-
/* @__PURE__ */ t
|
|
36
|
-
/* @__PURE__ */ e(
|
|
35
|
+
/* @__PURE__ */ l(t, { gap: "normal", vertical: !0, children: [
|
|
36
|
+
/* @__PURE__ */ e(a, { children: "Full Width Select Input" }),
|
|
37
37
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
38
|
-
|
|
38
|
+
o,
|
|
39
39
|
{
|
|
40
40
|
size: "large",
|
|
41
41
|
options: c,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { getColor as
|
|
2
|
+
import { clsx as E } from "../../utils/clsx.js";
|
|
3
|
+
import { getColor as O } from "../../utils/color.js";
|
|
4
4
|
import { ui as o } from "../../utils/ui/ui.js";
|
|
5
5
|
import { TextSizeEnum as a } from "../../utils/ui/ui.types.js";
|
|
6
|
-
const
|
|
7
|
-
root:
|
|
8
|
-
centered:
|
|
9
|
-
underlined:
|
|
10
|
-
strikethrough:
|
|
11
|
-
truncated:
|
|
12
|
-
typographic:
|
|
13
|
-
block:
|
|
14
|
-
},
|
|
6
|
+
const H = "cfxui__Text__root__2fe11", N = "cfxui__Text__centered__4d7bd", $ = "cfxui__Text__underlined__5860e", w = "cfxui__Text__strikethrough__e3ee3", P = "cfxui__Text__truncated__417f4", q = "cfxui__Text__typographic__d8155", B = "cfxui__Text__block__cb1b6", r = {
|
|
7
|
+
root: H,
|
|
8
|
+
centered: N,
|
|
9
|
+
underlined: $,
|
|
10
|
+
strikethrough: w,
|
|
11
|
+
truncated: P,
|
|
12
|
+
typographic: q,
|
|
13
|
+
block: B
|
|
14
|
+
}, D = (e) => e in a ? o.fontSize(e) : typeof e == "number" ? o.q(e) : e, I = (e) => e in a ? o.lineHeight(e) : typeof e == "number" ? o.q(e) : e, L = {
|
|
15
15
|
0: 0,
|
|
16
16
|
25: "var(--text-opacity-25)",
|
|
17
17
|
50: "var(--text-opacity-50)",
|
|
18
18
|
75: "var(--text-opacity-75)",
|
|
19
19
|
100: 1
|
|
20
|
-
},
|
|
20
|
+
}, M = {
|
|
21
21
|
h1: "h1",
|
|
22
22
|
h2: "h2",
|
|
23
23
|
h3: "h3",
|
|
24
24
|
h4: "h4",
|
|
25
25
|
h5: "h5",
|
|
26
26
|
h6: "h6"
|
|
27
|
-
},
|
|
28
|
-
const t = typeof e == "string" &&
|
|
27
|
+
}, V = (e, n = 1) => {
|
|
28
|
+
const t = typeof e == "string" && L[e];
|
|
29
29
|
return typeof t == "string" || typeof t == "number" ? t : n;
|
|
30
|
-
},
|
|
31
|
-
function
|
|
30
|
+
}, X = "primary";
|
|
31
|
+
function j(e) {
|
|
32
32
|
const {
|
|
33
33
|
family: n,
|
|
34
34
|
size: t = "normal",
|
|
@@ -41,52 +41,65 @@ function V(e) {
|
|
|
41
41
|
truncated: h = !1,
|
|
42
42
|
typographic: m = !1,
|
|
43
43
|
uppercase: g = !1,
|
|
44
|
-
userSelectable:
|
|
45
|
-
underlined:
|
|
44
|
+
userSelectable: d = !1,
|
|
45
|
+
underlined: y = !1,
|
|
46
46
|
strikethrough: x = !1,
|
|
47
47
|
children: T,
|
|
48
48
|
className: b,
|
|
49
49
|
style: k,
|
|
50
|
-
ref: S
|
|
51
|
-
|
|
50
|
+
ref: S,
|
|
51
|
+
htmlFor: C,
|
|
52
|
+
id: R
|
|
53
|
+
} = e, v = i === "div", z = E(
|
|
52
54
|
r.root,
|
|
53
55
|
b,
|
|
54
56
|
o.getResponsiveClassnames("font-size", t),
|
|
55
57
|
o.getResponsiveClassnames("line-height", t),
|
|
56
58
|
{
|
|
57
|
-
[r.block]:
|
|
59
|
+
[r.block]: v,
|
|
58
60
|
[r.centered]: p,
|
|
59
61
|
[r.truncated]: h,
|
|
60
|
-
[r.underlined]:
|
|
62
|
+
[r.underlined]: y,
|
|
61
63
|
[r.strikethrough]: x,
|
|
62
64
|
[r.typographic]: m,
|
|
63
|
-
[o.cls.userSelectableText]:
|
|
65
|
+
[o.cls.userSelectableText]: d
|
|
64
66
|
}
|
|
65
|
-
),
|
|
67
|
+
), F = O({
|
|
66
68
|
...e,
|
|
67
|
-
color: _ ||
|
|
68
|
-
opacity:
|
|
69
|
-
}),
|
|
70
|
-
color:
|
|
71
|
-
fontFamily: `var(--font-family-${
|
|
69
|
+
color: _ || X,
|
|
70
|
+
opacity: V(u)
|
|
71
|
+
}), A = typeof n == "string" ? n : M[i] || "primary", s = {
|
|
72
|
+
color: F,
|
|
73
|
+
fontFamily: `var(--font-family-${A})`,
|
|
72
74
|
lineHeight: `var(--line-height-${t})`,
|
|
73
75
|
letterSpacing: `var(--letter-spacing-${f})`,
|
|
74
76
|
fontWeight: `var(--font-weight-${l})`,
|
|
75
|
-
...o.getResponsiveStyles("font-size", t,
|
|
76
|
-
...o.getResponsiveStyles("line-height", t,
|
|
77
|
+
...o.getResponsiveStyles("font-size", t, D),
|
|
78
|
+
...o.getResponsiveStyles("line-height", t, I),
|
|
77
79
|
...k
|
|
78
80
|
};
|
|
79
|
-
return g && (s.textTransform = "uppercase"), /* @__PURE__ */ c(
|
|
81
|
+
return g && (s.textTransform = "uppercase"), /* @__PURE__ */ c(
|
|
82
|
+
i,
|
|
83
|
+
{
|
|
84
|
+
ref: S,
|
|
85
|
+
dir: "auto",
|
|
86
|
+
className: z,
|
|
87
|
+
style: s,
|
|
88
|
+
htmlFor: C,
|
|
89
|
+
id: R,
|
|
90
|
+
children: T
|
|
91
|
+
}
|
|
92
|
+
);
|
|
80
93
|
}
|
|
81
|
-
function
|
|
82
|
-
return /* @__PURE__ */ c(
|
|
94
|
+
function Q(e) {
|
|
95
|
+
return /* @__PURE__ */ c(j, { ...e, as: "div" });
|
|
83
96
|
}
|
|
84
97
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
X as DEFAULT_TEXT_COLOR,
|
|
99
|
+
L as TEXT_OPACITY_MAP,
|
|
100
|
+
j as Text,
|
|
101
|
+
Q as TextBlock,
|
|
102
|
+
V as getTextOpacity,
|
|
103
|
+
I as lineHeightResponsiveValueFormatter,
|
|
104
|
+
D as textSizeResponsiveValueFormatter
|
|
92
105
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export type { GetColorProps } from './utils/color';
|
|
|
18
18
|
export { ui, OffsetEnum, MediaQueryEnum, BorderRadiusEnum, ZIndexEnum, ColorEnum, } from './utils/ui';
|
|
19
19
|
export type { OffsetType, MediaQueryType, ResponsiveOffsetType, ResponsiveValueType, MPProps, BorderRadiusType, ZIndexType, ColorType, } from './utils/ui';
|
|
20
20
|
export { isInEnum } from './utils/enum';
|
|
21
|
+
export { joaat32 } from './utils/joaat32';
|
|
21
22
|
export { IconButton } from './components/IconButton';
|
|
22
23
|
export type { IconButtonProps, IconButtonAreaSize } from './components/IconButton';
|
|
23
24
|
export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, AccordionContent, } from './components/Accordion';
|