@gobolt/genesis 0.2.9 → 0.2.11

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.
@@ -1 +1 @@
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;
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;
@@ -1,7 +1,7 @@
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);
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
  };
@@ -1 +1 @@
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;
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;
@@ -1,7 +1,7 @@
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);
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
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),t=require("../../providers/useGenesis.cjs"),i=require("../../node_modules/antd/es/date-picker/index.cjs"),n=e=>{const{theme:s}=t.useGenesis();return r.jsx(i,{...e,style:{border:`1px solid ${s.colors.inputs.surface.border}`}})};module.exports=n;
1
+ "use strict";const r=require("react/jsx-runtime"),t=require("../../providers/useGenesis.cjs"),i=require("../../node_modules/antd/es/date-picker/index.cjs"),n=e=>{const{theme:s}=t.useGenesis();return r.jsx(i,{...e,style:{border:`1px solid ${s.colors.inputs.surface.border}`,padding:"8px"}})};module.exports=n;
@@ -1,18 +1,19 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useGenesis as t } from "../../providers/useGenesis.js";
3
3
  import s from "../../node_modules/antd/es/date-picker/index.js";
4
- const p = (r) => {
4
+ const a = (r) => {
5
5
  const { theme: e } = t();
6
6
  return /* @__PURE__ */ o(
7
7
  s,
8
8
  {
9
9
  ...r,
10
10
  style: {
11
- border: `1px solid ${e.colors.inputs.surface.border}`
11
+ border: `1px solid ${e.colors.inputs.surface.border}`,
12
+ padding: "8px"
12
13
  }
13
14
  }
14
15
  );
15
16
  };
16
17
  export {
17
- p as default
18
+ a as default
18
19
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),t=require("../../providers/useGenesis.cjs"),n=require("../../node_modules/antd/es/date-picker/index.cjs"),{RangePicker:i}=n,o=e=>{const{theme:s}=t.useGenesis();return r.jsx(i,{...e,style:{border:`1px solid ${s.colors.inputs.surface.border}`}})};module.exports=o;
1
+ "use strict";const r=require("react/jsx-runtime"),n=require("../../providers/useGenesis.cjs"),t=require("../../node_modules/antd/es/date-picker/index.cjs"),{RangePicker:i}=t,o=e=>{const{theme:s}=n.useGenesis();return r.jsx(i,{...e,style:{border:`1px solid ${s.colors.inputs.surface.border}`,padding:"8px"}})};module.exports=o;
@@ -1,18 +1,19 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useGenesis as o } from "../../providers/useGenesis.js";
3
3
  import s from "../../node_modules/antd/es/date-picker/index.js";
