@gobolt/genesis 0.2.8 → 0.2.9
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/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index5.js +4 -4
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index6.js +4 -4
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/styles.cjs +24 -8
- package/dist/components/Select/styles.js +28 -12
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +1 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +1 -1
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +1 -1
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index5.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("./_commonjsHelpers.cjs"),r=require("../node_modules/debounce/index.cjs");var o=r.__require();const s=e.getDefaultExportFromCjs(o);module.exports=s;
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as r } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const a = /* @__PURE__ */ o
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/debounce/index.js";
|
|
3
|
+
var o = /* @__PURE__ */ r();
|
|
4
|
+
const a = /* @__PURE__ */ e(o);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
package/dist/_virtual/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("./_commonjsHelpers.cjs"),e=require("../node_modules/copy-to-clipboard/index.cjs");var o=e.__require();const s=r.getDefaultExportFromCjs(o);module.exports=s;
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as r } from "../node_modules/
|
|
3
|
-
var
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/copy-to-clipboard/index.js";
|
|
3
|
+
var p = r();
|
|
4
|
+
const a = /* @__PURE__ */ o(p);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ export interface SelectProps extends Omit<AntSelectProps, "variant"> {
|
|
|
10
10
|
}[];
|
|
11
11
|
variant?: "simple" | "none";
|
|
12
12
|
defaultValue?: string | string[] | number | number[] | unknown;
|
|
13
|
-
onChange?: (value: string) => void;
|
|
13
|
+
onChange?: (value: string | string[]) => void;
|
|
14
14
|
}
|
|
15
15
|
declare const Select: ({ type, state, variant, defaultValue, onChange, ...rest }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default Select;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),b=require("../../node_modules/antd/es/select/index.cjs"),h=a.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
border: 2px solid transparent;
|
|
4
4
|
background-color: transparent;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
.ant-select-dropdown {
|
|
17
17
|
animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,f=e=>`all ${e.motion.veryfast}s ease-in-out`,$=(e,t,o,r)=>`
|
|
20
20
|
&.ant-select {
|
|
21
21
|
background-color: ${e.surface.secondary};
|
|
22
22
|
border-color: ${e.surface.secondary};
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
margin: 0px;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,m=({colors:e,sizing:t,typography:o,borderRadius:r},n,i,
|
|
32
|
+
`,m=({colors:e,sizing:t,typography:o,borderRadius:r},n,i,g)=>{var s,d,c,l,p,u;return g==="simple"?$(e,n,i,r):`
|
|
33
33
|
&.ant-select {
|
|
34
34
|
|
|
35
35
|
font-size: ${t.Size4}px;
|
|
@@ -53,16 +53,32 @@
|
|
|
53
53
|
padding-left: 4px;
|
|
54
54
|
height: auto !important;
|
|
55
55
|
min-height: 32px !important;
|
|
56
|
+
background-color: transparent !important;
|
|
56
57
|
|
|
57
58
|
.ant-select-selection-overflow {
|
|
58
|
-
flex-wrap:
|
|
59
|
+
flex-wrap: nowrap;
|
|
59
60
|
gap: 4px;
|
|
60
|
-
padding:
|
|
61
|
+
padding: 0;
|
|
62
|
+
height: 30px;
|
|
63
|
+
align-items: center;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
.ant-select-selection-item {
|
|
64
67
|
margin-top: 0;
|
|
65
68
|
margin-bottom: 0;
|
|
69
|
+
background: transparent;
|
|
70
|
+
border: none;
|
|
71
|
+
height: 24px;
|
|
72
|
+
line-height: 24px;
|
|
73
|
+
padding-right: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ant-select-selection-overflow-item-suffix {
|
|
77
|
+
position: absolute;
|
|
78
|
+
right: 0;
|
|
79
|
+
height: 30px;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
66
82
|
}
|
|
67
83
|
}
|
|
68
84
|
|
|
@@ -111,7 +127,7 @@
|
|
|
111
127
|
}
|
|
112
128
|
`},x=a.div`
|
|
113
129
|
.ant-select-item-option {
|
|
114
|
-
transition: ${({theme:e,type:t})=>
|
|
130
|
+
transition: ${({theme:e,type:t})=>f(e)};
|
|
115
131
|
border-radius: 0px;
|
|
116
132
|
|
|
117
133
|
&:hover {
|
|
@@ -151,6 +167,6 @@
|
|
|
151
167
|
&.ant-slide-up-leave {
|
|
152
168
|
animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
|
|
153
169
|
}
|
|
154
|
-
`,v=a(
|
|
170
|
+
`,v=a(b)`
|
|
155
171
|
${({theme:e,type:t="primary",state:o="active",$variant:r="none"})=>m(e,t,o,r)}
|
|
156
|
-
`;exports.Select=v;exports.SelectDropdown=y;exports.SelectWrapper=
|
|
172
|
+
`;exports.Select=v;exports.SelectDropdown=y;exports.SelectWrapper=h;exports.StyledMenuItem=x;exports.getGenesisClass=m;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import a from "styled-components";
|
|
2
|
-
import
|
|
2
|
+
import g from "../../node_modules/antd/es/select/index.js";
|
|
3
3
|
const v = a.div`
|
|
4
4
|
position: relative;
|
|
5
5
|
border: 2px solid transparent;
|
|
@@ -18,7 +18,7 @@ const v = a.div`
|
|
|
18
18
|
.ant-select-dropdown {
|
|
19
19
|
animation-duration: ${({ theme: e }) => `${e.motion.veryfast}s`} !important;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`, b = (e) => `all ${e.motion.veryfast}s ease-in-out`, h = (e, t, o, r) => `
|
|
22
22
|
&.ant-select {
|
|
23
23
|
background-color: ${e.surface.secondary};
|
|
24
24
|
border-color: ${e.surface.secondary};
|
|
@@ -31,9 +31,9 @@ const v = a.div`
|
|
|
31
31
|
margin: 0px;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
35
|
-
var
|
|
36
|
-
return m === "simple" ?
|
|
34
|
+
`, f = ({ colors: e, sizing: t, typography: o, borderRadius: r }, n, i, m) => {
|
|
35
|
+
var s, d, c, p, l, u;
|
|
36
|
+
return m === "simple" ? h(e, n, i, r) : `
|
|
37
37
|
&.ant-select {
|
|
38
38
|
|
|
39
39
|
font-size: ${t.Size4}px;
|
|
@@ -47,7 +47,7 @@ const v = a.div`
|
|
|
47
47
|
height: auto;
|
|
48
48
|
min-height: 32px;
|
|
49
49
|
|
|
50
|
-
background-color: ${((
|
|
50
|
+
background-color: ${((d = (s = e == null ? void 0 : e[n]) == null ? void 0 : s[i]) == null ? void 0 : d.backgroundColor) ?? "#fff"}
|
|
51
51
|
|
|
52
52
|
border-radius: ${r.BorderRadiusMd}px;
|
|
53
53
|
gap: ${t.Size2}px;
|
|
@@ -57,16 +57,32 @@ const v = a.div`
|
|
|
57
57
|
padding-left: 4px;
|
|
58
58
|
height: auto !important;
|
|
59
59
|
min-height: 32px !important;
|
|
60
|
+
background-color: transparent !important;
|
|
60
61
|
|
|
61
62
|
.ant-select-selection-overflow {
|
|
62
|
-
flex-wrap:
|
|
63
|
+
flex-wrap: nowrap;
|
|
63
64
|
gap: 4px;
|
|
64
|
-
padding:
|
|
65
|
+
padding: 0;
|
|
66
|
+
height: 30px;
|
|
67
|
+
align-items: center;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
.ant-select-selection-item {
|
|
68
71
|
margin-top: 0;
|
|
69
72
|
margin-bottom: 0;
|
|
73
|
+
background: transparent;
|
|
74
|
+
border: none;
|
|
75
|
+
height: 24px;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
padding-right: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ant-select-selection-overflow-item-suffix {
|
|
81
|
+
position: absolute;
|
|
82
|
+
right: 0;
|
|
83
|
+
height: 30px;
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
70
86
|
}
|
|
71
87
|
}
|
|
72
88
|
|
|
@@ -116,7 +132,7 @@ const v = a.div`
|
|
|
116
132
|
`;
|
|
117
133
|
}, y = a.div`
|
|
118
134
|
.ant-select-item-option {
|
|
119
|
-
transition: ${({ theme: e, type: t }) =>
|
|
135
|
+
transition: ${({ theme: e, type: t }) => b(e)};
|
|
120
136
|
border-radius: 0px;
|
|
121
137
|
|
|
122
138
|
&:hover {
|
|
@@ -156,13 +172,13 @@ const v = a.div`
|
|
|
156
172
|
&.ant-slide-up-leave {
|
|
157
173
|
animation-duration: ${({ theme: e }) => `${e.motion.veryfast}s`} !important;
|
|
158
174
|
}
|
|
159
|
-
`, w = a(
|
|
160
|
-
${({ theme: e, type: t = "primary", state: o = "active", $variant: r = "none" }) =>
|
|
175
|
+
`, w = a(g)`
|
|
176
|
+
${({ theme: e, type: t = "primary", state: o = "active", $variant: r = "none" }) => f(e, t, o, r)}
|
|
161
177
|
`;
|
|
162
178
|
export {
|
|
163
179
|
w as Select,
|
|
164
180
|
k as SelectDropdown,
|
|
165
181
|
v as SelectWrapper,
|
|
166
182
|
y as StyledMenuItem,
|
|
167
|
-
|
|
183
|
+
f as getGenesisClass
|
|
168
184
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),j=require("../../../node_modules/react-icons/hi2/index.cjs"),c=require("../../../node_modules/react-icons/hi/index.cjs"),m=require("../../../node_modules/react-icons/fi/index.cjs"),q=require("../../../_virtual/index5.cjs"),I=require("../../Input/Input.cjs"),d=require("../../Button/UtilityButton.cjs"),f=require("../../Typography/Typography.cjs"),k=require("../../Select/Select.cjs"),S=require("../../Button/IconButton.cjs"),b=({sortOptions:s,searchByPlaceholder:p="",searchField:x="address",isSortedAscending:n=!0,onChange:t})=>{const a=i=>{const v={event:"inputChange",payload:{value:i.target.value,field:x}};q(()=>{t==null||t(v)},200)()},r=i=>{const u={event:"primaryChange",payload:{value:i}};t==null||t(u)},l=()=>{const i={event:"filterClick",payload:{}};t==null||t(i)},o=()=>{const i={event:"settingsClick",payload:{}};t==null||t(i)},y=()=>{const i={event:"orderClick",payload:{value:n?"desc":"asc"}};t==null||t(i)};return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",minWidth:800},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx(I,{size:"normal",placeholder:p,prefix:e.jsx(c.HiSearch,{}),style:{padding:"5px 8px"},onChange:a}),l&&e.jsx(d,{isIconButton:!0,icon:e.jsx(j.HiMiniAdjustmentsVertical,{}),onClick:l}),o&&e.jsx(d,{isIconButton:!0,icon:e.jsx(m.FiSettings,{}),onClick:o})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx(f,{variant:"body3",color:"#6C6C6C",children:"Sort by"}),s&&r?e.jsx(k,{options:s,defaultValue:s[0].value,variant:"simple",onChange:r}):null,e.jsx(S,{icon:n?e.jsx(c.HiOutlineSortDescending,{}):e.jsx(c.HiOutlineSortAscending,{}),onClick:y})]})]})};module.exports=b;
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { HiMiniAdjustmentsVertical as v } from "../../../node_modules/react-icons/hi2/index.js";
|
|
3
3
|
import { HiSearch as I, HiOutlineSortDescending as k, HiOutlineSortAscending as x } from "../../../node_modules/react-icons/hi/index.js";
|
|
4
4
|
import { FiSettings as b } from "../../../node_modules/react-icons/fi/index.js";
|
|
5
|
-
import S from "../../../_virtual/
|
|
5
|
+
import S from "../../../_virtual/index5.js";
|
|
6
6
|
import A from "../../Input/Input.js";
|
|
7
7
|
import d from "../../Button/UtilityButton.js";
|
|
8
8
|
import E from "../../Typography/Typography.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const v=require("react"),m=require("../../../../../_virtual/
|
|
1
|
+
"use strict";const v=require("react"),m=require("../../../../../_virtual/index6.cjs"),x=require("../../../../rc-util/es/hooks/useEvent.cjs"),C=require("../../_util/toList.cjs");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>o[e]})}}return t.default=o,Object.freeze(t)}const d=_(v);var h=function(o,t,e,c){function s(u){return u instanceof e?u:new e(function(r){r(u)})}return new(e||(e=Promise))(function(u,r){function f(i){try{a(c.next(i))}catch(n){r(n)}}function l(i){try{a(c.throw(i))}catch(n){r(n)}}function a(i){i.done?u(i.value):s(i.value).then(f,l)}a((c=c.apply(o,t||[])).next())})};const w=o=>{let{copyConfig:t,children:e}=o;const[c,s]=d.useState(!1),[u,r]=d.useState(!1),f=d.useRef(null),l=()=>{f.current&&clearTimeout(f.current)},a={};t.format&&(a.format=t.format),d.useEffect(()=>l,[]);const i=x(n=>h(void 0,void 0,void 0,function*(){var p;n==null||n.preventDefault(),n==null||n.stopPropagation(),r(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;m(y||C(e,!0).join("")||"",a),r(!1),s(!0),l(),f.current=setTimeout(()=>{s(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,n)}catch(y){throw r(!1),y}}));return{copied:c,copyLoading:u,onClick:i}};module.exports=w;
|