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.
Files changed (137) hide show
  1. package/lib/Accordion-Ccv-p2G6.js +134 -0
  2. package/lib/Accordion.d.ts +56 -0
  3. package/lib/Accordion.js +7 -0
  4. package/lib/Alert-BtEbkVK1.js +52 -0
  5. package/lib/Alert.d.ts +66 -0
  6. package/lib/Alert.js +6 -0
  7. package/lib/AutoComplete-DF33_uur.js +608 -0
  8. package/lib/AutoComplete.d.ts +105 -0
  9. package/lib/AutoComplete.js +14 -0
  10. package/lib/BoxedRadio-D5Kiintm.js +75 -0
  11. package/lib/BoxedRadio.d.ts +61 -0
  12. package/lib/BoxedRadio.js +10 -0
  13. package/lib/Button-Bd1O8_k7.js +34 -0
  14. package/lib/Button.d.ts +34 -0
  15. package/lib/Button.js +2 -0
  16. package/lib/ButtonDropdown-BZvCwUDe.js +37 -0
  17. package/lib/ButtonDropdown.d.ts +82 -0
  18. package/lib/ButtonDropdown.js +11 -0
  19. package/lib/Calendar-C0xW_pPO.js +32 -0
  20. package/lib/Calendar.d.ts +25 -0
  21. package/lib/Calendar.js +2 -0
  22. package/lib/Checkbox-By1CgFUJ.js +66 -0
  23. package/lib/Checkbox.d.ts +28 -0
  24. package/lib/Checkbox.js +7 -0
  25. package/lib/ChevronUp-BWiG3XYd.js +7 -0
  26. package/lib/Combination-AmN1Cqrf.js +210 -0
  27. package/lib/Confirmation-49GhlyzQ.js +66 -0
  28. package/lib/Confirmation.d.ts +72 -0
  29. package/lib/Confirmation.js +8 -0
  30. package/lib/Cross-CIeKwtq6.js +7 -0
  31. package/lib/CustomizeColumns-BSF8e_we.js +865 -0
  32. package/lib/Drawer-CnmXL5_B.js +33 -0
  33. package/lib/Drawer.d.ts +50 -0
  34. package/lib/Drawer.js +8 -0
  35. package/lib/Dropdown-D59u6zOt.js +89 -0
  36. package/lib/Dropdown.d.ts +162 -0
  37. package/lib/Dropdown.js +15 -0
  38. package/lib/ErrorText-Uvye7uop.js +8 -0
  39. package/lib/Info-BsILbpCG.js +9 -0
  40. package/lib/Input.d.ts +66 -0
  41. package/lib/Input.js +5 -0
  42. package/lib/Loader-b8lHCp4N.js +13 -0
  43. package/lib/Loader.d.ts +21 -0
  44. package/lib/Loader.js +3 -0
  45. package/lib/Menu-DoE00Mg-.js +19 -0
  46. package/lib/Menu.d.ts +80 -0
  47. package/lib/Menu.js +11 -0
  48. package/lib/Modal-D5RJHnbn.js +51 -0
  49. package/lib/Modal.d.ts +51 -0
  50. package/lib/Modal.js +7 -0
  51. package/lib/MultiSelectDropdown-DblSkVpv.js +84 -0
  52. package/lib/MultiSelectDropdown.d.ts +116 -0
  53. package/lib/MultiSelectDropdown.js +14 -0
  54. package/lib/Pickers.d.ts +94 -0
  55. package/lib/Pickers.js +16 -0
  56. package/lib/Popover-BU73-g73.js +90 -0
  57. package/lib/Popover.d.ts +94 -0
  58. package/lib/Popover.js +8 -0
  59. package/lib/QuillEditor.d.ts +29 -0
  60. package/lib/QuillEditor.js +3369 -0
  61. package/lib/Radio.d.ts +69 -0
  62. package/lib/Radio.js +10 -0
  63. package/lib/RadioGroup-DM_Y48_b.js +42 -0
  64. package/lib/Reorder-DUSHsq7i.js +697 -0
  65. package/lib/Reorder.d.ts +36 -0
  66. package/lib/Reorder.js +5 -0
  67. package/lib/SortDropdown-B0SSCJX6.js +17 -0
  68. package/lib/SortDropdown.d.ts +47 -0
  69. package/lib/SortDropdown.js +10 -0
  70. package/lib/Table-cidceyn5.js +117 -0
  71. package/lib/Table.d.ts +95 -0
  72. package/lib/Table.js +18 -0
  73. package/lib/Tabs-j1c7ybY-.js +50 -0
  74. package/lib/Tabs.d.ts +68 -0
  75. package/lib/Tabs.js +6 -0
  76. package/lib/Tag-Cu75ReQP.js +49 -0
  77. package/lib/Tag.d.ts +50 -0
  78. package/lib/Tag.js +4 -0
  79. package/lib/TextArea--fiwZ_QM.js +98 -0
  80. package/lib/ThemeProvider-bWL8hyYA.js +7 -0
  81. package/lib/ThemeProvider.d.ts +158 -0
  82. package/lib/ThemeProvider.js +9 -0
  83. package/lib/TickIcon-BJqSAG4_.js +7 -0
  84. package/lib/TimePicker-7Uqb3xJn.js +6598 -0
  85. package/lib/Toast.d.ts +61 -0
  86. package/lib/Toast.js +10 -0
  87. package/lib/ToastProvider-CMk1PSzB.js +264 -0
  88. package/lib/Toggle-BGV7Nc6t.js +59 -0
  89. package/lib/Toggle.d.ts +35 -0
  90. package/lib/Toggle.js +6 -0
  91. package/lib/Tooltip-DU_ATFRB.js +127 -0
  92. package/lib/Tooltip.d.ts +53 -0
  93. package/lib/Tooltip.js +8 -0
  94. package/lib/Typography-BcAppjDF.js +11 -0
  95. package/lib/Typography.d.ts +20 -0
  96. package/lib/Typography.js +2 -0
  97. package/lib/WorkspaceTable-BV5zccyt.js +100 -0
  98. package/lib/WorkspaceTable.d.ts +85 -0
  99. package/lib/WorkspaceTable.js +18 -0
  100. package/lib/_commonjsHelpers-fGXyuM93.js +4 -0
  101. package/lib/allPaths-DKtiSqHL.js +19 -0
  102. package/lib/allPathsLoader-Drb6xO2O.js +5 -0
  103. package/lib/index-B9EcTy5B.js +46 -0
  104. package/lib/index-BPxkexqj.js +60 -0
  105. package/lib/index-BROhcSiX.js +8 -0
  106. package/lib/index-BT1o947S.js +8 -0
  107. package/lib/index-BY9lf-do.js +2 -0
  108. package/lib/index-BdTXfGkV.js +24 -0
  109. package/lib/index-BnDw8kbT.js +135 -0
  110. package/lib/index-BrF1HKA1.js +338 -0
  111. package/lib/index-BxNZ3C71.js +4 -0
  112. package/lib/index-ByHJlnsx.js +26 -0
  113. package/lib/index-COoRg_pp.js +55 -0
  114. package/lib/index-CeIB4COQ.js +10 -0
  115. package/lib/index-Cjkk7z9c.js +19 -0
  116. package/lib/index-D6iTv28r.js +607 -0
  117. package/lib/index-D8E8s0tV.js +60 -0
  118. package/lib/index-DtILdK5l.js +48 -0
  119. package/lib/index-DtzckyT3.js +4 -0
  120. package/lib/index-Dy5ztCxm.js +27 -0
  121. package/lib/index-KMLwCm58.js +607 -0
  122. package/lib/index-_WvIFKTM.js +6 -0
  123. package/lib/index.d.ts +1826 -1842
  124. package/lib/index.js +54 -17049
  125. package/lib/isTypedArray-DN-UDJh5.js +89 -0
  126. package/lib/keyframes-PnzFl0I5.js +20 -0
  127. package/lib/package.json +133 -3
  128. package/lib/rollup.config.d.ts.map +1 -0
  129. package/lib/splitPathsBySizeLoader-Cm_vHo5k.js +23 -0
  130. package/lib/styled-components.browser.esm-Bq2p-e5F.js +479 -0
  131. package/lib/styles-BbwNLGy3.js +177 -0
  132. package/lib/styles-BlCCKAZq.js +1192 -0
  133. package/lib/use-toasts-GqvPVmSy.js +5 -0
  134. package/package.json +150 -12
  135. package/buildspec.yml +0 -22
  136. package/freemium-ui-2.0.91.tgz +0 -0
  137. package/lib/index.cjs.js +0 -17225
