freemium-ui 2.0.91 → 2.1.0-alpha.1
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/lib/Accordion-Ccv-p2G6.js +134 -0
- package/lib/Accordion.d.ts +56 -0
- package/lib/Accordion.js +7 -0
- package/lib/Alert-BtEbkVK1.js +52 -0
- package/lib/Alert.d.ts +66 -0
- package/lib/Alert.js +6 -0
- package/lib/AutoComplete-DF33_uur.js +608 -0
- package/lib/AutoComplete.d.ts +105 -0
- package/lib/AutoComplete.js +14 -0
- package/lib/BoxedRadio-D5Kiintm.js +75 -0
- package/lib/BoxedRadio.d.ts +61 -0
- package/lib/BoxedRadio.js +10 -0
- package/lib/Button-Bd1O8_k7.js +34 -0
- package/lib/Button.d.ts +34 -0
- package/lib/Button.js +2 -0
- package/lib/ButtonDropdown-BZvCwUDe.js +37 -0
- package/lib/ButtonDropdown.d.ts +82 -0
- package/lib/ButtonDropdown.js +11 -0
- package/lib/Calendar-C0xW_pPO.js +32 -0
- package/lib/Calendar.d.ts +25 -0
- package/lib/Calendar.js +2 -0
- package/lib/Checkbox-By1CgFUJ.js +66 -0
- package/lib/Checkbox.d.ts +28 -0
- package/lib/Checkbox.js +7 -0
- package/lib/ChevronUp-BWiG3XYd.js +7 -0
- package/lib/Combination-AmN1Cqrf.js +210 -0
- package/lib/Confirmation-49GhlyzQ.js +66 -0
- package/lib/Confirmation.d.ts +72 -0
- package/lib/Confirmation.js +8 -0
- package/lib/Cross-CIeKwtq6.js +7 -0
- package/lib/CustomizeColumns-BSF8e_we.js +865 -0
- package/lib/Drawer-CnmXL5_B.js +33 -0
- package/lib/Drawer.d.ts +50 -0
- package/lib/Drawer.js +8 -0
- package/lib/Dropdown-D59u6zOt.js +89 -0
- package/lib/Dropdown.d.ts +162 -0
- package/lib/Dropdown.js +15 -0
- package/lib/ErrorText-Uvye7uop.js +8 -0
- package/lib/Info-BsILbpCG.js +9 -0
- package/lib/Input.d.ts +66 -0
- package/lib/Input.js +5 -0
- package/lib/Loader-b8lHCp4N.js +13 -0
- package/lib/Loader.d.ts +21 -0
- package/lib/Loader.js +3 -0
- package/lib/Menu-DoE00Mg-.js +19 -0
- package/lib/Menu.d.ts +80 -0
- package/lib/Menu.js +11 -0
- package/lib/Modal-D5RJHnbn.js +51 -0
- package/lib/Modal.d.ts +51 -0
- package/lib/Modal.js +7 -0
- package/lib/MultiSelectDropdown-DblSkVpv.js +84 -0
- package/lib/MultiSelectDropdown.d.ts +116 -0
- package/lib/MultiSelectDropdown.js +14 -0
- package/lib/Pickers.d.ts +94 -0
- package/lib/Pickers.js +16 -0
- package/lib/Popover-BU73-g73.js +90 -0
- package/lib/Popover.d.ts +94 -0
- package/lib/Popover.js +8 -0
- package/lib/QuillEditor.d.ts +29 -0
- package/lib/QuillEditor.js +3369 -0
- package/lib/Radio.d.ts +69 -0
- package/lib/Radio.js +10 -0
- package/lib/RadioGroup-DM_Y48_b.js +42 -0
- package/lib/Reorder-DUSHsq7i.js +697 -0
- package/lib/Reorder.d.ts +36 -0
- package/lib/Reorder.js +5 -0
- package/lib/SortDropdown-B0SSCJX6.js +17 -0
- package/lib/SortDropdown.d.ts +47 -0
- package/lib/SortDropdown.js +10 -0
- package/lib/Table-cidceyn5.js +117 -0
- package/lib/Table.d.ts +95 -0
- package/lib/Table.js +18 -0
- package/lib/Tabs-j1c7ybY-.js +50 -0
- package/lib/Tabs.d.ts +68 -0
- package/lib/Tabs.js +6 -0
- package/lib/Tag-Cu75ReQP.js +49 -0
- package/lib/Tag.d.ts +50 -0
- package/lib/Tag.js +4 -0
- package/lib/TextArea--fiwZ_QM.js +98 -0
- package/lib/ThemeProvider-bWL8hyYA.js +7 -0
- package/lib/ThemeProvider.d.ts +158 -0
- package/lib/ThemeProvider.js +9 -0
- package/lib/TickIcon-BJqSAG4_.js +7 -0
- package/lib/TimePicker-7Uqb3xJn.js +6598 -0
- package/lib/Toast.d.ts +61 -0
- package/lib/Toast.js +10 -0
- package/lib/ToastProvider-CMk1PSzB.js +264 -0
- package/lib/Toggle-BGV7Nc6t.js +59 -0
- package/lib/Toggle.d.ts +35 -0
- package/lib/Toggle.js +6 -0
- package/lib/Tooltip-DU_ATFRB.js +127 -0
- package/lib/Tooltip.d.ts +53 -0
- package/lib/Tooltip.js +8 -0
- package/lib/Typography-BcAppjDF.js +11 -0
- package/lib/Typography.d.ts +20 -0
- package/lib/Typography.js +2 -0
- package/lib/WorkspaceTable-BV5zccyt.js +100 -0
- package/lib/WorkspaceTable.d.ts +85 -0
- package/lib/WorkspaceTable.js +18 -0
- package/lib/_commonjsHelpers-fGXyuM93.js +4 -0
- package/lib/allPaths-DKtiSqHL.js +19 -0
- package/lib/allPathsLoader-Drb6xO2O.js +5 -0
- package/lib/index-B9EcTy5B.js +46 -0
- package/lib/index-BPxkexqj.js +60 -0
- package/lib/index-BROhcSiX.js +8 -0
- package/lib/index-BT1o947S.js +8 -0
- package/lib/index-BY9lf-do.js +2 -0
- package/lib/index-BdTXfGkV.js +24 -0
- package/lib/index-BnDw8kbT.js +135 -0
- package/lib/index-BrF1HKA1.js +338 -0
- package/lib/index-BxNZ3C71.js +4 -0
- package/lib/index-ByHJlnsx.js +26 -0
- package/lib/index-COoRg_pp.js +55 -0
- package/lib/index-CeIB4COQ.js +10 -0
- package/lib/index-Cjkk7z9c.js +19 -0
- package/lib/index-D6iTv28r.js +607 -0
- package/lib/index-D8E8s0tV.js +60 -0
- package/lib/index-DtILdK5l.js +48 -0
- package/lib/index-DtzckyT3.js +4 -0
- package/lib/index-Dy5ztCxm.js +27 -0
- package/lib/index-KMLwCm58.js +607 -0
- package/lib/index-_WvIFKTM.js +6 -0
- package/lib/index.d.ts +1826 -1842
- package/lib/index.js +54 -17049
- package/lib/isTypedArray-DN-UDJh5.js +89 -0
- package/lib/keyframes-PnzFl0I5.js +20 -0
- package/lib/package.json +133 -3
- package/lib/rollup.config.d.ts.map +1 -0
- package/lib/splitPathsBySizeLoader-Cm_vHo5k.js +23 -0
- package/lib/styled-components.browser.esm-Bq2p-e5F.js +479 -0
- package/lib/styles-BbwNLGy3.js +177 -0
- package/lib/styles-BlCCKAZq.js +1192 -0
- package/lib/use-toasts-GqvPVmSy.js +5 -0
- package/package.json +150 -12
- package/buildspec.yml +0 -22
- package/freemium-ui-2.0.91.tgz +0 -0
- package/lib/index.cjs.js +0 -17225
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import{u as n,_ as e,a as r,b as t}from"./styled-components.browser.esm-Bq2p-e5F.js"
|
|
2
|
+
;import o,{useRef as i,useMemo as a}from"react"
|
|
3
|
+
;import{S as l,R as c}from"./index-D8E8s0tV.js"
|
|
4
|
+
;import{E as s}from"./ErrorText-Uvye7uop.js"
|
|
5
|
+
;var d,u,m,p,f,h,y,g=n.textarea(d||(d=e(["\n resize: none !important;\n border: unset;\n flex: 1;\n padding: ",";\n outline: unset;\n font-weight: ",";\n font-size: ",";\n white-space: ",";\n font-family: ",";\n background-color: ",";\n line-height: ",";\n color: ",";\n direction: "," !important;\n &::placeholder {\n font-family: ",";\n font-size: ",";\n color: ",";\n }\n &:focus,\n &:active {\n box-shadow: none !important;\n }\n &:disabled {\n opacity: 0.6;\n }\n"],["\n resize: none !important;\n border: unset;\n flex: 1;\n padding: ",";\n outline: unset;\n font-weight: ",";\n font-size: ",";\n white-space: ",";\n font-family: ",";\n background-color: ",";\n line-height: ",";\n color: ",";\n direction: "," !important;\n &::placeholder {\n font-family: ",";\n font-size: ",";\n color: ",";\n }\n &:focus,\n &:active {\n box-shadow: none !important;\n }\n &:disabled {\n opacity: 0.6;\n }\n"])),(function(n){
|
|
6
|
+
return n.$showLineNumbers?"6px 12px":"unset"}),(function(n){
|
|
7
|
+
return n.theme.typography.primary.fontWeight}),(function(n){
|
|
8
|
+
return n.theme.typography.primary.fontSize}),(function(n){
|
|
9
|
+
return n.$showLineNumbers?"nowrap":"unset"}),(function(n){var e=n.theme
|
|
10
|
+
;return n.$showLineNumbers?"monospace":e.typography.fontFamily}),(function(n){
|
|
11
|
+
return n.theme.colors.fill.surface}),(function(n){
|
|
12
|
+
return n.theme.typography.primary.lineHeight}),(function(n){
|
|
13
|
+
return n.theme.colors.text.primary}),(function(n){var e=n.theme
|
|
14
|
+
;return n.$forceInputDir||e.direction}),(function(n){
|
|
15
|
+
return n.theme.typography.fontFamily}),(function(n){
|
|
16
|
+
return n.theme.typography.primary.fontSize}),(function(n){
|
|
17
|
+
return n.theme.colors.text.placeholder
|
|
18
|
+
})),b=n.div(u||(u=e(["\n padding: 8px;\n text-align: right;\n overflow: hidden;\n line-height: ",";\n font-weight: ",";\n font-size: ",";\n font-family: ",";\n display: flex;\n flex-direction: column;\n color: ",";\n background-color: ",";\n min-width: 2.5rem;\n"],["\n padding: 8px;\n text-align: right;\n overflow: hidden;\n line-height: ",";\n font-weight: ",";\n font-size: ",";\n font-family: ",";\n display: flex;\n flex-direction: column;\n color: ",";\n background-color: ",";\n min-width: 2.5rem;\n"])),(function(n){
|
|
19
|
+
return n.theme.typography.primary.lineHeight}),(function(n){
|
|
20
|
+
return n.theme.typography.primary.fontWeight}),(function(n){
|
|
21
|
+
return n.theme.typography.primary.fontSize}),(function(n){
|
|
22
|
+
return n.theme.typography.fontFamily}),(function(n){
|
|
23
|
+
return n.theme.colors.text.placeholder}),(function(n){
|
|
24
|
+
return n.theme.colors.fill.medium
|
|
25
|
+
})),x=n.input(m||(m=e(["\n flex: 1;\n border: unset;\n outline: unset;\n padding: unset;\n margin: unset;\n line-height: ",";\n font-weight: ",";\n font-size: ",";\n font-family: ",";\n background-color: ",";\n color: ",";\n direction: "," !important;\n &::placeholder {\n font-family: ",";\n font-size: ",";\n color: ",";\n }\n &:disabled {\n // background-color: ",";\n // color: ",";\n opacity: 0.6;\n }\n"],["\n flex: 1;\n border: unset;\n outline: unset;\n padding: unset;\n margin: unset;\n line-height: ",";\n font-weight: ",";\n font-size: ",";\n font-family: ",";\n background-color: ",";\n color: ",";\n direction: "," !important;\n &::placeholder {\n font-family: ",";\n font-size: ",";\n color: ",";\n }\n &:disabled {\n // background-color: ",";\n // color: ",";\n opacity: 0.6;\n }\n"])),(function(n){
|
|
26
|
+
return n.theme.typography.primary.lineHeight}),(function(n){
|
|
27
|
+
return n.theme.typography.primary.fontWeight}),(function(n){
|
|
28
|
+
return n.theme.typography.primary.fontSize}),(function(n){
|
|
29
|
+
return n.theme.typography.fontFamily}),(function(n){
|
|
30
|
+
return n.theme.colors.fill.surface}),(function(n){
|
|
31
|
+
return n.theme.colors.text.primary}),(function(n){var e=n.theme
|
|
32
|
+
;return n.$forceInputDir||e.direction}),(function(n){
|
|
33
|
+
return n.theme.typography.fontFamily}),(function(n){
|
|
34
|
+
return n.theme.typography.primary.fontSize}),(function(n){
|
|
35
|
+
return n.theme.colors.text.placeholder}),(function(n){
|
|
36
|
+
return n.theme.colors.fill.disabled}),(function(n){
|
|
37
|
+
return n.theme.colors.text.disabled
|
|
38
|
+
})),v=n.div(p||(p=e(["\n display: flex;\n flex: 1;\n gap: 4px;\n font-family: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n direction: "," !important;\n div.end-adornment {\n display: grid;\n place-content: center;\n }\n div.start-adornment {\n display: grid;\n place-content: center;\n }\n div.end-max-length {\n text-align: "," !important;\n }\n"],["\n display: flex;\n flex: 1;\n gap: 4px;\n font-family: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n direction: "," !important;\n div.end-adornment {\n display: grid;\n place-content: center;\n }\n div.start-adornment {\n display: grid;\n place-content: center;\n }\n div.end-max-length {\n text-align: "," !important;\n }\n"])),(function(n){
|
|
39
|
+
return n.theme.typography.fontFamily}),(function(n){
|
|
40
|
+
return n.theme.typography.primary.fontSize}),(function(n){
|
|
41
|
+
return n.theme.typography.primary.lineHeight}),(function(n){
|
|
42
|
+
return n.theme.colors.text.primary}),(function(n){var e=n.theme
|
|
43
|
+
;return n.$forceInputDir||e.direction}),(function(n){var e=n.theme
|
|
44
|
+
;return"rtl"===(n.$forceInputDir||e.direction)?"left":"right"
|
|
45
|
+
})),w=n.div(f||(f=e(["\n font-size: ",";\n margin-left: 4px;\n align-self: ",";\n direction: ",";\n"],["\n font-size: ",";\n margin-left: 4px;\n align-self: ",";\n direction: ",";\n"])),(function(n){
|
|
46
|
+
return n.theme.typography.secondary.fontSize}),(function(n){
|
|
47
|
+
return n.isTa?"flex-end":"center"}),(function(n){return n.theme.direction
|
|
48
|
+
})),E=n.div(h||(h=e(["\n max-height: ",";\n padding: ",";\n overflow: ",";\n display: flex;\n border: 1px solid\n ",";\n background-color: ",";\n border-radius: 4px;\n transition: all 0.2s ease-in-out;\n direction: "," !important;\n &:hover {\n border-color: ",";\n }\n &:focus-within {\n box-shadow: ","\n 0px 0px 0px 1px;\n border-color: ",";\n }\n"],["\n max-height: ",";\n padding: ",";\n overflow: ",";\n display: flex;\n border: 1px solid\n ",";\n background-color: ",";\n border-radius: 4px;\n transition: all 0.2s ease-in-out;\n direction: "," !important;\n &:hover {\n border-color: ",";\n }\n &:focus-within {\n box-shadow: ","\n 0px 0px 0px 1px;\n border-color: ",";\n }\n"])),(function(n){
|
|
49
|
+
var e=n.$rows,r=n.theme
|
|
50
|
+
;return e?"calc(".concat(r.typography.primary.fontSize," * ").concat(1.5*e," + 16px)"):"unset"
|
|
51
|
+
}),(function(n){return n.$showLineNumbers?"0":"6px 12px"}),(function(n){
|
|
52
|
+
return n.$showLineNumbers?"hidden":"unset"}),(function(n){var e=n.theme
|
|
53
|
+
;return n.$isErrored?e.colors.border.error:e.colors.border.normal
|
|
54
|
+
}),(function(n){return n.theme.colors.fill.surface}),(function(n){var e=n.theme
|
|
55
|
+
;return n.$forceInputDir||e.direction}),(function(n){
|
|
56
|
+
var e=n.theme,r=n.disabled,t=n.$isErrored
|
|
57
|
+
;return r?e.colors.border.normal:t?e.colors.border.error:e.colors.border.hover
|
|
58
|
+
}),(function(n){var e=n.theme
|
|
59
|
+
;return n.$isErrored?e.colors.border.error:e.colors.border.active
|
|
60
|
+
}),(function(n){var e=n.theme
|
|
61
|
+
;return n.$isErrored?e.colors.border.error:e.colors.border.active
|
|
62
|
+
})),$=n.div(y||(y=e(["\n display: ",";\n direction: ",";\n label.input-label {\n margin: 0 2px 4px 2px;\n }\n span.input-helper {\n margin: 2px 2px 0 2px;\n display: block;\n }\n"],["\n display: ",";\n direction: ",";\n label.input-label {\n margin: 0 2px 4px 2px;\n }\n span.input-helper {\n margin: 2px 2px 0 2px;\n display: block;\n }\n"])),(function(n){
|
|
63
|
+
return n.$inline?"inline-block":"block"}),(function(n){return n.theme.direction
|
|
64
|
+
})),N=o.forwardRef((function(n,e){
|
|
65
|
+
var i=n.label,a=n.inline,d=n.startLabel,u=n.startAdornment,m=n.endLabel,p=n.endAdornment,f=n.isRequired,h=n.isErrored,y=n.showCount,g=n.inputStyle,b=n.style,w=n.errorText,N=n.maxLength,z=n.labelProps,L=n.containerProps,k=n.forceInputDir,D=r(n,["label","inline","startLabel","startAdornment","endLabel","endAdornment","isRequired","isErrored","showCount","inputStyle","style","errorText","maxLength","labelProps","containerProps","forceInputDir"])
|
|
66
|
+
;return o.createElement($,{$inline:a,$isErrored:h,disabled:D.disabled,style:b
|
|
67
|
+
},i&&o.createElement(l,t({htmlFor:D.id,className:"input-label"
|
|
68
|
+
},z),i,i&&f&&o.createElement(c,null,"*")),o.createElement(E,t({
|
|
69
|
+
className:"input-container",disabled:D.disabled,$isErrored:h},L,{
|
|
70
|
+
$forceInputDir:k}),d&&o.createElement("div",{className:"start-label"
|
|
71
|
+
},d),o.createElement(v,{className:"input-basic",$forceInputDir:k
|
|
72
|
+
},u&&o.createElement("div",{className:"start-adornment"
|
|
73
|
+
},u),o.createElement(x,t({maxLength:N},D,{"aria-invalid":h,ref:e,style:g,
|
|
74
|
+
$forceInputDir:k})),y&&(N||0)>0&&o.createElement("div",{
|
|
75
|
+
className:"end-max-length"
|
|
76
|
+
},"".concat("string"==typeof D.value?D.value.length:"".concat(D.value||"").length,"/").concat(N||0)),p&&o.createElement("div",{
|
|
77
|
+
className:"end-adornment"},p)),m&&o.createElement("div",{className:"end-label"
|
|
78
|
+
},m)),h&&w&&o.createElement(s,null,w))})),z=o.forwardRef((function(n,e){
|
|
79
|
+
var d=n.label,u=n.inline,m=n.startLabel,p=n.startAdornment,f=n.endLabel,h=n.endAdornment,y=n.isRequired,x=n.isErrored,N=n.showCount,z=n.inputStyle,L=n.style,k=n.errorText,D=n.maxLength,I=n.forceInputDir,S=n.showLineNumbers,T=r(n,["label","inline","startLabel","startAdornment","endLabel","endAdornment","isRequired","isErrored","showCount","inputStyle","style","errorText","maxLength","forceInputDir","showLineNumbers"]),A=i(null),F=i(null),R=a((function(){
|
|
80
|
+
return(T.value||"").split("\n")}),[T.value]);return o.createElement($,{
|
|
81
|
+
$inline:u,$isErrored:x,disabled:T.disabled,style:L},o.createElement(l,{
|
|
82
|
+
htmlFor:T.id,className:"input-label"
|
|
83
|
+
},d,d&&y&&o.createElement(c,null,"*")),o.createElement(E,{
|
|
84
|
+
className:"input-container",disabled:T.disabled,$isErrored:x,$showLineNumbers:S,
|
|
85
|
+
$rows:T.rows},m&&o.createElement("div",{className:"start-label"
|
|
86
|
+
},m),o.createElement(v,{className:"input-basic",style:{
|
|
87
|
+
flexDirection:S?"row":"column"},$forceInputDir:I,$showLineNumbers:S
|
|
88
|
+
},S&&o.createElement(b,{ref:A},R.map((function(n,e){
|
|
89
|
+
return o.createElement("span",{key:e},e+1)}))),p&&o.createElement("div",{
|
|
90
|
+
className:"start-adornment"},p),o.createElement(g,t({maxLength:D},T,{
|
|
91
|
+
"aria-invalid":x,ref:null!=e?e:F,style:z,$forceInputDir:I,$showLineNumbers:S,
|
|
92
|
+
onScroll:function(n){var r,t=(e||F).current
|
|
93
|
+
;A.current&&t&&(A.current.scrollTop=(null==t?void 0:t.scrollTop)||0),
|
|
94
|
+
null===(r=T.onScroll)||void 0===r||r.call(T,n)}
|
|
95
|
+
})),N&&!S&&(D||0)>0&&o.createElement(w,{isTa:!0,className:"end-max-length"
|
|
96
|
+
},"".concat("string"==typeof T.value?T.value.length:"".concat(T.value||"").length,"/").concat(D||0)),h&&o.createElement("div",{
|
|
97
|
+
className:"end-adornment"},h)),f&&o.createElement("div",{className:"end-label"
|
|
98
|
+
},f)),x&&k&&o.createElement(s,null,k))}));export{N as I,z as T};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from"react"
|
|
2
|
+
;import{d as n,_ as r,t}from"./styled-components.browser.esm-Bq2p-e5F.js"
|
|
3
|
+
;import{T as o}from"./ToastProvider-CMk1PSzB.js"
|
|
4
|
+
;var i,m=n(i||(i=r(["\n * {\n box-sizing: border-box;\n /* direction: ","; */\n }\n"],["\n * {\n box-sizing: border-box;\n /* direction: ","; */\n }\n"])),(function(e){
|
|
5
|
+
return e.theme.direction})),s=function(n){return e.createElement(t,{
|
|
6
|
+
theme:n.theme},e.createElement(m,null),e.createElement(o,null,n.children))}
|
|
7
|
+
;export{s as T};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
|
|
4
|
+
type TypographyWeightType = 'regular' | 'bold' | 'semi-bold';
|
|
5
|
+
|
|
6
|
+
type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
type UiUnits = 'px' | 'rem' | 'em' | '%';
|
|
8
|
+
interface Breakpoints {
|
|
9
|
+
keys: BreakpointKeys[];
|
|
10
|
+
values: Record<BreakpointKeys, number>;
|
|
11
|
+
unit: UiUnits;
|
|
12
|
+
}
|
|
13
|
+
interface TextColorSemantics {
|
|
14
|
+
success: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
error: string;
|
|
17
|
+
info: string;
|
|
18
|
+
}
|
|
19
|
+
interface TextColors {
|
|
20
|
+
primary: string;
|
|
21
|
+
link: string;
|
|
22
|
+
secondary: string;
|
|
23
|
+
disabled: string;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
error: string;
|
|
26
|
+
inverse: string;
|
|
27
|
+
semantic: TextColorSemantics;
|
|
28
|
+
}
|
|
29
|
+
interface FillColors {
|
|
30
|
+
base: string;
|
|
31
|
+
medium: string;
|
|
32
|
+
dark: string;
|
|
33
|
+
surface: string;
|
|
34
|
+
inverse: string;
|
|
35
|
+
hover: string;
|
|
36
|
+
disabled: string;
|
|
37
|
+
hilight: string;
|
|
38
|
+
}
|
|
39
|
+
interface SemanticColorsType {
|
|
40
|
+
bg: string;
|
|
41
|
+
border: string;
|
|
42
|
+
}
|
|
43
|
+
interface SemanticColors {
|
|
44
|
+
error: SemanticColorsType;
|
|
45
|
+
warning: SemanticColorsType;
|
|
46
|
+
info: SemanticColorsType;
|
|
47
|
+
success: SemanticColorsType;
|
|
48
|
+
}
|
|
49
|
+
interface BorderColors {
|
|
50
|
+
light: string;
|
|
51
|
+
normal: string;
|
|
52
|
+
divider: string;
|
|
53
|
+
hover: string;
|
|
54
|
+
active: string;
|
|
55
|
+
disabled: string;
|
|
56
|
+
error: string;
|
|
57
|
+
}
|
|
58
|
+
interface CommonColors {
|
|
59
|
+
accent: string;
|
|
60
|
+
black: string;
|
|
61
|
+
white: string;
|
|
62
|
+
}
|
|
63
|
+
interface Colors {
|
|
64
|
+
common: CommonColors;
|
|
65
|
+
text: TextColors;
|
|
66
|
+
fill: FillColors;
|
|
67
|
+
semantic: SemanticColors;
|
|
68
|
+
border: BorderColors;
|
|
69
|
+
shadow: string;
|
|
70
|
+
scrim: string;
|
|
71
|
+
}
|
|
72
|
+
interface BaseTypography {
|
|
73
|
+
fontSize?: React.CSSProperties['fontSize'];
|
|
74
|
+
fontWeight?: React.CSSProperties['fontWeight'];
|
|
75
|
+
lineHeight?: React.CSSProperties['lineHeight'];
|
|
76
|
+
}
|
|
77
|
+
interface FuiTypography {
|
|
78
|
+
fontFamily: React.CSSProperties['fontFamily'];
|
|
79
|
+
fontWeight: Record<TypographyWeightType, React.CSSProperties['fontWeight']>;
|
|
80
|
+
primary: BaseTypography;
|
|
81
|
+
secondary: BaseTypography;
|
|
82
|
+
heading: BaseTypography;
|
|
83
|
+
heading4: BaseTypography;
|
|
84
|
+
heading3: BaseTypography;
|
|
85
|
+
heading2: BaseTypography;
|
|
86
|
+
heading1: BaseTypography;
|
|
87
|
+
caption: BaseTypography;
|
|
88
|
+
}
|
|
89
|
+
interface Easing {
|
|
90
|
+
easeInOut: string;
|
|
91
|
+
easeOut: string;
|
|
92
|
+
easeIn: string;
|
|
93
|
+
sharp: string;
|
|
94
|
+
}
|
|
95
|
+
interface Duration {
|
|
96
|
+
short: string;
|
|
97
|
+
standard: string;
|
|
98
|
+
complex: string;
|
|
99
|
+
}
|
|
100
|
+
interface Transitions {
|
|
101
|
+
easing: Easing;
|
|
102
|
+
duration: Duration;
|
|
103
|
+
}
|
|
104
|
+
interface ZIndex {
|
|
105
|
+
popover: number;
|
|
106
|
+
dropdown: number;
|
|
107
|
+
mobileStepper: number;
|
|
108
|
+
fab: number;
|
|
109
|
+
speedDial: number;
|
|
110
|
+
appBar: number;
|
|
111
|
+
drawer: number;
|
|
112
|
+
modal: number;
|
|
113
|
+
snackbar: number;
|
|
114
|
+
tooltip: number;
|
|
115
|
+
}
|
|
116
|
+
interface FreemiumUiButtonTheme {
|
|
117
|
+
backgroundFrom: string;
|
|
118
|
+
backgroundTo: string;
|
|
119
|
+
color: string;
|
|
120
|
+
disabledColor: string;
|
|
121
|
+
activeBackgroundColor: string;
|
|
122
|
+
hoverColor: string;
|
|
123
|
+
borderColor: string;
|
|
124
|
+
activeBorderColor: string;
|
|
125
|
+
disabledBorderColor: string;
|
|
126
|
+
disabledBackgroundFrom: string;
|
|
127
|
+
disabledBackgroundTo: string;
|
|
128
|
+
}
|
|
129
|
+
interface FreemiumUiTheme {
|
|
130
|
+
mode: 'light' | 'dark';
|
|
131
|
+
direction: 'ltr' | 'rtl';
|
|
132
|
+
breakpoints: Breakpoints;
|
|
133
|
+
colors: Colors;
|
|
134
|
+
typography: FuiTypography;
|
|
135
|
+
shadows?: string[] | null;
|
|
136
|
+
transitions: Transitions;
|
|
137
|
+
zIndex: ZIndex;
|
|
138
|
+
components: {
|
|
139
|
+
toast: {
|
|
140
|
+
position: Extract<CSSProperties['alignItems'], 'end' | 'start' | 'center'>;
|
|
141
|
+
};
|
|
142
|
+
button: {
|
|
143
|
+
primary: FreemiumUiButtonTheme;
|
|
144
|
+
secondary: FreemiumUiButtonTheme;
|
|
145
|
+
danger: FreemiumUiButtonTheme;
|
|
146
|
+
link: FreemiumUiButtonTheme;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
type ThemeProviderType<Theme> = React.ComponentType<{
|
|
152
|
+
children: React.ReactNode;
|
|
153
|
+
theme: Theme;
|
|
154
|
+
}>;
|
|
155
|
+
|
|
156
|
+
declare const ThemeProvider: ThemeProviderType<FreemiumUiTheme>;
|
|
157
|
+
|
|
158
|
+
export { ThemeProvider, type ThemeProviderType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export{T as ThemeProvider}from"./ThemeProvider-bWL8hyYA.js";import"react"
|
|
2
|
+
;import"./styled-components.browser.esm-Bq2p-e5F.js"
|
|
3
|
+
;import"./ToastProvider-CMk1PSzB.js";import"./index-BT1o947S.js"
|
|
4
|
+
;import"./index-BnDw8kbT.js";import"react-dom";import"./index-ByHJlnsx.js"
|
|
5
|
+
;import"./index-CeIB4COQ.js";import"./index-BdTXfGkV.js"
|
|
6
|
+
;import"./index-Cjkk7z9c.js";import"./index-COoRg_pp.js"
|
|
7
|
+
;import"./index-Dy5ztCxm.js";import"./index-_WvIFKTM.js"
|
|
8
|
+
;import"./keyframes-PnzFl0I5.js";import"./index-D8E8s0tV.js"
|
|
9
|
+
;import"./Cross-CIeKwtq6.js";import"./Info-BsILbpCG.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{b as e}from"./styled-components.browser.esm-Bq2p-e5F.js"
|
|
2
|
+
;import r from"react";var t=r.forwardRef((function(t,o){
|
|
3
|
+
return r.createElement("svg",e({width:"10",height:"8",viewBox:"0 0 10 8",
|
|
4
|
+
fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{ref:o
|
|
5
|
+
}),r.createElement("path",{
|
|
6
|
+
d:"M3.79398 7.44662C3.56997 7.44983 3.35397 7.36343 3.19398 7.20662L0.445976 4.49462C0.281619 4.33832 0.188576 4.12144 0.188576 3.89462C0.188576 3.66781 0.281619 3.45093 0.445976 3.29462C0.778133 2.96516 1.31382 2.96516 1.64598 3.29462L3.79398 5.41862L8.35398 0.810623C8.51028 0.646266 8.72716 0.553223 8.95398 0.553223C9.18079 0.553223 9.39767 0.646266 9.55398 0.810623C9.71833 0.966927 9.81138 1.18381 9.81138 1.41062C9.81138 1.63744 9.71833 1.85432 9.55398 2.01062L4.33398 7.20662C4.18899 7.34939 3.9971 7.43467 3.79398 7.44662Z",
|
|
7
|
+
fill:t.fill}))}));export{t as T};
|