@kanda-libs/ks-design-library-new 0.0.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.
- package/LICENSE +21 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueBlackItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueBoldItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraBoldItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraLightItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueHeavyItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueLightItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueMediumItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueRegularItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueSemiBoldItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueThinItalic.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueBlack.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueBold.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraBold.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraLight.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueHeavy.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueLight.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueMedium.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueRegular.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueSemiBold.woff +0 -0
- package/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueThin.woff +0 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.esm.mjs +2 -0
- package/dist/index.esm.mjs.map +7 -0
- package/dist/library.css +2053 -0
- package/package.json +117 -0
- package/src/.DS_Store +0 -0
- package/src/@types/assets/index.d.ts +26 -0
- package/src/@types/index.d.ts +207 -0
- package/src/common/helpers.ts +15 -0
- package/src/components/Table/components/Cell/constants.ts +11 -0
- package/src/components/Table/components/Cell/index.tsx +36 -0
- package/src/components/Table/components/Cell/useCellClassNames.ts +23 -0
- package/src/components/Table/components/HeaderButton/Button.tsx +18 -0
- package/src/components/Table/components/HeaderButton/Wrapper.tsx +22 -0
- package/src/components/Table/components/HeaderButton/constants.ts +24 -0
- package/src/components/Table/components/HeaderButton/index.tsx +7 -0
- package/src/components/Table/components/HeaderButton/useWrapperProps.ts +31 -0
- package/src/components/Table/components/HeaderColumn/constants.ts +26 -0
- package/src/components/Table/components/HeaderColumn/index.tsx +38 -0
- package/src/components/Table/components/HeaderColumn/useHeaderColumnProps.ts +31 -0
- package/src/components/Table/components/HeaderGroup/constants.ts +3 -0
- package/src/components/Table/components/HeaderGroup/index.tsx +40 -0
- package/src/components/Table/components/HeaderGroup/useHeaderGroupProps.ts +27 -0
- package/src/components/Table/components/Row/constants.ts +7 -0
- package/src/components/Table/components/Row/index.tsx +40 -0
- package/src/components/Table/components/Row/useRowClassNames.ts +19 -0
- package/src/components/Table/components/SearchInput/index.tsx +22 -0
- package/src/components/Table/components/SearchInput/useSearchInput.ts +30 -0
- package/src/components/Table/helpers/search.ts +96 -0
- package/src/components/Table/index.tsx +64 -0
- package/src/components/Table/useTableProps.ts +54 -0
- package/src/components/index.tsx +1 -0
- package/src/index.ts +2 -0
- package/src/moduleTypes.d.ts +1 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueBlackItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueBoldItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraBoldItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraLightItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueHeavyItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueLightItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueMediumItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueRegularItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueSemiBoldItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/italic/GalanoGrotesqueThinItalic.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueBlack.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueBold.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraBold.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraLight.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueHeavy.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueLight.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueMedium.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueRegular.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueSemiBold.woff +0 -0
- package/src/styles/fonts/GalanoGrotesque/regular/GalanoGrotesqueThin.woff +0 -0
- package/src/styles/index.css +2236 -0
- package/src/styles/ks-design-library.css +2236 -0
- package/src/styles/library.css +2053 -0
- package/src/styles/tailwind.css +915 -0
- package/src/theme/plugins/tailwind.plugin.caret-color.js +32 -0
- package/src/theme/plugins/tailwind.plugin.field-error.js +10 -0
- package/src/theme/plugins/tailwind.plugin.field-focus.js +10 -0
- package/src/theme/plugins/tailwind.plugin.field-loading.js +10 -0
- package/src/theme/plugins/tailwind.plugin.group-active.js +10 -0
- package/src/theme/plugins/tailwind.plugin.important.js +14 -0
- package/src/theme/plugins/tailwind.plugin.label-check.js +10 -0
- package/src/theme/plugins/tailwind.plugin.text-style.js +213 -0
- package/src/theme/postcss/tailwind.postcss.config.js +7 -0
- package/src/theme/themeConfig.js +339 -0
- package/src/types.d.ts +58 -0
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
export type StringIndexedObject<T = any> = {
|
|
4
|
+
[key: string]: T;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type Variant = string | boolean | number;
|
|
8
|
+
export type Variants = StringIndexedObject<Variant>;
|
|
9
|
+
|
|
10
|
+
export type ClassNames = StringIndexedObject<
|
|
11
|
+
StringIndexedObject<string | StringIndexedObject<string>>
|
|
12
|
+
>;
|
|
13
|
+
|
|
14
|
+
export type WindowWithHelpCrunch = Window & {
|
|
15
|
+
HelpCrunch?: (name: string, options?: StringIndexedObject | string) => void;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type ButtonOnClick = (event: MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
|
|
20
|
+
export type PostiveOrNegativeNumber = number | never;
|
|
21
|
+
|
|
22
|
+
declare global {
|
|
23
|
+
interface Window {
|
|
24
|
+
HelpCrunch: (name: string, options?: StringIndexedObject | string) => void;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type EventType =
|
|
29
|
+
| 'page-view'
|
|
30
|
+
| 'signup-attempted'
|
|
31
|
+
| 'signup-succeeded'
|
|
32
|
+
| 'signup-failed'
|
|
33
|
+
| 'login-attempted'
|
|
34
|
+
| 'login-succeeded'
|
|
35
|
+
| 'login-failed'
|
|
36
|
+
| 'button-interacted'
|
|
37
|
+
| 'form-filled'
|
|
38
|
+
| 'form-submitted'
|
|
39
|
+
| 'api-attempted'
|
|
40
|
+
| 'api-succeeded'
|
|
41
|
+
| 'api-failed'
|
|
42
|
+
| 'comms-sent'
|
|
43
|
+
| 'onboarding-registered'
|
|
44
|
+
| 'onboarding-legacy'
|
|
45
|
+
| 'onboarding-billing-subscribed'
|
|
46
|
+
| 'onboarding-billing-referred'
|
|
47
|
+
| 'onboarding-billing-cancelled'
|
|
48
|
+
| 'onboarding-director-info-provided'
|
|
49
|
+
| 'onboarding-director-verified'
|
|
50
|
+
| 'onboarding-director-pending'
|
|
51
|
+
| 'onboarding-director-failed'
|
|
52
|
+
| 'onboarding-onboarded'
|
|
53
|
+
| 'onboarding-insurance-uploaded'
|
|
54
|
+
| 'onboarding-contract-signed'
|
|
55
|
+
| 'onboarding-completed'
|
|
56
|
+
| 'onboarding-verified'
|
|
57
|
+
| 'onboarding-rejected'
|
|
58
|
+
| 'onboarding-declined';
|