package/lib/Radio.d.ts ADDED
@@ -0,0 +1,69 @@
1
+ /// <reference types="react" />
2
+ import React$1 from 'react';
3
+ import { RadioGroupProps as RadioGroupProps$1, RadioGroupContextValue } from '@radix-ui/react-radio-group';
4
+
5
+ type RadioProps = Pick<RadioGroupProps$1, 'name' | 'disabled' | 'dir'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue'> & {
6
+ /**
7
+ * Is the Radio button selected
8
+ */
9
+ checked?: boolean;
10
+ /**
11
+ * Whether disabled select
12
+ */
13
+ readOnly?: boolean;
14
+ /**
15
+ * Whether disabled select
16
+ */
17
+ isRequired?: boolean;
18
+ /**
19
+ * label for the radio button
20
+ */
21
+ label?: string;
22
+ };
23
+ interface RadioItemProps {
24
+ [key: string]: any;
25
+ }
26
+ type RadioGroupProps<T extends RadioItemProps = RadioItemProps> = Pick<RadioGroupProps$1, 'name' | 'disabled' | 'dir' | 'value' | 'defaultValue'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'defaultValue'> & {
27
+ /**
28
+ * Select options
29
+ */
30
+ options?: Array<T>;
31
+ /**
32
+ * Id accessor of radio button
33
+ */
34
+ idAccessor?: string;
35
+ /**
36
+ * Name accesssor of radio button
37
+ */
38
+ nameAccessor?: string;
39
+ /**
40
+ * Function to be called when the selected item changes
41
+ */
42
+ onChange?: RadioGroupContextValue['onValueChange'];
43
+ /**
44
+ * Whether disabled select
45
+ */
46
+ isRequired?: boolean;
47
+ /**
48
+ * Whether disabled select
49
+ */
50
+ readOnly?: boolean;
51
+ /**
52
+ * The description of the content
53
+ */
54
+ label?: string;
55
+ errorText?: string;
56
+ isErrored?: boolean;
57
+ };
58
+
59
+ /**
60
+ * Radio displays a radio button on the user interface and enables assigning a state (selected or deselected) to it. In the selected state, the button displayed is highlighted. fw-radio provides child elements for fw-radio-group, to populate the Radio Group component’s list.
61
+ */
62
+ declare const Radio: ({ checked, className, disabled, id, isRequired, label, name, readOnly, ...htmlAttributes }: RadioProps) => React$1.JSX.Element;
63
+
64
+ /**
65
+ * RadioGroup displays a group of options with radio buttons and enables selection of one option from the list.
66
+ */
67
+ declare const RadioGroup: ({ options, defaultValue, idAccessor, nameAccessor, onChange, className, id, isErrored, errorText, disabled, isRequired, label, readOnly, value, ...props }: RadioGroupProps) => React$1.JSX.Element;
68
+
69
+ export { Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps };
package/lib/Radio.js ADDED
@@ -0,0 +1,10 @@
1
+ export{R as Radio,a as RadioGroup}from"./RadioGroup-DM_Y48_b.js"
2
+ ;import"./styled-components.browser.esm-Bq2p-e5F.js";import"react"
3
+ ;import"./index-D8E8s0tV.js";import"./index-ByHJlnsx.js";import"react-dom"
4
+ ;import"./index-BnDw8kbT.js";import"./keyframes-PnzFl0I5.js"
5
+ ;import"./index-B9EcTy5B.js";import"./index-CeIB4COQ.js"
6
+ ;import"./index-BdTXfGkV.js";import"./index-DtILdK5l.js"
7
+ ;import"./index-Cjkk7z9c.js";import"./index-BxNZ3C71.js"
8
+ ;import"./index-BY9lf-do.js";import"./index-BROhcSiX.js"
9
+ ;import"./index-DtzckyT3.js";import"./index-Dy5ztCxm.js"
10
+ ;import"./ErrorText-Uvye7uop.js";
@@ -0,0 +1,42 @@
1
+ import{u as e,_ as n,a,e as r,b as o}from"./styled-components.browser.esm-Bq2p-e5F.js"
2
+ ;import i from"react";import{I as d,R as l,S as t}from"./index-D8E8s0tV.js"
3
+ ;import{$ as c,a as s,b as u}from"./index-B9EcTy5B.js"
4
+ ;import{E as m}from"./ErrorText-Uvye7uop.js"
5
+ ;var b,p,f,h,g,x=e.div(b||(b=n(["\n direction: ",";\n"],["\n direction: ",";\n"])),(function(e){
6
+ return e.theme.direction
7
+ })),v=e(c)(p||(p=n(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),k=e(s)(f||(f=n(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n position: relative;\n &::after {\n content: '';\n display: block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n position: relative;\n &::after {\n content: '';\n display: block;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n }\n"])),(function(e){
8
+ var n=e.theme;return"dark"===n.mode?n.colors.common.black:n.colors.common.white
9
+ })),y=e(u)(h||(h=n(["\n background-color: ",";\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 1px solid transparent;\n padding: 0;\n margin: 0;\n outline-offset: 3px;\n direction: ",";\n background-color: ",";\n &[data-state='unchecked'] {\n border-color: ",";\n background-color: unset;\n }\n &[data-disabled] {\n border-color: ",";\n background: ",";\n }\n &:hover:not([data-disabled]) {\n box-shadow: 0 0 0 3px ","30;\n }\n"],["\n background-color: ",";\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 1px solid transparent;\n padding: 0;\n margin: 0;\n outline-offset: 3px;\n direction: ",";\n background-color: ",";\n &[data-state='unchecked'] {\n border-color: ",";\n background-color: unset;\n }\n &[data-disabled] {\n border-color: ",";\n background: ",";\n }\n &:hover:not([data-disabled]) {\n box-shadow: 0 0 0 3px ","30;\n }\n"])),(function(e){
10
+ var n=e.theme;return"dark"===n.mode?n.colors.common.black:n.colors.common.white
11
+ }),(function(e){return e.theme.direction}),(function(e){
12
+ return e.theme.colors.common.accent}),(function(e){
13
+ return e.theme.colors.border.hover}),(function(e){
14
+ return e.theme.colors.border.disabled}),(function(e){var n=e.theme
15
+ ;return"linear-gradient\n (0deg, #cfd7df, #cfd7df),\n linear-gradient(0deg, ".concat(n.colors.fill.medium,", ").concat(n.colors.fill.medium,")")
16
+ }),(function(e){return e.theme.colors.border.hover
17
+ })),E=e.div(g||(g=n(["\n display: flex;\n align-items: center;\n direction: ",";\n"],["\n display: flex;\n align-items: center;\n direction: ",";\n"])),(function(e){
18
+ return e.theme.direction})),R=function(e){
19
+ var n=e.checked,t=e.className,c=e.disabled,s=e.id,u=e.isRequired,m=e.label,b=e.name,p=e.readOnly,f=a(e,["checked","className","disabled","id","isRequired","label","name","readOnly"]),h=r()
20
+ ;return i.createElement(v,o({
21
+ className:"RadioGroupRoot ".concat(null!=t?t:"").trim(),id:s,name:b,
22
+ "aria-label":m||"Radio button",value:n?"default":"",required:u,disabled:c,
23
+ "aria-readonly":p,dir:h.direction},f),i.createElement(E,null,i.createElement(y,{
24
+ checked:n,"aria-checked":n,className:"RadioGroupItem",disabled:c,
25
+ "aria-readonly":p,value:"default",id:"default"},i.createElement(k,{
26
+ className:"RadioGroupIndicator"})),m&&i.createElement(d,{className:"RadioLabel",
27
+ disabled:c,"aria-readonly":p,"aria-label":m,htmlFor:s
28
+ },m,m&&u&&i.createElement(l,null,"*"))))},N=function(e){
29
+ var n=e.options,c=e.defaultValue,s=e.idAccessor,u=void 0===s?"id":s,b=e.nameAccessor,p=void 0===b?"name":b,f=e.onChange,h=e.className,g=e.id,R=e.isErrored,N=e.errorText,w=e.disabled,G=e.isRequired,j=e.label,q=e.readOnly,I=e.value,A=a(e,["options","defaultValue","idAccessor","nameAccessor","onChange","className","id","isErrored","errorText","disabled","isRequired","label","readOnly","value"]),C=r()
30
+ ;return i.createElement(x,null,j&&i.createElement(t,{id:g,
31
+ className:"input-label"
32
+ },j,j&&G&&i.createElement(l,null,"*")),i.createElement(v,o({defaultValue:c,
33
+ value:I,onValueChange:function(e){q||w||null==f||f(e)},"aria-readonly":q,id:g,
34
+ "aria-label":j||"Radio Group","aria-labelledby":j?g:void 0,
35
+ className:"RadioGroupRoot ".concat(null!=h?h:"").trim(),dir:C.direction
36
+ },A),null==n?void 0:n.map((function(e){return i.createElement(E,{
37
+ key:null==e?void 0:e[u],className:"RadioContainer"},i.createElement(y,{
38
+ className:"RadioGroupItem",disabled:e.disabled,value:null==e?void 0:e[u],
39
+ id:null==e?void 0:e[u],"aria-label":null==e?void 0:e[p]},i.createElement(k,{
40
+ className:"RadioGroupIndicator"})),i.createElement(d,{className:"RadioLabel",
41
+ disabled:e.disabled,htmlFor:null==e?void 0:e[u]},null==e?void 0:e[p]))
42
+ }))),R&&N&&i.createElement(m,null,N))};export{R,N as a};