nitro-web 0.0.11 → 0.0.12
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/.eslintrc.json +4 -19
- package/_example/.env +1 -1
- package/_example/client/config.ts +2 -1
- package/_example/client/index.ts +6 -24
- package/_example/components/index.tsx +1 -1
- package/_example/package.json +0 -1
- package/_example/server/config.js +6 -7
- package/_example/tailwind.config.js +1 -1
- package/_example/tsconfig.json +5 -1
- package/_example/types.ts +1 -0
- package/client/{app.js → app.tsx} +101 -99
- package/client/globals.ts +42 -0
- package/client/index.ts +52 -0
- package/client/store.ts +31 -0
- package/components/auth/auth.api.js +3 -2
- package/components/auth/{reset.jsx → reset.tsx} +21 -23
- package/components/auth/{signin.jsx → signin.tsx} +14 -16
- package/components/auth/{signup.jsx → signup.tsx} +15 -17
- package/components/billing/stripe.api.js +2 -1
- package/components/dashboard/{dashboard.jsx → dashboard.tsx} +3 -3
- package/components/partials/element/{accordion.jsx → accordion.tsx} +21 -13
- package/components/partials/element/avatar.tsx +40 -0
- package/components/partials/element/{button.jsx → button.tsx} +20 -16
- package/components/partials/element/{dropdown.jsx → dropdown.tsx} +32 -30
- package/components/partials/element/{github-link.jsx → github-link.tsx} +3 -3
- package/components/partials/element/{initials.jsx → initials.tsx} +11 -2
- package/components/partials/element/{message.jsx → message.tsx} +22 -23
- package/components/partials/element/{modal.jsx → modal.tsx} +4 -3
- package/components/partials/element/{sidebar.jsx → sidebar.tsx} +14 -7
- package/components/partials/element/{tooltip.jsx → tooltip.tsx} +11 -3
- package/components/partials/element/{topbar.jsx → topbar.tsx} +9 -7
- package/components/partials/form/{checkbox.jsx → checkbox.tsx} +13 -13
- package/components/partials/form/drop-handler.tsx +68 -0
- package/components/partials/form/{drop.jsx → drop.tsx} +51 -33
- package/components/partials/form/form-error.tsx +27 -0
- package/components/partials/form/{input-color.jsx → input-color.tsx} +27 -15
- package/components/partials/form/{input-currency.jsx → input-currency.tsx} +37 -32
- package/components/partials/form/{input-date.jsx → input-date.tsx} +4 -3
- package/components/partials/form/{input.jsx → input.tsx} +35 -19
- package/components/partials/form/{location.jsx → location.tsx} +21 -8
- package/components/partials/form/{select.jsx → select.tsx} +142 -143
- package/components/partials/form/{toggle.jsx → toggle.tsx} +10 -2
- package/components/partials/{is-first-render.js → is-first-render.ts} +1 -2
- package/components/partials/layout/layout1.tsx +29 -0
- package/components/partials/layout/{layout2.jsx → layout2.tsx} +3 -3
- package/components/partials/{styleguide.jsx → styleguide.tsx} +16 -19
- package/components/settings/{settings-account.jsx → settings-account.tsx} +9 -13
- package/components/settings/{settings-business.jsx → settings-business.tsx} +7 -8
- package/components/settings/{settings-team--member.jsx → settings-team--member.tsx} +4 -11
- package/components/settings/{settings-team.jsx → settings-team.tsx} +4 -8
- package/components/settings/settings.api.js +1 -0
- package/package.json +14 -28
- package/readme.md +1 -1
- package/server/email/index.js +2 -1
- package/server/index.js +1 -0
- package/server/models/company.js +2 -1
- package/server/models/user.js +2 -1
- package/server/router.js +3 -2
- package/tsconfig.json +31 -0
- package/types/required-globals.d.ts +39 -0
- package/types/util.d.ts +12 -2
- package/types/util.d.ts.map +1 -1
- package/types.ts +43 -0
- package/util.js +14 -34
- package/webpack.config.js +23 -4
- package/_example/types/index.d.ts +0 -13
- package/_example/types/twin.d.ts +0 -19
- package/client/index.js +0 -44
- package/components/partials/element/avatar.jsx +0 -31
- package/components/partials/form/drop-handler.jsx +0 -62
- package/components/partials/form/form-error.jsx +0 -21
- package/components/partials/layout/layout1.jsx +0 -38
- package/types/client/app.d.ts +0 -2
- package/types/client/app.d.ts.map +0 -1
- package/types/client/index.d.ts +0 -29
- package/types/client/index.d.ts.map +0 -1
- package/types/components/auth/reset.d.ts +0 -3
- package/types/components/auth/reset.d.ts.map +0 -1
- package/types/components/auth/signin.d.ts +0 -4
- package/types/components/auth/signin.d.ts.map +0 -1
- package/types/components/auth/signup.d.ts +0 -4
- package/types/components/auth/signup.d.ts.map +0 -1
- package/types/components/dashboard/dashboard.d.ts +0 -4
- package/types/components/dashboard/dashboard.d.ts.map +0 -1
- package/types/components/partials/element/accordion.d.ts +0 -7
- package/types/components/partials/element/accordion.d.ts.map +0 -1
- package/types/components/partials/element/avatar.d.ts +0 -8
- package/types/components/partials/element/avatar.d.ts.map +0 -1
- package/types/components/partials/element/button.d.ts +0 -11
- package/types/components/partials/element/button.d.ts.map +0 -1
- package/types/components/partials/element/dropdown.d.ts +0 -17
- package/types/components/partials/element/dropdown.d.ts.map +0 -1
- package/types/components/partials/element/initials.d.ts +0 -9
- package/types/components/partials/element/initials.d.ts.map +0 -1
- package/types/components/partials/element/message.d.ts +0 -2
- package/types/components/partials/element/message.d.ts.map +0 -1
- package/types/components/partials/element/modal.d.ts +0 -10
- package/types/components/partials/element/modal.d.ts.map +0 -1
- package/types/components/partials/element/sidebar.d.ts +0 -6
- package/types/components/partials/element/sidebar.d.ts.map +0 -1
- package/types/components/partials/element/tooltip.d.ts +0 -8
- package/types/components/partials/element/tooltip.d.ts.map +0 -1
- package/types/components/partials/element/topbar.d.ts +0 -8
- package/types/components/partials/element/topbar.d.ts.map +0 -1
- package/types/components/partials/form/checkbox.d.ts +0 -14
- package/types/components/partials/form/checkbox.d.ts.map +0 -1
- package/types/components/partials/form/drop-handler.d.ts +0 -6
- package/types/components/partials/form/drop-handler.d.ts.map +0 -1
- package/types/components/partials/form/drop.d.ts +0 -11
- package/types/components/partials/form/drop.d.ts.map +0 -1
- package/types/components/partials/form/form-error.d.ts +0 -6
- package/types/components/partials/form/form-error.d.ts.map +0 -1
- package/types/components/partials/form/input-color.d.ts +0 -10
- package/types/components/partials/form/input-color.d.ts.map +0 -1
- package/types/components/partials/form/input-currency.d.ts +0 -10
- package/types/components/partials/form/input-currency.d.ts.map +0 -1
- package/types/components/partials/form/input.d.ts +0 -9
- package/types/components/partials/form/input.d.ts.map +0 -1
- package/types/components/partials/form/location.d.ts +0 -12
- package/types/components/partials/form/location.d.ts.map +0 -1
- package/types/components/partials/form/select.d.ts +0 -27
- package/types/components/partials/form/select.d.ts.map +0 -1
- package/types/components/partials/form/toggle.d.ts +0 -9
- package/types/components/partials/form/toggle.d.ts.map +0 -1
- package/types/components/partials/is-first-render.d.ts +0 -2
- package/types/components/partials/is-first-render.d.ts.map +0 -1
- package/types/components/partials/layout/layout1.d.ts +0 -13
- package/types/components/partials/layout/layout1.d.ts.map +0 -1
- package/types/components/partials/layout/layout2.d.ts +0 -4
- package/types/components/partials/layout/layout2.d.ts.map +0 -1
- package/types/components/partials/not-found.d.ts +0 -2
- package/types/components/partials/not-found.d.ts.map +0 -1
- package/types/components/partials/styleguide.d.ts +0 -4
- package/types/components/partials/styleguide.d.ts.map +0 -1
- package/types/components/settings/settings-account.d.ts +0 -6
- package/types/components/settings/settings-account.d.ts.map +0 -1
- package/types/components/settings/settings-business.d.ts +0 -4
- package/types/components/settings/settings-business.d.ts.map +0 -1
- package/types/components/settings/settings-team--member.d.ts +0 -5
- package/types/components/settings/settings-team--member.d.ts.map +0 -1
- package/types/components/settings/settings-team.d.ts +0 -4
- package/types/components/settings/settings-team.d.ts.map +0 -1
- /package/components/partials/{not-found.jsx → not-found.tsx} +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { css } from 'twin.macro'
|
|
2
|
-
import { Outlet } from 'react-router-dom'
|
|
3
|
-
import { Message } from '../element/message.jsx'
|
|
4
|
-
import { Sidebar } from '../element/sidebar.jsx'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Dashboard, app screens (only the <Outlet/> receives `params` and `location`)
|
|
8
|
-
* @param {object} props
|
|
9
|
-
* @param {JSX.Element} props.Logo
|
|
10
|
-
* @param {array} [props.menu] - [{name, to, Icon}]
|
|
11
|
-
* @param {array} [props.links] - [{name, to, initial}]
|
|
12
|
-
*/
|
|
13
|
-
export function Layout1({ Logo, menu, links }) {
|
|
14
|
-
const [store] = sharedStore.useTracked()
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<div css={style} class="bg-[#F3F3F3]">
|
|
18
|
-
<Message />
|
|
19
|
-
<div class="flex-1">
|
|
20
|
-
<div class="wrapper lg:flex min-h-[100%] w-[100%] bg-[#FDFDFD] shadow-[0_0_40px_0_rgb(237_237_237)]">
|
|
21
|
-
<Sidebar Logo={Logo} menu={menu} links={links} />
|
|
22
|
-
<div class="py-10 px-14 flex-1" key={store?.company?._id}>
|
|
23
|
-
<Outlet />
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const style = () => css`
|
|
32
|
-
.wrapper {
|
|
33
|
-
position: relative;
|
|
34
|
-
max-width: 1800px;
|
|
35
|
-
margin: 0 auto;
|
|
36
|
-
}
|
|
37
|
-
`
|
|
38
|
-
|
package/types/client/app.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../client/app.js"],"names":[],"mappings":"AAKA,mEAeC"}
|
package/types/client/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from "./app.js";
|
|
2
|
-
export * from "../util.js";
|
|
3
|
-
export * as util from "../util.js";
|
|
4
|
-
export { Signin } from "../components/auth/signin.jsx";
|
|
5
|
-
export { Signup } from "../components/auth/signup.jsx";
|
|
6
|
-
export { Dashboard } from "../components/dashboard/dashboard.jsx";
|
|
7
|
-
export { NotFound } from "../components/partials/not-found.jsx";
|
|
8
|
-
export { Styleguide } from "../components/partials/styleguide.jsx";
|
|
9
|
-
export { Accordion } from "../components/partials/element/accordion.jsx";
|
|
10
|
-
export { Avatar } from "../components/partials/element/avatar.jsx";
|
|
11
|
-
export { Button } from "../components/partials/element/button.jsx";
|
|
12
|
-
export { Dropdown } from "../components/partials/element/dropdown.jsx";
|
|
13
|
-
export { Initials } from "../components/partials/element/initials.jsx";
|
|
14
|
-
export { Message } from "../components/partials/element/message.jsx";
|
|
15
|
-
export { Sidebar } from "../components/partials/element/sidebar.jsx";
|
|
16
|
-
export { Tooltip } from "../components/partials/element/tooltip.jsx";
|
|
17
|
-
export { Topbar } from "../components/partials/element/topbar.jsx";
|
|
18
|
-
export { Checkbox } from "../components/partials/form/checkbox.jsx";
|
|
19
|
-
export { Drop } from "../components/partials/form/drop.jsx";
|
|
20
|
-
export { FormError } from "../components/partials/form/form-error.jsx";
|
|
21
|
-
export { Input } from "../components/partials/form/input.jsx";
|
|
22
|
-
export { Location } from "../components/partials/form/location.jsx";
|
|
23
|
-
export { Select } from "../components/partials/form/select.jsx";
|
|
24
|
-
export { Toggle } from "../components/partials/form/toggle.jsx";
|
|
25
|
-
export { Layout1 } from "../components/partials/layout/layout1.jsx";
|
|
26
|
-
export { Layout2 } from "../components/partials/layout/layout2.jsx";
|
|
27
|
-
export { IsFirstRender } from "../components/partials/is-first-render.js";
|
|
28
|
-
export { ResetInstructions, ResetPassword } from "../components/auth/reset.jsx";
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../client/index.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../../components/auth/reset.jsx"],"names":[],"mappings":"AAMA,6EAmCC;AAED,yEA4CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signin.d.ts","sourceRoot":"","sources":["../../../components/auth/signin.jsx"],"names":[],"mappings":"AAMA;;4CAmEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signup.d.ts","sourceRoot":"","sources":["../../../components/auth/signup.jsx"],"names":[],"mappings":"AAMA;;4CAuDC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../components/dashboard/dashboard.jsx"],"names":[],"mappings":"AAEA;;4CAsBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/accordion.jsx"],"names":[],"mappings":"AAGA;;;;;4CA8EC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/avatar.jsx"],"names":[],"mappings":"AAKA;;;;;;4CAwBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {'primary'|'secondary'|'white'|'primary-sm'|'secondary-sm'|'white-sm'} [type='primary']
|
|
3
|
-
* @param {string} [className]
|
|
4
|
-
* @param {boolean} [isLoading]
|
|
5
|
-
* @param {React.ReactNode|string} [IconLeft]
|
|
6
|
-
* @param {React.ReactNode|string} [IconRight]
|
|
7
|
-
* @param {React.ReactNode|string} [IconRight2]
|
|
8
|
-
* @param {React.ReactNode|string} [children]
|
|
9
|
-
*/
|
|
10
|
-
export function Button({ color, className, isLoading, IconLeft, IconRight, IconRight2, children, ...props }?: "primary" | "secondary" | "white" | "primary-sm" | "secondary-sm" | "white-sm"): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/button.jsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,8GARW,SAAS,GAAC,WAAW,GAAC,OAAO,GAAC,YAAY,GAAC,cAAc,GAAC,UAAU,2CA8D9E"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dropdown component
|
|
3
|
-
*
|
|
4
|
-
* @param {boolean} animate
|
|
5
|
-
* @param {React.ReactNode} children
|
|
6
|
-
* @param {string} className
|
|
7
|
-
* @param {'bottom-left'|'bottom-right'|'top-left'|'top-right'} [dir='bottom-left'] - The direction of the menu
|
|
8
|
-
* @param {[{ label, onClick, isSelected, icon, className }]} options - Menu options
|
|
9
|
-
* @param {boolean} isHoverable - Whether the dropdown is hoverable
|
|
10
|
-
* @param {number} minWidth - The minimum width of the menu
|
|
11
|
-
* @param {React.ReactNode} menuChildren - The content to render inside the top of the dropdown
|
|
12
|
-
* @param {boolean} menuIsOpen - Whether the menu is open
|
|
13
|
-
* @param {boolean} menuToggles - Whether the menu toggles
|
|
14
|
-
* @param {function} toggleCallback - The callback function to call when the menu is toggled
|
|
15
|
-
*/
|
|
16
|
-
export const Dropdown: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
17
|
-
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/dropdown.jsx"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,qGAyGE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function Initials({ icon, isBig, isMedium, isSmall, isRound, className }: {
|
|
2
|
-
icon: any;
|
|
3
|
-
isBig: any;
|
|
4
|
-
isMedium: any;
|
|
5
|
-
isSmall: any;
|
|
6
|
-
isRound: any;
|
|
7
|
-
className: any;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=initials.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/initials.jsx"],"names":[],"mappings":"AAEA;;;;;;;4CAkBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/message.jsx"],"names":[],"mappings":"AAMA,mEAqHC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function Modal({ show, setShow, children, className, maxWidth, minHeight, dismissable }: {
|
|
2
|
-
show: any;
|
|
3
|
-
setShow: any;
|
|
4
|
-
children: any;
|
|
5
|
-
className: any;
|
|
6
|
-
maxWidth: any;
|
|
7
|
-
minHeight: any;
|
|
8
|
-
dismissable?: boolean;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/modal.jsx"],"names":[],"mappings":"AAKA;;;;;;;;4CA4GC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/sidebar.jsx"],"names":[],"mappings":"AAkBA;;;;4CA+CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/tooltip.jsx"],"names":[],"mappings":"AAGA;;;;;;4CAaC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"topbar.d.ts","sourceRoot":"","sources":["../../../../components/partials/element/topbar.jsx"],"names":[],"mappings":"AAAA;;;;;;4CAwBC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checkbox/radio/toggle component
|
|
3
|
-
* @param {string} name - The name of the checkbox
|
|
4
|
-
* @param {string} [id] - The id of the checkbox (used for radios)
|
|
5
|
-
* @param {'sm' | 'md'} [size='sm'] - The size of the toggle
|
|
6
|
-
* @param {string} [subtext]
|
|
7
|
-
* @param {string} [text]
|
|
8
|
-
* @param {'checkbox' | 'radio' | 'toggle'} [type='checkbox']
|
|
9
|
-
* @param {object} [props] - input props
|
|
10
|
-
*
|
|
11
|
-
* @link https://tailwindui.com/components/application-ui/forms/checkboxes#component-744ed4fa65ba36b925701eb4da5c6e31
|
|
12
|
-
*/
|
|
13
|
-
export function Checkbox({ name, id, size, subtext, text, type, ...props }: string): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/checkbox.jsx"],"names":[],"mappings":"AACA;;;;;;;;;;;GAWG;AACH,4EAVW,MAAM,2CAsEhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drop-handler.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/drop-handler.jsx"],"names":[],"mappings":"AAAO;;;;4CA6DN"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function Drop({ awsUrl, className, id, name, onChange, multiple, state, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
awsUrl: any;
|
|
4
|
-
className: any;
|
|
5
|
-
id: any;
|
|
6
|
-
name: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
multiple: any;
|
|
9
|
-
state: any;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=drop.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drop.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/drop.jsx"],"names":[],"mappings":"AAIA;;;;;;;;;4CAyHC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-error.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/form-error.jsx"],"names":[],"mappings":"AAAA;;;;4CAoBC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function InputColor({ className, defaultColor, iconEl, id, onChange, value, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
className: any;
|
|
4
|
-
defaultColor?: string;
|
|
5
|
-
iconEl: any;
|
|
6
|
-
id: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
value: any;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=input-color.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-color.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/input-color.jsx"],"names":[],"mappings":"AAOA;;;;;;;;4CA+BC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {string} id - field name or path on state
|
|
3
|
-
* @param {object} config - e.g. { currencies: { nzd: { symbol: '$', digits: 2 } } }
|
|
4
|
-
* @param {string} [currency] - currency iso
|
|
5
|
-
* @param {function} [onChange] - e.g. (event) => onInputChange(event)
|
|
6
|
-
* @param {string} [placeholder] - e.g. 'Amount'
|
|
7
|
-
* @param {cents} [value] - e.g. 123 (input is always controlled if state is passed in)
|
|
8
|
-
*/
|
|
9
|
-
export function InputCurrency({ id, config, className, currency, onChange, placeholder, value }: string): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=input-currency.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-currency.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/input-currency.jsx"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iGAPW,MAAM,2CAkIhB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Input
|
|
3
|
-
* @param {string} name - field name or path on state (used to match errors), e.g. 'date', 'company.email'
|
|
4
|
-
* @param {object} state - State object to get the value, and check errors against
|
|
5
|
-
* @param {string} [id] - not required, name used if not provided
|
|
6
|
-
* @param {('password'|'email'|'text'|'date'|'filter'|'search'|'color'|'textarea'|'currency')} [type='text']
|
|
7
|
-
*/
|
|
8
|
-
export function Input({ name, state, id, type, ...props }: string): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/input.jsx"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,2DALW,MAAM,2CAkFhB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function Location({ clear, id, name, onInput, onSelect, placeholder, placeTypes, value, googleMapsApiKey }: {
|
|
2
|
-
clear: any;
|
|
3
|
-
id: any;
|
|
4
|
-
name: any;
|
|
5
|
-
onInput: any;
|
|
6
|
-
onSelect: any;
|
|
7
|
-
placeholder: any;
|
|
8
|
-
placeTypes: any;
|
|
9
|
-
value: any;
|
|
10
|
-
googleMapsApiKey: any;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/location.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;4CA2KC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function getSelectStyle({ name, isFocused, isSelected, hasError, usePrefixes }: {
|
|
2
|
-
name: any;
|
|
3
|
-
isFocused: any;
|
|
4
|
-
isSelected: any;
|
|
5
|
-
hasError: any;
|
|
6
|
-
usePrefixes: any;
|
|
7
|
-
}): string;
|
|
8
|
-
/**
|
|
9
|
-
* @param {string} name - field name or path on state (used to match errors), e.g. 'date', 'company.email'
|
|
10
|
-
* @param {string} [minMenuWidth] - width of the dropdown menu
|
|
11
|
-
* @param {string} [inputId] - name used if not provided
|
|
12
|
-
* @param {function} [onChange] - e.g. (event) => onInputChange(event)
|
|
13
|
-
* @param {object} [state] - object to get value from, and check errors against
|
|
14
|
-
* @param {string} [type] - speical types: 'country', 'customer', 'customer-big'
|
|
15
|
-
*
|
|
16
|
-
* react-select prop quick reference (https://react-select.com/props#api):
|
|
17
|
-
* isDisabled={false}
|
|
18
|
-
* isMulti={false}
|
|
19
|
-
* isSearchable={true}
|
|
20
|
-
* options={[{ value: 'chocolate', label: 'Chocolate' }]}
|
|
21
|
-
* placeholder="Select a color"
|
|
22
|
-
* value={options.find(o => o.code == state.color)} // to clear you need to set to null, not undefined
|
|
23
|
-
* isClearable={false}
|
|
24
|
-
* menuIsOpen={false}
|
|
25
|
-
*/
|
|
26
|
-
export function Select({ inputId, minMenuWidth, name, prefix, onChange, options, state, type, ...props }: string): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/select.jsx"],"names":[],"mappings":"AA8CA;;;;;;WAiBC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,0GAjBW,MAAM,2CA6IhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../components/partials/form/toggle.jsx"],"names":[],"mappings":"AAAA;;;;;;;4CA6CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-first-render.d.ts","sourceRoot":"","sources":["../../../components/partials/is-first-render.js"],"names":[],"mappings":"AAAA,+CAcC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard, app screens (only the <Outlet/> receives `params` and `location`)
|
|
3
|
-
* @param {object} props
|
|
4
|
-
* @param {JSX.Element} props.Logo
|
|
5
|
-
* @param {array} [props.menu] - [{name, to, Icon}]
|
|
6
|
-
* @param {array} [props.links] - [{name, to, initial}]
|
|
7
|
-
*/
|
|
8
|
-
export function Layout1({ Logo, menu, links }: {
|
|
9
|
-
Logo: JSX.Element;
|
|
10
|
-
menu?: any[];
|
|
11
|
-
links?: any[];
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=layout1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout1.d.ts","sourceRoot":"","sources":["../../../../components/partials/layout/layout1.jsx"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,+CAJG;IAA2B,IAAI,EAAvB,GAAG,CAAC,OAAO;IACG,IAAI;IACJ,KAAK;CAC7B,2CAiBA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout2.d.ts","sourceRoot":"","sources":["../../../../components/partials/layout/layout2.jsx"],"names":[],"mappings":"AAKA;;4CA4BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../../components/partials/not-found.jsx"],"names":[],"mappings":"AAAA,oEAMC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styleguide.d.ts","sourceRoot":"","sources":["../../../components/partials/styleguide.jsx"],"names":[],"mappings":"AASA;;4CAkPC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-account.d.ts","sourceRoot":"","sources":["../../../components/settings/settings-account.jsx"],"names":[],"mappings":"AAUA,2EAyEC;AAED;;;4CA6CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-business.d.ts","sourceRoot":"","sources":["../../../components/settings/settings-business.jsx"],"names":[],"mappings":"AASA;;4CA2GC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-team--member.d.ts","sourceRoot":"","sources":["../../../components/settings/settings-team--member.jsx"],"names":[],"mappings":"AASA;;;4CA+FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-team.d.ts","sourceRoot":"","sources":["../../../components/settings/settings-team.jsx"],"names":[],"mappings":"AAUA;;4CAiEC"}
|
|
File without changes
|