@konstructio/ui 0.0.12-alpha.13 → 0.0.12-alpha.14

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,6 +1,9 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Input as t } from "../../Input/Input.js";
3
- const p = ({ ...e }) => /* @__PURE__ */ r("div", { className: "flex px-4 py-6 rounded-t", children: /* @__PURE__ */ r(t, { className: "!w-1/3", ...e }) });
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { Input as i } from "../../Input/Input.js";
3
+ const o = ({ children: s, ...r }) => /* @__PURE__ */ t("div", { className: "flex px-4 py-6 rounded-t", children: [
4
+ /* @__PURE__ */ e(i, { className: "!w-1/3", ...r }),
5
+ /* @__PURE__ */ e("div", { className: "w-1/4 flex justify-end", children: s })
6
+ ] });
4
7
  export {
5
- p as Filter
8
+ o as Filter
6
9
  };
@@ -4,10 +4,10 @@ import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
4
4
  import { Breadcrumb as a } from "./Breadcrumb/Breadcrumb.js";
5
5
  import { Button as d } from "./Button/Button.js";
6
6
  import { Card as n } from "./Card/Card.js";
7
- import { Checkbox as l } from "./Checkbox/Checkbox.js";
8
- import { Dropdown as c } from "./Dropdown/Dropdown.js";
9
- import { Input as N } from "./Input/Input.js";
10
- import { M as S } from "../Modal-B-E9uaA6.js";
7
+ import { Checkbox as u } from "./Checkbox/Checkbox.js";
8
+ import { Dropdown as b } from "./Dropdown/Dropdown.js";
9
+ import { Input as v } from "./Input/Input.js";
10
+ import { M as R } from "../Modal-B-E9uaA6.js";
11
11
  import { NumberInput as s } from "./NumberInput/NumberInput.js";
12
12
  import { ProgressBar as C } from "./ProgressBar/ProgressBar.js";
13
13
  import { Radio as B } from "./Radio/Radio.js";
@@ -26,12 +26,13 @@ import { Tooltip as Y } from "./Tooltip/Tooltip.js";
26
26
  import { Loading as _ } from "./Loading/Loading.js";
27
27
  import { Typography as oo } from "./Typography/Typography.js";
28
28
  import { Divider as to } from "./Divider/Divider.js";