4
- const { RangePicker: n } = s, m = (e) => {
4
+ const { RangePicker: n } = s, p = (e) => {
5
5
  const { theme: r } = o();
6
6
  return /* @__PURE__ */ t(
7
7
  n,
8
8
  {
9
9
  ...e,
10
10
  style: {
11
- border: `1px solid ${r.colors.inputs.surface.border}`
11
+ border: `1px solid ${r.colors.inputs.surface.border}`,
12
+ padding: "8px"
12
13
  }
13
14
  }
14
15
  );
15
16
  };
16
17
  export {
17
- m as default
18
+ p as default
18
19
  };
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof DateRangePicker>;
6
6
  export declare const DateRange: Story;
7
7
  export declare const DateTimeRange: Story;
8
8
  export declare const SetDateRange: Story;
9
+ export declare const CommplexRow: Story;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("../../shared/DropdownChevron.cjs"),c=require("../Select.cjs"),u=({options:l,onChange:n,width:r=320,selectedValues:t,placeholder:s="0 selected"})=>{const i=()=>e.jsxs("div",{style:{fontSize:"16px",lineHeight:"24px",paddingTop:"2px"},children:[t.length," selected"]});return e.jsx("div",{style:{width:r},children:e.jsx(c,{options:l,mode:"multiple",value:t,onChange:n,maxTagCount:0,suffixIcon:e.jsx(o,{}),labelInValue:!1,showSearch:!1,maxTagPlaceholder:i,placeholder:s})})};module.exports=u;
@@ -0,0 +1,12 @@
1
+ export interface CountMultiSelectProps {
2
+ options: {
3
+ value: string;
4
+ label: string;
5
+ }[];
6
+ onChange: (values: string[]) => void;
7
+ width?: number;
8
+ selectedValues?: string[];
9
+ placeholder?: string;
10
+ }
11
+ declare const CountMultiSelect: ({ options, onChange, width, selectedValues, placeholder, }: CountMultiSelectProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default CountMultiSelect;
@@ -0,0 +1,40 @@
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
+ import a from "../../shared/DropdownChevron.js";
3
+ import d from "../Select.js";
4
+ const m = ({
5
+ options: t,
6
+ onChange: r,
7
+ width: o = 320,
8
+ selectedValues: l,
9
+ placeholder: n = "0 selected"
10
+ }) => /* @__PURE__ */ e("div", { style: { width: o }, children: /* @__PURE__ */ e(
11
+ d,
12
+ {
13
+ options: t,
14
+ mode: "multiple",
15
+ value: l,
16
+ onChange: r,
17
+ maxTagCount: 0,
18
+ suffixIcon: /* @__PURE__ */ e(a, {}),
19
+ labelInValue: !1,
20
+ showSearch: !1,
21
+ maxTagPlaceholder: () => /* @__PURE__ */ i(
22
+ "div",
23
+ {
24
+ style: {
25
+ fontSize: "16px",
26
+ lineHeight: "24px",
27
+ paddingTop: "2px"
28
+ },
29
+ children: [
30
+ l.length,
31
+ " selected"
32
+ ]
33
+ }
34
+ ),
35
+ placeholder: n
36
+ }
37
+ ) });
38
+ export {
39
+ m as default
40
+ };
@@ -0,0 +1,7 @@
1
+ import { default as CountMultiSelect } from '../CountMultiSelect';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof CountMultiSelect>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CountMultiSelect>;
6
+ export declare const Default: Story;
7
+ export declare const ThreeSelected: Story;
@@ -0,0 +1,2 @@
1
+ export { default } from './CountMultiSelect';
2
+ export type { CountMultiSelectProps } from './CountMultiSelect';
@@ -8,4 +8,3 @@ export declare const Filled: Story;
8
8
  export declare const Focussed: Story;
9
9
  export declare const Disabled: Story;
10
10
  export declare const Simple: Story;
11
- export declare const MultiSelect: Story;
@@ -1,4 +1,4 @@
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`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),f=require("../../node_modules/antd/es/select/index.cjs"),h=i.div`
2
2
  position: relative;
3
3
  border: 2px solid transparent;
4
4
  background-color: transparent;
@@ -6,8 +6,8 @@
6
6
  padding: 1px;
7
7
  width: auto;
8
8
 
9
- ${({$isFocused:e,theme:t,type:o="primary"})=>e&&`
10
- border: 2px solid ${t.colors[o].focussed.ringColor};
9
+ ${({$isFocused:e,theme:t,type:n="primary"})=>e&&`
10
+ border: 2px solid ${t.colors[n].focussed.ringColor};
11
11
  background-color: transparent;
12
12
  border-radius: 8px;
13
13
  padding: 1px;
@@ -16,7 +16,7 @@
16
16
  .ant-select-dropdown {
17
17
  animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
18
18
  }
19
- `,f=e=>`all ${e.motion.veryfast}s ease-in-out`,$=(e,t,o,r)=>`
19
+ `,b=e=>`all ${e.motion.veryfast}s ease-in-out`,x=(e,t,n,r)=>`
20
20
  &.ant-select {
21
21
  background-color: ${e.surface.secondary};
22
22
  border-color: ${e.surface.secondary};
@@ -29,10 +29,10 @@
29
29
  margin: 0px;
30
30
  }
31
31
  }
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):`
32
+ `,m=({colors:e,sizing:t,typography:n,borderRadius:r},o,a,g)=>{var s,d,l,c,p,u;return g==="simple"?x(e,o,a,r):`
33
33
  &.ant-select {
34
34
 
35
- font-size: ${t.Size4}px;
35
+ font-size: 16px;
36
36
  line-height: ${t.Size6}px;
37
37
  letter-spacing: 0;
38
38
  font-weight: 400;
@@ -43,42 +43,75 @@
43
43
  height: auto;
44
44
  min-height: 32px;
45
45
 
46
- background-color: ${((d=(s=e==null?void 0:e[n])==null?void 0:s[i])==null?void 0:d.backgroundColor)??"#fff"}
46
+ background-color: ${((d=(s=e==null?void 0:e[o])==null?void 0:s[a])==null?void 0:d.backgroundColor)??"#fff"}
47
47
 
48
48
  border-radius: ${r.BorderRadiusMd}px;
49
49
  gap: ${t.Size2}px;
50
50
 
51
51
  .ant-select-selector {
52
52
  border-color: ${e.inputs.surface.border};
53
- padding-left: 4px;
54
- height: auto !important;
55
- min-height: 32px !important;
53
+ padding: 4px 12px !important;
54
+ height: 40px !important;
55
+ min-height: 40px !important;
56
56
  background-color: transparent !important;
57
+ display: flex;
58
+ align-items: center;
59
+
60
+ .ant-select-selection-search {
61
+ margin-inline-start: 0;
62
+ padding-left: 0;
63
+ height: 100%;
64
+ display: flex;
65
+ align-items: center;
66
+
67
+ input {
68
+ font-size: 16px;
69
+ }
70
+ }
57
71
 
58
72
  .ant-select-selection-overflow {
59
73
  flex-wrap: nowrap;
60
74
  gap: 4px;
61
75
  padding: 0;
62
- height: 30px;
76
+ height: 100%;
63
77
  align-items: center;
78
+ margin-left: 0;
79
+ display: flex;
64
80
  }
65
81
 
66
82
  .ant-select-selection-item {
67
- margin-top: 0;
68
- margin-bottom: 0;
83
+ margin: 0;
69
84
  background: transparent;
70
85
  border: none;
71
- height: 24px;
72
- line-height: 24px;
73
- padding-right: 0;
86
+ height: 100%;
87
+ line-height: normal;
88
+ padding: 0;
89
+ font-size: 16px;
90
+ display: flex;
91
+ align-items: center;
92
+
93
+ &.ant-select-selection-placeholder {
94
+ padding-top: 6px;
95
+ }
96
+ }
97
+
98
+ .ant-select-selection-overflow-item {
99
+ height: 100%;
100
+ display: flex;
101
+ align-items: center;
74
102
  }
75
103
 
76
104
  .ant-select-selection-overflow-item-suffix {
77
105
  position: absolute;
78
- right: 0;
79
- height: 30px;
106
+ right: 12px;
107
+ height: 100%;
80
108
  display: flex;
81
109
  align-items: center;
110
+ font-size: 16px;
111
+
112
+ .ant-select-selection-item {
113
+ padding-top: 6px;
114
+ }
82
115
  }
83
116
  }
84
117
 
@@ -91,8 +124,8 @@
91
124
  }
92
125
 
93
126
  &:active {
94
- background-color: ${((l=(c=e==null?void 0:e[n])==null?void 0:c.pressed)==null?void 0:l.backgroundColor)??"#fff"};
95
- border-color: ${((u=(p=e==null?void 0:e[n])==null?void 0:p.pressed)==null?void 0:u.borderColor)??"#fff"};
127
+ background-color: ${((c=(l=e==null?void 0:e[o])==null?void 0:l.pressed)==null?void 0:c.backgroundColor)??"#fff"};
128
+ border-color: ${((u=(p=e==null?void 0:e[o])==null?void 0:p.pressed)==null?void 0:u.borderColor)??"#fff"};
96
129
  }
97
130
 
98
131
  // Remove focus styles
@@ -125,9 +158,9 @@
125
158
  }
126
159
  }
127
160
  }
128
- `},x=a.div`
161
+ `},$=i.div`
129
162
  .ant-select-item-option {
130
- transition: ${({theme:e,type:t})=>f(e)};
163
+ transition: ${({theme:e,type:t})=>b(e)};
131
164
  border-radius: 0px;
132
165
 
133
166
  &:hover {
@@ -148,7 +181,7 @@
148
181
  }
149
182
  }
150
183
  }
151
- `,y=a.div`
184
+ `,y=i.div`
152
185
  .ant-select-dropdown {
153
186
  animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
154
187
  transition: all ${({theme:e})=>`${e.motion.veryfast}s`}
@@ -167,6 +200,6 @@
167
200
  &.ant-slide-up-leave {
168
201
  animation-duration: ${({theme:e})=>`${e.motion.veryfast}s`} !important;
169
202
  }
170
- `,v=a(b)`
171
- ${({theme:e,type:t="primary",state:o="active",$variant:r="none"})=>m(e,t,o,r)}
172
- `;exports.Select=v;exports.SelectDropdown=y;exports.SelectWrapper=h;exports.StyledMenuItem=x;exports.getGenesisClass=m;
203
+ `,v=i(f)`
204
+ ${({theme:e,type:t="primary",state:n="active",$variant:r="none"})=>m(e,t,n,r)}
205
+ `;exports.Select=v;exports.SelectDropdown=y;exports.SelectWrapper=h;exports.StyledMenuItem=$;exports.getGenesisClass=m;
@@ -1,6 +1,6 @@
1
1
  import a from "styled-components";
2
2
  import g from "../../node_modules/antd/es/select/index.js";
3
- const v = a.div`
3
+ const y = a.div`
4
4
  position: relative;
5
5
  border: 2px solid transparent;
6
6
  background-color: 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
- `, b = (e) => `all ${e.motion.veryfast}s ease-in-out`, h = (e, t, o, r) => `
21
+ `, f = (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,12 +31,12 @@ const v = a.div`
31
31
  margin: 0px;
32
32
  }
33
33
  }
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) : `
34
+ `, b = ({ colors: e, sizing: t, typography: o, borderRadius: r }, n, i, u) => {
35
+ var s, d, l, c, p, m;
36
+ return u === "simple" ? h(e, n, i, r) : `
37
37
  &.ant-select {
38
38
 
39
- font-size: ${t.Size4}px;
39
+ font-size: 16px;
40
40
  line-height: ${t.Size6}px;
41
41
  letter-spacing: 0;
42
42
  font-weight: 400;
@@ -54,35 +54,68 @@ const v = a.div`
54
54
 
55
55
  .ant-select-selector {
56
56
  border-color: ${e.inputs.surface.border};
57
- padding-left: 4px;
58
- height: auto !important;
59
- min-height: 32px !important;
57
+ padding: 4px 12px !important;
58
+ height: 40px !important;
59
+ min-height: 40px !important;
60
60
  background-color: transparent !important;
61
+ display: flex;
62
+ align-items: center;
63
+
64
+ .ant-select-selection-search {
65
+ margin-inline-start: 0;
66
+ padding-left: 0;
67
+ height: 100%;
68
+ display: flex;
69
+ align-items: center;
70
+
71
+ input {
72
+ font-size: 16px;
73
+ }
74
+ }
61
75
 
62
76
  .ant-select-selection-overflow {
63
77
  flex-wrap: nowrap;
64
78
  gap: 4px;
65
79
  padding: 0;
66
- height: 30px;
80
+ height: 100%;
67
81
  align-items: center;
82
+ margin-left: 0;
83
+ display: flex;
68
84
  }
69
85
 
70
86
  .ant-select-selection-item {
71
- margin-top: 0;
72
- margin-bottom: 0;
87
+ margin: 0;
73
88
  background: transparent;
74
89
  border: none;
75
- height: 24px;
76
- line-height: 24px;
77
- padding-right: 0;
90
+ height: 100%;
91
+ line-height: normal;
92
+ padding: 0;
93
+ font-size: 16px;
94
+ display: flex;
95
+ align-items: center;
96
+
97
+ &.ant-select-selection-placeholder {
98
+ padding-top: 6px;
99
+ }
100
+ }
101
+
102
+ .ant-select-selection-overflow-item {
103
+ height: 100%;
104
+ display: flex;
105
+ align-items: center;
78
106
  }
79
107
 
80
108
  .ant-select-selection-overflow-item-suffix {
81
109
  position: absolute;
82
- right: 0;
83
- height: 30px;
110
+ right: 12px;
111
+ height: 100%;
84
112
  display: flex;
85
113
  align-items: center;
114
+ font-size: 16px;
115
+
116
+ .ant-select-selection-item {
117
+ padding-top: 6px;
118
+ }
86
119
  }
87
120
  }
88
121
 
@@ -95,8 +128,8 @@ const v = a.div`
95
128
  }
96
129
 
97
130
  &:active {
98
- background-color: ${((p = (c = e == null ? void 0 : e[n]) == null ? void 0 : c.pressed) == null ? void 0 : p.backgroundColor) ?? "#fff"};
99
- border-color: ${((u = (l = e == null ? void 0 : e[n]) == null ? void 0 : l.pressed) == null ? void 0 : u.borderColor) ?? "#fff"};
131
+ background-color: ${((c = (l = e == null ? void 0 : e[n]) == null ? void 0 : l.pressed) == null ? void 0 : c.backgroundColor) ?? "#fff"};
132
+ border-color: ${((m = (p = e == null ? void 0 : e[n]) == null ? void 0 : p.pressed) == null ? void 0 : m.borderColor) ?? "#fff"};
100
133
  }
101
134
 
102
135
  // Remove focus styles
@@ -130,9 +163,9 @@ const v = a.div`
130
163
  }
131
164
  }
132
165
  `;
133
- }, y = a.div`
166
+ }, v = a.div`
134
167
  .ant-select-item-option {
135
- transition: ${({ theme: e, type: t }) => b(e)};
168
+ transition: ${({ theme: e, type: t }) => f(e)};
136
169
  border-radius: 0px;
137
170
 
138
171
  &:hover {
@@ -173,12 +206,12 @@ const v = a.div`
173
206
  animation-duration: ${({ theme: e }) => `${e.motion.veryfast}s`} !important;
174
207
  }
175
208
  `, w = a(g)`
176
- ${({ theme: e, type: t = "primary", state: o = "active", $variant: r = "none" }) => f(e, t, o, r)}
209
+ ${({ theme: e, type: t = "primary", state: o = "active", $variant: r = "none" }) => b(e, t, o, r)}
177
210
  `;
178
211
  export {
179
212
  w as Select,
180
213
  k as SelectDropdown,
181
- v as SelectWrapper,
182
- y as StyledMenuItem,
183
- f as getGenesisClass
214
+ y as SelectWrapper,
215
+ v as StyledMenuItem,
216
+ b as getGenesisClass
184
217
  };
@@ -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/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;
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/index6.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/index5.js";
5
+ import S from "../../../_virtual/index6.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";
@@ -45,6 +45,8 @@ export { default as SegmentedControls } from './SegmentedControls';
45
45
  export type { SegmentedControlsProps } from './SegmentedControls';
46
46
  export { default as Select } from './Select';
47
47
  export type { SelectProps } from './Select';
48
+ export { default as CountMultiSelect } from './Select/CountMultiSelect';
49
+ export type { CountMultiSelectProps } from './Select/CountMultiSelect';
48
50
  export { default as Shapes } from './Shapes';
49
51
  export type { ShapesProps } from './Shapes';
50
52
  export { default as Switch } from './Switch';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./constants/index.cjs"),o=require("./styles/global-styles.cjs"),t=require("./components/Avatar/Avatar.cjs"),s=require("./components/Badge/Badge.cjs"),i=require("./components/Breadcrumb/Breadcrumb.cjs"),n=require("./components/Button/Button.cjs"),u=require("./components/Button/UtilityButton.cjs"),a=require("./components/Button/IconButton.cjs"),c=require("./components/Card/Card.cjs"),l=require("./components/Checkbox/Checkbox.cjs"),q=require("./components/DatePicker/DatePicker.cjs"),T=require("./components/DateRangePicker/DateRangePicker.cjs"),b=require("./components/ErrorBoundary/ErrorBoundary.cjs"),d=require("./components/ErrorBoundaryFallback/ErrorBoundaryFallback.cjs"),y=require("./components/Form/Form.cjs"),g=require("./components/Input/Input.cjs"),h=require("./components/Layout/Layout.cjs"),p=require("./components/Message/Message.cjs"),S=require("./components/Notification/Notification.cjs"),k=require("./components/Popover/Popover.cjs"),B=require("./components/Progress/Progress.cjs"),m=require("./components/Radio/RadioGroup.cjs"),P=require("./components/Row/Row.cjs"),C=require("./components/SegmentedControls/SegmentedControls.cjs"),G=require("./components/Select/Select.cjs"),v=require("./components/Shapes/Shapes.cjs"),E=require("./components/Switch/Switch.cjs"),R=require("./components/Table/Table.cjs"),f=require("./components/Table/TableWithControls/TableWithControls.cjs"),I=require("./components/Tabs/Tabs.cjs"),W=require("./components/Tile/Tile.cjs"),w=require("./components/Toast/Toast.cjs"),z=require("./components/Tooltip/Tooltip.cjs"),D=require("./components/Typography/Typography.cjs"),F=require("./providers/GenesisProvider.cjs"),x=require("./components/Table/useTable.cjs"),M=require("./components/Table/TableWithControls/useTableWithControls.cjs"),N=require("./providers/useGenesis.cjs"),e=require("./styles/theme/genesis-theme.cjs");exports.GENESIS=r.default;exports.GlobalStyles=o.GlobalStyles;exports.Avatar=t;exports.Badge=s;exports.Breadcrumb=i;exports.Button=n;exports.UtilityButton=u;exports.IconButton=a;exports.Card=c;exports.Checkbox=l;exports.DatePicker=q;exports.DateRangePicker=T;exports.ErrorBoundary=b;exports.ErrorBoundaryFallback=d;exports.Form=y.default;exports.Input=g;exports.Layout=h;exports.Message=p;exports.Notification=S;exports.Popover=k;exports.Progress=B;exports.RadioGroup=m;exports.Row=P;exports.SegmentedControls=C;exports.Select=G;exports.Shapes=v;exports.Switch=E;exports.Table=R;exports.TableWithControls=f;exports.Tabs=I;exports.Tile=W;exports.Toast=w;exports.Tooltip=z;exports.Typography=D;exports.GenesisProvider=F.GenesisProvider;exports.useTable=x.useTable;exports.useTableWithControls=M.useTableWithControls;exports.useGenesis=N.useGenesis;exports.TypographySizeKey=e.TypographySizeKey;exports.baseTokens=e.baseTokens;exports.breakpoints=e.breakpoints;exports.darkTheme=e.darkTheme;exports.lightTheme=e.lightTheme;exports.sizing=e.sizing;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./constants/index.cjs"),o=require("./styles/global-styles.cjs"),t=require("./components/Avatar/Avatar.cjs"),s=require("./components/Badge/Badge.cjs"),i=require("./components/Breadcrumb/Breadcrumb.cjs"),n=require("./components/Button/Button.cjs"),u=require("./components/Button/UtilityButton.cjs"),a=require("./components/Button/IconButton.cjs"),c=require("./components/Card/Card.cjs"),l=require("./components/Checkbox/Checkbox.cjs"),q=require("./components/DatePicker/DatePicker.cjs"),T=require("./components/DateRangePicker/DateRangePicker.cjs"),b=require("./components/ErrorBoundary/ErrorBoundary.cjs"),d=require("./components/ErrorBoundaryFallback/ErrorBoundaryFallback.cjs"),y=require("./components/Form/Form.cjs"),g=require("./components/Input/Input.cjs"),h=require("./components/Layout/Layout.cjs"),p=require("./components/Message/Message.cjs"),S=require("./components/Notification/Notification.cjs"),k=require("./components/Popover/Popover.cjs"),B=require("./components/Progress/Progress.cjs"),C=require("./components/Radio/RadioGroup.cjs"),m=require("./components/Row/Row.cjs"),P=require("./components/SegmentedControls/SegmentedControls.cjs"),G=require("./components/Select/Select.cjs"),v=require("./components/Select/CountMultiSelect/CountMultiSelect.cjs"),E=require("./components/Shapes/Shapes.cjs"),R=require("./components/Switch/Switch.cjs"),f=require("./components/Table/Table.cjs"),I=require("./components/Table/TableWithControls/TableWithControls.cjs"),M=require("./components/Tabs/Tabs.cjs"),W=require("./components/Tile/Tile.cjs"),w=require("./components/Toast/Toast.cjs"),z=require("./components/Tooltip/Tooltip.cjs"),D=require("./components/Typography/Typography.cjs"),F=require("./providers/GenesisProvider.cjs"),x=require("./components/Table/useTable.cjs"),N=require("./components/Table/TableWithControls/useTableWithControls.cjs"),A=require("./providers/useGenesis.cjs"),e=require("./styles/theme/genesis-theme.cjs");exports.GENESIS=r.default;exports.GlobalStyles=o.GlobalStyles;exports.Avatar=t;exports.Badge=s;exports.Breadcrumb=i;exports.Button=n;exports.UtilityButton=u;exports.IconButton=a;exports.Card=c;exports.Checkbox=l;exports.DatePicker=q;exports.DateRangePicker=T;exports.ErrorBoundary=b;exports.ErrorBoundaryFallback=d;exports.Form=y.default;exports.Input=g;exports.Layout=h;exports.Message=p;exports.Notification=S;exports.Popover=k;exports.Progress=B;exports.RadioGroup=C;exports.Row=m;exports.SegmentedControls=P;exports.Select=G;exports.CountMultiSelect=v;exports.Shapes=E;exports.Switch=R;exports.Table=f;exports.TableWithControls=I;exports.Tabs=M;exports.Tile=W;exports.Toast=w;exports.Tooltip=z;exports.Typography=D;exports.GenesisProvider=F.GenesisProvider;exports.useTable=x.useTable;exports.useTableWithControls=N.useTableWithControls;exports.useGenesis=A.useGenesis;exports.TypographySizeKey=e.TypographySizeKey;exports.baseTokens=e.baseTokens;exports.breakpoints=e.breakpoints;exports.darkTheme=e.darkTheme;exports.lightTheme=e.lightTheme;exports.sizing=e.sizing;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { default as m } from "./components/Breadcrumb/Breadcrumb.js";
6
6
  import { default as x } from "./components/Button/Button.js";
7
7
  import { default as n } from "./components/Button/UtilityButton.js";
8
8
  import { default as b } from "./components/Button/IconButton.js";
9
- import { default as y } from "./components/Card/Card.js";
9
+ import { default as h } from "./components/Card/Card.js";
10
10
  import { default as g } from "./components/Checkbox/Checkbox.js";
11
11
  import { default as k } from "./components/DatePicker/DatePicker.js";
12
12
  import { default as C } from "./components/DateRangePicker/DateRangePicker.js";
@@ -15,71 +15,73 @@ import { default as v } from "./components/ErrorBoundaryFallback/ErrorBoundaryFa
15
15
  import { default as R } from "./components/Form/Form.js";
16
16
  import { default as z } from "./components/Input/Input.js";
17
17
  import { default as F } from "./components/Layout/Layout.js";
18
- import { default as W } from "./components/Message/Message.js";
19
- import { default as K } from "./components/Notification/Notification.js";
20
- import { default as M } from "./components/Popover/Popover.js";
18
+ import { default as N } from "./components/Message/Message.js";
19
+ import { default as A } from "./components/Notification/Notification.js";
20
+ import { default as L } from "./components/Popover/Popover.js";
21
21
  import { default as j } from "./components/Progress/Progress.js";
22
22
  import { default as H } from "./components/Radio/RadioGroup.js";
23
23
  import { default as O } from "./components/Row/Row.js";
24
24
  import { default as V } from "./components/SegmentedControls/SegmentedControls.js";
25
25
  import { default as Y } from "./components/Select/Select.js";
26
- import { default as _ } from "./components/Shapes/Shapes.js";
27
- import { default as ee } from "./components/Switch/Switch.js";
28
- import { default as re } from "./components/Table/Table.js";
29
- import { default as ae } from "./components/Table/TableWithControls/TableWithControls.js";
30
- import { default as se } from "./components/Tabs/Tabs.js";
31
- import { default as pe } from "./components/Tile/Tile.js";
32
- import { default as me } from "./components/Toast/Toast.js";
33
- import { default as xe } from "./components/Tooltip/Tooltip.js";
34
- import { default as ne } from "./components/Typography/Typography.js";
35
- import { GenesisProvider as be } from "./providers/GenesisProvider.js";
36
- import { useTable as ye } from "./components/Table/useTable.js";
37
- import { useTableWithControls as ge } from "./components/Table/TableWithControls/useTableWithControls.js";
38
- import { useGenesis as ke } from "./providers/useGenesis.js";
39
- import { TypographySizeKey as Ce, baseTokens as Ge, breakpoints as Pe, darkTheme as Ee, lightTheme as ve, sizing as Ie } from "./styles/theme/genesis-theme.js";
26
+ import { default as _ } from "./components/Select/CountMultiSelect/CountMultiSelect.js";
27
+ import { default as ee } from "./components/Shapes/Shapes.js";
28
+ import { default as re } from "./components/Switch/Switch.js";
29
+ import { default as ae } from "./components/Table/Table.js";
30
+ import { default as se } from "./components/Table/TableWithControls/TableWithControls.js";
31
+ import { default as pe } from "./components/Tabs/Tabs.js";
32
+ import { default as me } from "./components/Tile/Tile.js";
33
+ import { default as xe } from "./components/Toast/Toast.js";
34
+ import { default as ne } from "./components/Tooltip/Tooltip.js";
35
+ import { default as be } from "./components/Typography/Typography.js";
36
+ import { GenesisProvider as he } from "./providers/GenesisProvider.js";
37
+ import { useTable as ge } from "./components/Table/useTable.js";
38
+ import { useTableWithControls as ke } from "./components/Table/TableWithControls/useTableWithControls.js";
39
+ import { useGenesis as Ce } from "./providers/useGenesis.js";
40
+ import { TypographySizeKey as Pe, baseTokens as Ee, breakpoints as ve, darkTheme as Ie, lightTheme as Re, sizing as we } from "./styles/theme/genesis-theme.js";
40
41
  export {
41
42
  s as Avatar,
42
43
  p as Badge,
43
44
  m as Breadcrumb,
44
45
  x as Button,
45
- y as Card,
46
+ h as Card,
46
47
  g as Checkbox,
48
+ _ as CountMultiSelect,
47
49
  k as DatePicker,
48
50
  C as DateRangePicker,
49
51
  P as ErrorBoundary,
50
52
  v as ErrorBoundaryFallback,
51
53
  R as Form,
52
54
  r as GENESIS,
53
- be as GenesisProvider,
55
+ he as GenesisProvider,
54
56
  a as GlobalStyles,
55
57
  b as IconButton,
56
58
  z as Input,
57
59
  F as Layout,
58
- W as Message,
59
- K as Notification,
60
- M as Popover,
60
+ N as Message,
61
+ A as Notification,
62
+ L as Popover,
61
63
  j as Progress,
62
64
  H as RadioGroup,
63
65
  O as Row,
64
66
  V as SegmentedControls,
65
67
  Y as Select,
66
- _ as Shapes,
67
- ee as Switch,
68
- re as Table,
69
- ae as TableWithControls,
70
- se as Tabs,
71
- pe as Tile,
72
- me as Toast,
73
- xe as Tooltip,
74
- ne as Typography,
75
- Ce as TypographySizeKey,
68
+ ee as Shapes,
69
+ re as Switch,
70
+ ae as Table,
71
+ se as TableWithControls,
72
+ pe as Tabs,
73
+ me as Tile,
74
+ xe as Toast,
75
+ ne as Tooltip,
76
+ be as Typography,
77
+ Pe as TypographySizeKey,
76
78
  n as UtilityButton,
77
- Ge as baseTokens,
78
- Pe as breakpoints,
79
- Ee as darkTheme,
80
- ve as lightTheme,
81
- Ie as sizing,
82
- ke as useGenesis,
83
- ye as useTable,
84
- ge as useTableWithControls
79
+ Ee as baseTokens,
80
+ ve as breakpoints,
81
+ Ie as darkTheme,
82
+ Re as lightTheme,
83
+ we as sizing,
84
+ Ce as useGenesis,
85
+ ge as useTable,
86
+ ke as useTableWithControls
85
87
  };
@@ -1 +1 @@
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;
1
+ "use strict";const v=require("react"),m=require("../../../../../_virtual/index5.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;
@@ -1,5 +1,5 @@
1
1
  import * as d from "react";
2
- import m from "../../../../../_virtual/index6.js";
2
+ import m from "../../../../../_virtual/index5.js";
3
3
  import v from "../../../../rc-util/es/hooks/useEvent.js";
4
4
  import C from "../../_util/toList.js";
5
5
  var h = function(l, o, c, f) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",