29
- import { Footer as po } from "./Sidebar/components/Footer/Footer.js";
30
- import { Logo as xo } from "./Sidebar/components/Logo/Logo.js";
31
- import { Navigation as ao } from "./Sidebar/components/Navigation/Navigation.js";
32
- import { NavigationGroup as go } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
33
- import { NavigationOption as uo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
34
- import { NavigationSeparator as To } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
29
+ import { Table as po } from "./Table/Table.js";
30
+ import { Footer as xo } from "./Sidebar/components/Footer/Footer.js";
31
+ import { Logo as ao } from "./Sidebar/components/Logo/Logo.js";
32
+ import { Navigation as go } from "./Sidebar/components/Navigation/Navigation.js";
33
+ import { NavigationGroup as lo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
34
+ import { NavigationOption as To } from "./Sidebar/components/NavigationOption/NavigationOption.js";
35
+ import { NavigationSeparator as co } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
35
36
  export {
36
37
  t as Alert,
37
38
  p as AlertDialog,
@@ -39,18 +40,18 @@ export {
39
40
  a as Breadcrumb,
40
41
  d as Button,
41
42
  n as Card,
42
- l as Checkbox,
43
+ u as Checkbox,
43
44
  to as Divider,
44
- c as Dropdown,
45
- po as Footer,
46
- N as Input,
45
+ b as Dropdown,
46
+ xo as Footer,
47
+ v as Input,
47
48
  _ as Loading,
48
- xo as Logo,
49
- S as Modal,
50
- ao as Navigation,
51
- go as NavigationGroup,
52
- uo as NavigationOption,
53
- To as NavigationSeparator,
49
+ ao as Logo,
50
+ R as Modal,
51
+ go as Navigation,
52
+ lo as NavigationGroup,
53
+ To as NavigationOption,
54
+ co as NavigationSeparator,
54
55
  s as NumberInput,
55
56
  C as ProgressBar,
56
57
  B as Radio,
@@ -61,6 +62,7 @@ export {
61
62
  O as Sidebar,
62
63
  j as Slider,
63
64
  z as Switch,
65
+ po as Table,
64
66
  H as Tag,
65
67
  K as TagSelect,
66
68
  U as TextArea,
package/dist/index.d.ts CHANGED
@@ -65,6 +65,13 @@ declare const autocompleteVariants: (props?: ({
65
65
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
66
66
  } & ClassProp) | undefined) => string;
67
67
 
68
+ declare interface BodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof bodyVariants> {
69
+ }
70
+
71
+ declare const bodyVariants: (props?: ({
72
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
73
+ } & ClassProp) | undefined) => string;
74
+
68
75
  export declare const Breadcrumb: FC<BreadcrumbProps>;
69
76
 
70
77
  declare interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants>, HTMLAttributes<HTMLOListElement> {
@@ -150,6 +157,10 @@ declare const dropdownVariants: (props?: ({
150
157
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
151
158
  } & ClassProp) | undefined) => string;
152
159
 
160
+ declare interface FilterProps extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
161
+ placeholder?: string;
162
+ }
163
+
153
164
  export declare const Footer: FC<FooterProps>;
154
165
 
155
166
  declare interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
@@ -162,6 +173,13 @@ declare const footerVariants: (props?: ({
162
173
 
163
174
  declare type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
164
175
 
176
+ declare interface HeadProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof headVariants> {
177
+ }
178
+
179
+ declare const headVariants: (props?: ({
180
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
181
+ } & ClassProp) | undefined) => string;
182
+
165
183
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
166
184
 
167
185
  declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
@@ -403,6 +421,17 @@ declare const rangeVariants: (props?: ({
403
421
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
404
422
  } & ClassProp) | undefined) => string;
405
423
 
424
+ declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
425
+ width?: string;
426
+ isSelected?: boolean;
427
+ onSelect?: () => void;
428
+ }
429
+
430
+ declare const rowVariants: (props?: ({
431
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
432
+ isSelected?: boolean | null | undefined;
433
+ } & ClassProp) | undefined) => string;
434
+
406
435
  export declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
407
436
 
408
437
  declare type SidebarChildrenProps = {
@@ -460,6 +489,20 @@ declare const switchVariants: (props?: ({
460
489
  theme?: "kubefirst" | "colony" | "civo" | null | undefined;
461
490
  } & ClassProp) | undefined) => string;
462
491
 
492
+ export declare const Table: FunctionComponent<TableProps> & {
493
+ Head: FunctionComponent<HeadProps>;
494
+ Row: FunctionComponent<RowProps>;
495
+ Filter: FunctionComponent<FilterProps>;
496
+ Body: FunctionComponent<BodyProps>;
497
+ };
498
+
499
+ declare interface TableProps extends React.HTMLAttributes<HTMLTableElement>, PropsWithChildren, VariantProps<typeof tableVariants> {
500
+ }
501
+
502
+ declare const tableVariants: (props?: ({
503
+ theme?: "kubefirst" | "colony" | "civo" | null | undefined;
504
+ } & ClassProp) | undefined) => string;
505
+
463
506
  export declare const Tag: FC<TagProps>;
464
507
 
465
508
  declare type TagProps = {
package/dist/index.js CHANGED
@@ -7,9 +7,9 @@ import { Card as n } from "./components/Card/Card.js";
7
7
  import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
8
8
  import { Dropdown as s } from "./components/Dropdown/Dropdown.js";
9
9
  import { Input as h } from "./components/Input/Input.js";
10
- import { M as C } from "./Modal-B-E9uaA6.js";
11
- import { NumberInput as R } from "./components/NumberInput/NumberInput.js";
12
- import { ProgressBar as b } from "./components/ProgressBar/ProgressBar.js";
10
+ import { M as b } from "./Modal-B-E9uaA6.js";
11
+ import { NumberInput as N } from "./components/NumberInput/NumberInput.js";
12
+ import { ProgressBar as S } from "./components/ProgressBar/ProgressBar.js";
13
13
  import { Radio as B } from "./components/Radio/Radio.js";
14
14
  import { RadioCard as G } from "./components/RadioCard/RadioCard.js";
15
15
  import { RadioCardGroup as k } from "./components/RadioCardGroup/RadioCardGroup.js";
@@ -32,11 +32,12 @@ import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
32
32
  import { Loading as go } from "./components/Loading/Loading.js";
33
33
  import { Typography as uo } from "./components/Typography/Typography.js";
34
34
  import { Divider as To } from "./components/Divider/Divider.js";
35
- import { ThemeContext as co } from "./contexts/theme.context.js";
36
- import { useTheme as vo } from "./contexts/theme.hook.js";
37
- import { ThemeProvider as No } from "./contexts/theme.provider.js";
38
- import { useToggle as So } from "./hooks/useToggle.js";
39
- import { konstructPlugin as Ao } from "./plugins/konstruct.js";
35
+ import { Table as co } from "./components/Table/Table.js";
36
+ import { ThemeContext as vo } from "./contexts/theme.context.js";
37
+ import { useTheme as Co } from "./contexts/theme.hook.js";
38
+ import { ThemeProvider as Ro } from "./contexts/theme.provider.js";
39
+ import { useToggle as Ao } from "./hooks/useToggle.js";
40
+ import { konstructPlugin as Do } from "./plugins/konstruct.js";
40
41
  export {
41
42
  e as Alert,
42
43
  p as AlertDialog,
@@ -51,13 +52,13 @@ export {
51
52
  h as Input,
52
53
  go as Loading,
53
54
  j as Logo,
54
- C as Modal,
55
+ b as Modal,
55
56
  z as Navigation,
56
57
  H as NavigationGroup,
57
58
  K as NavigationOption,
58
59
  U as NavigationSeparator,
59
- R as NumberInput,
60
- b as ProgressBar,
60
+ N as NumberInput,
61
+ S as ProgressBar,
61
62
  B as Radio,
62
63
  G as RadioCard,
63
64
  k as RadioCardGroup,
@@ -66,15 +67,16 @@ export {
66
67
  W as Sidebar,
67
68
  Y as Slider,
68
69
  _ as Switch,
70
+ co as Table,
69
71
  oo as Tag,
70
72
  eo as TagSelect,
71
73
  po as TextArea,
72
- co as ThemeContext,
73
- No as ThemeProvider,
74
+ vo as ThemeContext,
75
+ Ro as ThemeProvider,
74
76
  xo as Toast,
75
77
  ao as Tooltip,
76
78
  uo as Typography,
77
- Ao as konstructPlugin,
78
- vo as useTheme,
79
- So as useToggle
79
+ Do as konstructPlugin,
80
+ Co as useTheme,
81
+ Ao as useToggle
80
82
  };
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.0.12-alpha.12",
5
+ "version": "0.0.12-alpha.13",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.0.12-alpha.13",
5
+ "version": "0.0.12-alpha.14",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",