@ya-accelerators/nextjs-framework 0.0.99 → 0.0.101
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/constants.d.ts +4 -0
- package/dist/constants.js +4 -0
- package/dist/constants.js.map +1 -1
- package/dist/env.client.d.ts +2 -2
- package/dist/env.client.js +1 -1
- package/dist/env.client.js.map +1 -1
- package/dist/env.d.ts +2 -2
- package/dist/env.js +1 -5
- package/dist/env.js.map +1 -1
- package/dist/hooks/anchor/index.d.ts +13 -0
- package/dist/hooks/anchor/index.js +65 -0
- package/dist/hooks/anchor/index.js.map +1 -0
- package/dist/hooks/date/index.js.map +1 -1
- package/dist/hooks/loading/index.jsx +1 -1
- package/dist/hooks/loading/index.jsx.map +1 -1
- package/dist/hooks/modal/index.d.ts +1 -1
- package/dist/hooks/modal/index.jsx +1 -1
- package/dist/hooks/modal/index.jsx.map +1 -1
- package/dist/hooks/mounted/index.js +0 -4
- package/dist/hooks/mounted/index.js.map +1 -1
- package/dist/hooks/toast/index.d.ts +3 -1
- package/dist/hooks/toast/index.jsx +9 -9
- package/dist/hooks/toast/index.jsx.map +1 -1
- package/dist/hooks/uploads/index.d.ts +41 -0
- package/dist/hooks/uploads/index.js +174 -0
- package/dist/hooks/uploads/index.js.map +1 -0
- package/dist/i18n/get-message-fallback.d.ts +0 -1
- package/dist/i18n/get-message-fallback.js +0 -1
- package/dist/i18n/get-message-fallback.js.map +1 -1
- package/dist/i18n/index.js +1 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/strings/ja-JP.json +12 -4
- package/dist/lib/cookie/index.d.ts +1 -1
- package/dist/lib/cookie/index.js +0 -1
- package/dist/lib/cookie/index.js.map +1 -1
- package/dist/lib/next-auth/index.js +0 -11
- package/dist/lib/next-auth/index.js.map +1 -1
- package/dist/lib/trpc/index.d.ts +3 -2
- package/dist/lib/trpc/index.js +39 -11
- package/dist/lib/trpc/index.js.map +1 -1
- package/dist/lib/uploads/index.js +14 -18
- package/dist/lib/uploads/index.js.map +1 -1
- package/dist/logger/index.d.ts +2 -1
- package/dist/logger/index.js +0 -6
- package/dist/logger/index.js.map +1 -1
- package/dist/styles/globals.css +77 -0
- package/dist/styles/tailwind.config.d.ts +365 -359
- package/dist/styles/tailwind.config.js +25 -20
- package/dist/styles/tailwind.config.js.map +1 -1
- package/dist/styles/tailwind.config.ts +28 -21
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/component/button/base.d.ts +4 -4
- package/dist/ui/component/button/base.jsx +5 -5
- package/dist/ui/component/button/base.jsx.map +1 -1
- package/dist/ui/component/button/colored/index.d.ts +2 -2
- package/dist/ui/component/button/image/index.d.ts +2 -2
- package/dist/ui/component/button/index.d.ts +4 -9
- package/dist/ui/component/button/index.jsx +0 -5
- package/dist/ui/component/button/index.jsx.map +1 -1
- package/dist/ui/component/card/index.jsx +1 -1
- package/dist/ui/component/card/index.jsx.map +1 -1
- package/dist/ui/component/icon/index.d.ts +2 -2
- package/dist/ui/component/index.d.ts +72 -75
- package/dist/ui/component/index.js +4 -4
- package/dist/ui/component/index.js.map +1 -1
- package/dist/ui/component/progressBar/index.d.ts +9 -0
- package/dist/ui/component/progressBar/index.jsx +15 -0
- package/dist/ui/component/progressBar/index.jsx.map +1 -0
- package/dist/ui/component/skeleton/index.d.ts +10 -0
- package/dist/ui/component/skeleton/index.jsx +35 -0
- package/dist/ui/component/skeleton/index.jsx.map +1 -0
- package/dist/ui/component/typography/H1/index.d.ts +2 -3
- package/dist/ui/component/typography/H1/index.jsx +2 -2
- package/dist/ui/component/typography/H1/index.jsx.map +1 -1
- package/dist/ui/component/typography/H2/index.d.ts +2 -3
- package/dist/ui/component/typography/H2/index.jsx +2 -2
- package/dist/ui/component/typography/H2/index.jsx.map +1 -1
- package/dist/ui/component/typography/H3/index.d.ts +2 -3
- package/dist/ui/component/typography/H3/index.jsx +2 -2
- package/dist/ui/component/typography/H3/index.jsx.map +1 -1
- package/dist/ui/component/typography/H4/index.d.ts +2 -3
- package/dist/ui/component/typography/H4/index.jsx +2 -2
- package/dist/ui/component/typography/H4/index.jsx.map +1 -1
- package/dist/ui/component/typography/H5/index.d.ts +2 -3
- package/dist/ui/component/typography/H5/index.jsx +2 -2
- package/dist/ui/component/typography/H5/index.jsx.map +1 -1
- package/dist/ui/component/typography/H6/index.d.ts +2 -3
- package/dist/ui/component/typography/H6/index.jsx +2 -2
- package/dist/ui/component/typography/H6/index.jsx.map +1 -1
- package/dist/ui/component/typography/Label/index.d.ts +2 -3
- package/dist/ui/component/typography/Label/index.jsx +2 -2
- package/dist/ui/component/typography/Label/index.jsx.map +1 -1
- package/dist/ui/component/typography/LinkText/index.d.ts +2 -3
- package/dist/ui/component/typography/LinkText/index.jsx +2 -2
- package/dist/ui/component/typography/LinkText/index.jsx.map +1 -1
- package/dist/ui/component/typography/P/index.d.ts +2 -3
- package/dist/ui/component/typography/P/index.jsx +2 -2
- package/dist/ui/component/typography/P/index.jsx.map +1 -1
- package/dist/ui/component/typography/Pre/index.d.ts +2 -3
- package/dist/ui/component/typography/Pre/index.jsx +2 -2
- package/dist/ui/component/typography/Pre/index.jsx.map +1 -1
- package/dist/ui/component/typography/Span/index.d.ts +6 -0
- package/dist/ui/component/typography/Span/index.jsx +12 -0
- package/dist/ui/component/typography/Span/index.jsx.map +1 -0
- package/dist/ui/component/typography/index.d.ts +26 -32
- package/dist/ui/component/typography/index.jsx +2 -0
- package/dist/ui/component/typography/index.jsx.map +1 -1
- package/dist/ui/composite/accordion/index.d.ts +12 -0
- package/dist/ui/composite/accordion/index.jsx +29 -0
- package/dist/ui/composite/accordion/index.jsx.map +1 -0
- package/dist/ui/composite/alert/index.d.ts +13 -0
- package/dist/ui/composite/alert/index.jsx +35 -0
- package/dist/ui/composite/alert/index.jsx.map +1 -0
- package/dist/ui/composite/avatar/index.d.ts +9 -0
- package/dist/ui/composite/avatar/index.jsx +25 -0
- package/dist/ui/composite/avatar/index.jsx.map +1 -0
- package/dist/ui/composite/dropdown/index.d.ts +2 -2
- package/dist/ui/composite/dropdown/index.jsx +0 -1
- package/dist/ui/composite/dropdown/index.jsx.map +1 -1
- package/dist/ui/composite/emptyState/index.d.ts +9 -0
- package/dist/ui/composite/emptyState/index.jsx +18 -0
- package/dist/ui/composite/emptyState/index.jsx.map +1 -0
- package/dist/ui/{layout → composite}/form/index.d.ts +4 -5
- package/dist/ui/{layout → composite}/form/index.jsx +31 -43
- package/dist/ui/composite/form/index.jsx.map +1 -0
- package/dist/ui/{layout → composite}/form/renderItem.d.ts +1 -2
- package/dist/ui/{layout → composite}/form/renderItem.jsx +25 -30
- package/dist/ui/composite/form/renderItem.jsx.map +1 -0
- package/dist/ui/composite/index.d.ts +490 -233
- package/dist/ui/composite/index.js +30 -0
- package/dist/ui/composite/index.js.map +1 -1
- package/dist/ui/composite/input/attachment/index.d.ts +18 -0
- package/dist/ui/composite/input/attachment/index.jsx +130 -0
- package/dist/ui/composite/input/attachment/index.jsx.map +1 -0
- package/dist/ui/composite/input/checkbox/index.d.ts +2 -2
- package/dist/ui/composite/input/checkbox/index.jsx +2 -2
- package/dist/ui/composite/input/checkbox/index.jsx.map +1 -1
- package/dist/ui/composite/input/datePicker/index.d.ts +1 -1
- package/dist/ui/composite/input/datePicker/index.jsx +5 -16
- package/dist/ui/composite/input/datePicker/index.jsx.map +1 -1
- package/dist/ui/composite/input/dateRange/index.d.ts +1 -1
- package/dist/ui/composite/input/dateRange/index.jsx +1 -3
- package/dist/ui/composite/input/dateRange/index.jsx.map +1 -1
- package/dist/ui/composite/input/dateTimePicker/index.jsx +1 -8
- package/dist/ui/composite/input/dateTimePicker/index.jsx.map +1 -1
- package/dist/ui/composite/input/dateTimeRange/index.d.ts +1 -1
- package/dist/ui/composite/input/dateTimeRange/index.jsx +2 -5
- package/dist/ui/composite/input/dateTimeRange/index.jsx.map +1 -1
- package/dist/ui/composite/input/file/index.d.ts +3 -8
- package/dist/ui/composite/input/file/index.jsx +91 -137
- package/dist/ui/composite/input/file/index.jsx.map +1 -1
- package/dist/ui/composite/input/index.d.ts +144 -128
- package/dist/ui/composite/input/index.js +4 -0
- package/dist/ui/composite/input/index.js.map +1 -1
- package/dist/ui/composite/input/list/index.jsx +3 -11
- package/dist/ui/composite/input/list/index.jsx.map +1 -1
- package/dist/ui/composite/input/radio/index.d.ts +2 -2
- package/dist/ui/composite/input/radio/index.jsx +3 -3
- package/dist/ui/composite/input/radio/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/GroupHeading/index.jsx +1 -1
- package/dist/ui/composite/input/select/GroupHeading/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/Input/index.jsx +1 -4
- package/dist/ui/composite/input/select/Input/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/Option/index.jsx +0 -1
- package/dist/ui/composite/input/select/Option/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/Placeholder/index.jsx +1 -1
- package/dist/ui/composite/input/select/Placeholder/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/SelectContainer/index.jsx +1 -1
- package/dist/ui/composite/input/select/SelectContainer/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/SingleValue/index.jsx +1 -1
- package/dist/ui/composite/input/select/SingleValue/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/index.jsx +0 -2
- package/dist/ui/composite/input/select/index.jsx.map +1 -1
- package/dist/ui/composite/input/switch/index.d.ts +11 -0
- package/dist/ui/composite/input/switch/index.jsx +21 -0
- package/dist/ui/composite/input/switch/index.jsx.map +1 -0
- package/dist/ui/composite/input/text/index.d.ts +1 -1
- package/dist/ui/composite/input/text/index.jsx +1 -1
- package/dist/ui/composite/input/text/index.jsx.map +1 -1
- package/dist/ui/composite/input/textarea/index.d.ts +1 -1
- package/dist/ui/composite/input/textarea/index.jsx +1 -1
- package/dist/ui/composite/input/textarea/index.jsx.map +1 -1
- package/dist/ui/composite/input/timePicker/index.d.ts +1 -1
- package/dist/ui/composite/input/timeRange/index.d.ts +1 -1
- package/dist/ui/composite/input/timeRange/index.jsx +1 -1
- package/dist/ui/composite/input/timeRange/index.jsx.map +1 -1
- package/dist/ui/composite/input/weekDaysSelector/index.d.ts +1 -1
- package/dist/ui/composite/input/weekdayPicker/index.d.ts +1 -1
- package/dist/ui/composite/input/weekdayPicker/index.jsx +1 -1
- package/dist/ui/composite/input/weekdayPicker/index.jsx.map +1 -1
- package/dist/ui/composite/label/index.d.ts +3 -2
- package/dist/ui/composite/label/index.jsx +4 -4
- package/dist/ui/composite/label/index.jsx.map +1 -1
- package/dist/ui/composite/loading/index.jsx.map +1 -0
- package/dist/ui/composite/markdown/codeBlock.d.ts +4 -0
- package/dist/ui/composite/markdown/codeBlock.jsx +67 -0
- package/dist/ui/composite/markdown/codeBlock.jsx.map +1 -0
- package/dist/ui/composite/markdown/index.d.ts +3 -0
- package/dist/ui/composite/markdown/index.jsx +65 -0
- package/dist/ui/composite/markdown/index.jsx.map +1 -0
- package/dist/ui/{component/modal/index.d.ts → composite/modal/card.d.ts} +1 -1
- package/dist/ui/composite/modal/card.jsx +13 -0
- package/dist/ui/composite/modal/card.jsx.map +1 -0
- package/dist/ui/composite/modal/index.d.ts +2 -0
- package/dist/ui/composite/modal/index.jsx +3 -0
- package/dist/ui/composite/modal/index.jsx.map +1 -0
- package/dist/ui/{layout/modal/index.jsx → composite/modal/overlay.jsx} +4 -10
- package/dist/ui/composite/modal/overlay.jsx.map +1 -0
- package/dist/ui/{layout → composite}/object/index.d.ts +2 -3
- package/dist/ui/{layout → composite}/object/index.jsx +50 -24
- package/dist/ui/composite/object/index.jsx.map +1 -0
- package/dist/ui/composite/pageTitle/index.jsx +4 -2
- package/dist/ui/composite/pageTitle/index.jsx.map +1 -1
- package/dist/ui/composite/popover/index.d.ts +12 -0
- package/dist/ui/composite/popover/index.jsx +48 -0
- package/dist/ui/composite/popover/index.jsx.map +1 -0
- package/dist/ui/composite/stepper/index.d.ts +8 -0
- package/dist/ui/composite/stepper/index.jsx +34 -0
- package/dist/ui/composite/stepper/index.jsx.map +1 -0
- package/dist/ui/composite/table/features.d.ts +15 -0
- package/dist/ui/composite/table/features.js +10 -0
- package/dist/ui/composite/table/features.js.map +1 -0
- package/dist/ui/{layout → composite}/table/index.d.ts +4 -9
- package/dist/ui/{layout → composite}/table/index.jsx +10 -23
- package/dist/ui/composite/table/index.jsx.map +1 -0
- package/dist/ui/composite/toast/index.d.ts +18 -0
- package/dist/ui/{layout → composite}/toast/index.jsx +11 -4
- package/dist/ui/composite/toast/index.jsx.map +1 -0
- package/dist/ui/composite/tooltip/index.d.ts +11 -0
- package/dist/ui/composite/tooltip/index.jsx +29 -0
- package/dist/ui/composite/tooltip/index.jsx.map +1 -0
- package/dist/ui/functional/index.d.ts +5 -5
- package/dist/ui/functional/signInForm/index.jsx +1 -1
- package/dist/ui/functional/signInForm/index.jsx.map +1 -1
- package/dist/ui/layout/app/component.jsx +2 -2
- package/dist/ui/layout/app/component.jsx.map +1 -1
- package/dist/ui/layout/drawer/index.d.ts +11 -0
- package/dist/ui/layout/drawer/index.jsx +73 -0
- package/dist/ui/layout/drawer/index.jsx.map +1 -0
- package/dist/ui/layout/index.d.ts +38 -351
- package/dist/ui/layout/index.js +2 -12
- package/dist/ui/layout/index.js.map +1 -1
- package/dist/ui/layout/root/index.d.ts +1 -1
- package/dist/ui/layout/root/index.jsx +1 -2
- package/dist/ui/layout/root/index.jsx.map +1 -1
- package/dist/ui/layout/root/provider/index.jsx +0 -4
- package/dist/ui/layout/root/provider/index.jsx.map +1 -1
- package/dist/ui/layout/tab/component.jsx +3 -3
- package/dist/ui/layout/tab/component.jsx.map +1 -1
- package/dist/ui/layout/tab/content/index.d.ts +1 -1
- package/dist/ui/theme/border/index.d.ts +15 -15
- package/dist/ui/theme/border/index.js.map +1 -1
- package/dist/ui/theme/color/index.d.ts +24 -23
- package/dist/ui/theme/color/index.js +14 -24
- package/dist/ui/theme/color/index.js.map +1 -1
- package/dist/ui/theme/rounded/index.d.ts +6 -5
- package/dist/ui/theme/rounded/index.js +2 -0
- package/dist/ui/theme/rounded/index.js.map +1 -1
- package/dist/ui/theme/size/index.d.ts +8 -8
- package/dist/ui/theme/size/index.js +8 -8
- package/dist/ui/theme/size/index.js.map +1 -1
- package/dist/ui/types/index.d.ts +16 -2
- package/dist/ui/types/index.js +0 -1
- package/dist/ui/types/index.js.map +1 -1
- package/dist/util/date/impl.js +0 -2
- package/dist/util/date/impl.js.map +1 -1
- package/dist/util/date/index.d.ts +7 -7
- package/dist/util/index.js +8 -20
- package/dist/util/index.js.map +1 -1
- package/package.json +7 -6
- package/dist/ui/component/button/text/index.d.ts +0 -11
- package/dist/ui/component/button/text/index.jsx +0 -7
- package/dist/ui/component/button/text/index.jsx.map +0 -1
- package/dist/ui/component/markdown/index.d.ts +0 -4
- package/dist/ui/component/markdown/index.jsx +0 -61
- package/dist/ui/component/markdown/index.jsx.map +0 -1
- package/dist/ui/component/modal/index.jsx +0 -12
- package/dist/ui/component/modal/index.jsx.map +0 -1
- package/dist/ui/layout/form/index.jsx.map +0 -1
- package/dist/ui/layout/form/renderItem.jsx.map +0 -1
- package/dist/ui/layout/loading/index.jsx.map +0 -1
- package/dist/ui/layout/modal/index.jsx.map +0 -1
- package/dist/ui/layout/object/index.jsx.map +0 -1
- package/dist/ui/layout/table/index.jsx.map +0 -1
- package/dist/ui/layout/toast/index.d.ts +0 -7
- package/dist/ui/layout/toast/index.jsx.map +0 -1
- /package/dist/ui/{layout → composite}/loading/index.d.ts +0 -0
- /package/dist/ui/{layout → composite}/loading/index.jsx +0 -0
- /package/dist/ui/{layout/modal/index.d.ts → composite/modal/overlay.d.ts} +0 -0
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
export declare const ColorTypes: {
|
|
2
|
-
readonly primary:
|
|
3
|
-
readonly secondary:
|
|
4
|
-
readonly accent:
|
|
5
|
-
readonly error:
|
|
6
|
-
readonly warning:
|
|
7
|
-
readonly success:
|
|
8
|
-
readonly info:
|
|
2
|
+
readonly primary: 'primary';
|
|
3
|
+
readonly secondary: 'secondary';
|
|
4
|
+
readonly accent: 'accent';
|
|
5
|
+
readonly error: 'error';
|
|
6
|
+
readonly warning: 'warning';
|
|
7
|
+
readonly success: 'success';
|
|
8
|
+
readonly info: 'info';
|
|
9
|
+
readonly transparent: 'transparent';
|
|
9
10
|
};
|
|
10
11
|
export type ColorTypes = (typeof ColorTypes)[keyof typeof ColorTypes];
|
|
11
|
-
export declare const getColorTypeClassName: (type: ColorTypes, container: boolean) => "bg-
|
|
12
|
+
export declare const getColorTypeClassName: (type: ColorTypes, container: boolean) => "bg-accent-container-bg text-accent-container-on" | "bg-accent-default-bg text-accent-default-on" | "bg-error-container-bg text-error-container-on" | "bg-error-default-bg text-error-default-on" | "bg-info-container-bg text-info-container-on" | "bg-info-default-bg text-info-default-on" | "bg-primary-container-bg text-primary-container-on" | "bg-primary-default-bg text-primary-default-on" | "bg-secondary-container-bg text-secondary-container-on" | "bg-secondary-default-bg text-secondary-default-on" | "bg-success-container-bg text-success-container-on" | "bg-success-default-bg text-success-default-on" | "bg-transparent" | "bg-warning-container-bg text-warning-container-on" | "bg-warning-default-bg text-warning-default-on";
|
|
12
13
|
export declare const TextColorTypes: {
|
|
13
|
-
readonly main:
|
|
14
|
-
readonly sub:
|
|
15
|
-
readonly disabled:
|
|
16
|
-
readonly primary:
|
|
17
|
-
readonly secondary:
|
|
18
|
-
readonly accent:
|
|
19
|
-
readonly error:
|
|
20
|
-
readonly warning:
|
|
21
|
-
readonly success:
|
|
22
|
-
readonly info:
|
|
14
|
+
readonly main: 'main';
|
|
15
|
+
readonly sub: 'sub';
|
|
16
|
+
readonly disabled: 'disabled';
|
|
17
|
+
readonly primary: 'primary';
|
|
18
|
+
readonly secondary: 'secondary';
|
|
19
|
+
readonly accent: 'accent';
|
|
20
|
+
readonly error: 'error';
|
|
21
|
+
readonly warning: 'warning';
|
|
22
|
+
readonly success: 'success';
|
|
23
|
+
readonly info: 'info';
|
|
23
24
|
};
|
|
24
25
|
export type TextColorTypes = (typeof TextColorTypes)[keyof typeof TextColorTypes];
|
|
25
|
-
export declare const getTextColorTypeClassName: (type: TextColorTypes
|
|
26
|
+
export declare const getTextColorTypeClassName: (type: TextColorTypes) => "text-accent-default-bg" | "text-disabledText-default" | "text-error-default-bg" | "text-info-default-bg" | "text-mainText-default" | "text-primary-default-bg" | "text-secondary-default-bg" | "text-subText-default" | "text-success-default-bg" | "text-warning-default-bg";
|
|
26
27
|
export declare const BackgroundColorTypes: {
|
|
27
|
-
readonly default:
|
|
28
|
-
readonly container:
|
|
29
|
-
readonly overlay:
|
|
28
|
+
readonly default: 'default';
|
|
29
|
+
readonly container: 'container';
|
|
30
|
+
readonly overlay: 'overlay';
|
|
30
31
|
};
|
|
31
32
|
export type BackgroundColorTypes = (typeof BackgroundColorTypes)[keyof typeof BackgroundColorTypes];
|
|
32
|
-
export declare const getBackgroundColorTypeClassName: (type: BackgroundColorTypes) => "bg-bg-
|
|
33
|
+
export declare const getBackgroundColorTypeClassName: (type: BackgroundColorTypes) => "bg-bg-container" | "bg-bg-default" | "bg-bg-overlay";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
1
|
export const ColorTypes = {
|
|
3
2
|
primary: 'primary',
|
|
4
3
|
secondary: 'secondary',
|
|
@@ -7,9 +6,12 @@ export const ColorTypes = {
|
|
|
7
6
|
warning: 'warning',
|
|
8
7
|
success: 'success',
|
|
9
8
|
info: 'info',
|
|
9
|
+
transparent: 'transparent',
|
|
10
10
|
};
|
|
11
11
|
export const getColorTypeClassName = (type, container) => {
|
|
12
12
|
switch (type) {
|
|
13
|
+
case 'transparent':
|
|
14
|
+
return 'bg-transparent';
|
|
13
15
|
case 'primary':
|
|
14
16
|
return container === true
|
|
15
17
|
? 'bg-primary-container-bg text-primary-container-on'
|
|
@@ -52,41 +54,29 @@ export const TextColorTypes = {
|
|
|
52
54
|
success: 'success',
|
|
53
55
|
info: 'info',
|
|
54
56
|
};
|
|
55
|
-
export const getTextColorTypeClassName = (type
|
|
56
|
-
let textClass = '';
|
|
57
|
+
export const getTextColorTypeClassName = (type) => {
|
|
57
58
|
switch (type) {
|
|
58
59
|
case 'main':
|
|
59
|
-
|
|
60
|
-
break;
|
|
60
|
+
return 'text-mainText-default';
|
|
61
61
|
case 'sub':
|
|
62
|
-
|
|
63
|
-
break;
|
|
62
|
+
return 'text-subText-default';
|
|
64
63
|
case 'disabled':
|
|
65
|
-
|
|
66
|
-
break;
|
|
64
|
+
return 'text-disabledText-default';
|
|
67
65
|
case 'primary':
|
|
68
|
-
|
|
69
|
-
break;
|
|
66
|
+
return 'text-primary-default-bg';
|
|
70
67
|
case 'secondary':
|
|
71
|
-
|
|
72
|
-
break;
|
|
68
|
+
return 'text-secondary-default-bg';
|
|
73
69
|
case 'accent':
|
|
74
|
-
|
|
75
|
-
break;
|
|
70
|
+
return 'text-accent-default-bg';
|
|
76
71
|
case 'error':
|
|
77
|
-
|
|
78
|
-
break;
|
|
72
|
+
return 'text-error-default-bg';
|
|
79
73
|
case 'warning':
|
|
80
|
-
|
|
81
|
-
break;
|
|
74
|
+
return 'text-warning-default-bg';
|
|
82
75
|
case 'success':
|
|
83
|
-
|
|
84
|
-
break;
|
|
76
|
+
return 'text-success-default-bg';
|
|
85
77
|
case 'info':
|
|
86
|
-
|
|
87
|
-
break;
|
|
78
|
+
return 'text-info-default-bg';
|
|
88
79
|
}
|
|
89
|
-
return classNames([getBackgroundColorTypeClassName(container ? 'container' : 'default'), textClass]);
|
|
90
80
|
};
|
|
91
81
|
export const BackgroundColorTypes = {
|
|
92
82
|
default: 'default',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/color/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/color/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE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only m:
|
|
5
|
-
readonly l:
|
|
6
|
-
readonly
|
|
2
|
+
readonly none: 'none';
|
|
3
|
+
readonly s: 's';
|
|
4
|
+
readonly m: 'm';
|
|
5
|
+
readonly l: 'l';
|
|
6
|
+
readonly full: 'full';
|
|
7
|
+
readonly half: 'half';
|
|
7
8
|
};
|
|
8
9
|
export type Rounded = (typeof Rounded)[keyof typeof Rounded];
|
|
9
10
|
export declare const getRoundedClassName: (rounded?: Rounded) => (string | false)[];
|
|
@@ -3,12 +3,14 @@ export const Rounded = {
|
|
|
3
3
|
s: 's',
|
|
4
4
|
m: 'm',
|
|
5
5
|
l: 'l',
|
|
6
|
+
full: 'full',
|
|
6
7
|
half: 'half',
|
|
7
8
|
};
|
|
8
9
|
export const getRoundedClassName = (rounded) => [
|
|
9
10
|
rounded === Rounded.s && 'rounded-small',
|
|
10
11
|
rounded === Rounded.m && 'rounded-medium',
|
|
11
12
|
rounded === Rounded.l && 'rounded-large',
|
|
13
|
+
rounded === Rounded.full && 'rounded-full',
|
|
12
14
|
rounded === Rounded.half && 'rounded-[50%]',
|
|
13
15
|
];
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/rounded/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,IAAI,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAiB,EAAE,EAAE,CAAC;IACxD,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,gBAAgB;IACzC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,eAAe;CAC5C,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/rounded/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAiB,EAAE,EAAE,CAAC;IACxD,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,gBAAgB;IACzC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,cAAc;IAC1C,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,eAAe;CAC5C,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const ControlSize: {
|
|
2
|
-
readonly sm:
|
|
3
|
-
readonly md:
|
|
4
|
-
readonly base:
|
|
5
|
-
readonly lg:
|
|
6
|
-
readonly xl:
|
|
7
|
-
readonly '2xl':
|
|
8
|
-
readonly '3xl':
|
|
2
|
+
readonly sm: 'sm';
|
|
3
|
+
readonly md: 'md';
|
|
4
|
+
readonly base: 'base';
|
|
5
|
+
readonly lg: 'lg';
|
|
6
|
+
readonly xl: 'xl';
|
|
7
|
+
readonly '2xl': '2xl';
|
|
8
|
+
readonly '3xl': '3xl';
|
|
9
9
|
};
|
|
10
10
|
export type ControlSize = (typeof ControlSize)[keyof typeof ControlSize];
|
|
11
|
-
export declare const getControlSizeClassName: (size?: ControlSize) => (string | false)[];
|
|
11
|
+
export declare const getControlSizeClassName: (size?: ControlSize, important?: boolean) => (string | false)[];
|
|
12
12
|
export declare const getControlWidthClassName: (size?: ControlSize) => (string | false)[];
|
|
13
13
|
export declare const getControlHeightClassName: (size?: ControlSize) => (string | false)[];
|
|
14
14
|
export declare const getControlTextSizeClassName: (size?: ControlSize) => (string | false)[];
|
|
@@ -7,14 +7,14 @@ export const ControlSize = {
|
|
|
7
7
|
'2xl': '2xl',
|
|
8
8
|
'3xl': '3xl',
|
|
9
9
|
};
|
|
10
|
-
export const getControlSizeClassName = (size) => [
|
|
11
|
-
size === 'sm' && 'size-control-sm',
|
|
12
|
-
size === 'md' && 'size-control-md',
|
|
13
|
-
size === 'base' && 'size-control-base',
|
|
14
|
-
size === 'lg' && 'size-control-lg',
|
|
15
|
-
size === 'xl' && 'size-control-xl',
|
|
16
|
-
size === '2xl' && 'size-control-2xl',
|
|
17
|
-
size === '3xl' && 'size-control-3xl',
|
|
10
|
+
export const getControlSizeClassName = (size, important = false) => [
|
|
11
|
+
size === 'sm' && (important ? 'size-control-sm!' : 'size-control-sm'),
|
|
12
|
+
size === 'md' && (important ? 'size-control-md!' : 'size-control-md'),
|
|
13
|
+
size === 'base' && (important ? 'size-control-base!' : 'size-control-base'),
|
|
14
|
+
size === 'lg' && (important ? 'size-control-lg!' : 'size-control-lg'),
|
|
15
|
+
size === 'xl' && (important ? 'size-control-xl!' : 'size-control-xl'),
|
|
16
|
+
size === '2xl' && (important ? 'size-control-2xl!' : 'size-control-2xl'),
|
|
17
|
+
size === '3xl' && (important ? 'size-control-3xl!' : 'size-control-3xl'),
|
|
18
18
|
];
|
|
19
19
|
export const getControlWidthClassName = (size) => [
|
|
20
20
|
size === 'sm' && 'w-control-sm',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/size/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,EAAE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C3C,IAAI,KAAK,IAAI,IAAI,sBAAsB;IACvC,IAAI,KAAK,IAAI,IAAI,sBAAsB;IACvC,IAAI,KAAK,KAAK,IAAI,uBAAuB;IACzC,IAAI,KAAK,KAAK,IAAI,uBAAuB;CAC1C,CAAA"}
|
package/dist/ui/types/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
1
2
|
import type SvgIcon from '@mui/material/SvgIcon';
|
|
3
|
+
import type { ColumnDef, RowData } from '@tanstack/react-table';
|
|
2
4
|
import type { ComponentProps, ComponentType, ReactNode, SVGProps } from 'react';
|
|
3
5
|
import type { Checkbox } from '../composite/input/checkbox';
|
|
4
6
|
import type { DatePicker } from '../composite/input/datePicker';
|
|
@@ -8,12 +10,14 @@ import type { DateTimeRange } from '../composite/input/dateTimeRange';
|
|
|
8
10
|
import type { File } from '../composite/input/file';
|
|
9
11
|
import type { Radio } from '../composite/input/radio';
|
|
10
12
|
import type { Select } from '../composite/input/select';
|
|
13
|
+
import type { Switch } from '../composite/input/switch';
|
|
11
14
|
import type { Text } from '../composite/input/text';
|
|
12
15
|
import type { TextArea } from '../composite/input/textarea';
|
|
13
16
|
import type { TimePicker } from '../composite/input/timePicker';
|
|
14
17
|
import type { TimeRange } from '../composite/input/timeRange';
|
|
15
18
|
import type { WeekDaysSelector } from '../composite/input/weekDaysSelector';
|
|
16
19
|
import type { WeekdayPicker } from '../composite/input/weekdayPicker';
|
|
20
|
+
import type { dataTableFeatures } from '../composite/table/features';
|
|
17
21
|
import type { Rounded } from '../theme';
|
|
18
22
|
export type FormElement = {
|
|
19
23
|
type: 'element';
|
|
@@ -58,6 +62,10 @@ export type FormInputRadio = FormInput & {
|
|
|
58
62
|
type: 'radio';
|
|
59
63
|
props: Omit<ComponentProps<typeof Radio>, 'name'>;
|
|
60
64
|
};
|
|
65
|
+
export type FormInputSwitch = FormInput & {
|
|
66
|
+
type: 'switch';
|
|
67
|
+
props?: Omit<ComponentProps<typeof Switch>, 'name'>;
|
|
68
|
+
};
|
|
61
69
|
export type FormInputWeekday = FormInput & {
|
|
62
70
|
type: 'weekday';
|
|
63
71
|
props?: Omit<ComponentProps<typeof WeekdayPicker>, 'name'>;
|
|
@@ -106,7 +114,13 @@ export type FormInputFile = FormInput & {
|
|
|
106
114
|
type: 'file';
|
|
107
115
|
props?: Omit<ComponentProps<typeof File>, 'name' | 'required' | 'rounded'>;
|
|
108
116
|
};
|
|
109
|
-
export type FormItem = FormElement | FormInputHidden | FormInputText | FormInputTextArea | FormInputSelect | FormInputCheckbox | FormInputRadio | FormInputWeekday | FormInputWeekdays | FormInputDate | FormInputDateRange | FormInputTime | FormInputTimeRange | FormInputDateTime | FormInputDateTimeRange | FormInputList | FormInputFile;
|
|
117
|
+
export type FormItem = FormElement | FormInputHidden | FormInputText | FormInputTextArea | FormInputSelect | FormInputCheckbox | FormInputRadio | FormInputSwitch | FormInputWeekday | FormInputWeekdays | FormInputDate | FormInputDateRange | FormInputTime | FormInputTimeRange | FormInputDateTime | FormInputDateTimeRange | FormInputList | FormInputFile;
|
|
118
|
+
export type DataTableRow = RowData & {
|
|
119
|
+
id: UniqueIdentifier;
|
|
120
|
+
href?: string;
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
};
|
|
123
|
+
export type DataTableColumnDef<TData extends DataTableRow> = ColumnDef<typeof dataTableFeatures, TData>;
|
|
110
124
|
export declare const parseTableParams: (searchParams: Promise<{
|
|
111
125
|
page?: string;
|
|
112
126
|
sort?: string;
|
|
@@ -115,7 +129,7 @@ export declare const parseTableParams: (searchParams: Promise<{
|
|
|
115
129
|
orderBy?: undefined;
|
|
116
130
|
} | {
|
|
117
131
|
page: string | undefined;
|
|
118
|
-
orderBy: Record<string, "
|
|
132
|
+
orderBy: Record<string, "asc" | "desc">[];
|
|
119
133
|
}>;
|
|
120
134
|
export type IconType = typeof SvgIcon | ComponentType<SVGProps<SVGSVGElement>> | ReactNode;
|
|
121
135
|
export {};
|
package/dist/ui/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/types/index.ts"],"names":[],"mappings":"AAiJA,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EAAE,YAAuD,EAAE,EAAE;IAChG,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,YAAY,CAAA;IACzC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO;YACL,IAAI;SACL,CAAA;IACH,CAAC;IACD,IAAI,CAAC;QACH,MAAM,MAAM,GAAqC,EAAE,CAAA;QACnD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YACxC,IAAI,GAAG,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,KAAK,MAAM,CAAC,EAAE,CAAC;gBACzD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;YACnC,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC;YACtB,CAAC,CAAC;gBACE,IAAI;gBACJ,OAAO,EAAE,MAAM;aAChB;YACH,CAAC,CAAC;gBACE,IAAI;aACL,CAAA;IACP,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;YACL,IAAI;SACL,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
package/dist/util/date/impl.js
CHANGED
|
@@ -13,8 +13,6 @@ export const createDateFormat = (t, timeZone) => ({
|
|
|
13
13
|
timeZoneName: 'longOffset',
|
|
14
14
|
}).formatToParts(date);
|
|
15
15
|
const get = (type) => parts.find((p) => p.type === type)?.value ?? '00';
|
|
16
|
-
// The wall-clock parts above are in `timeZone`, so the string must carry that zone's real offset,
|
|
17
|
-
// not a `Z` (which would falsely claim UTC). `longOffset` yields e.g. `GMT+02:00`; UTC yields `GMT`.
|
|
18
16
|
const offset = get('timeZoneName').replace('GMT', '') || '+00:00';
|
|
19
17
|
return `${get('year')}-${get('month')}-${get('day')}T${get('hour')}:${get('minute')}:${get('second')}.000${offset}`;
|
|
20
18
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impl.js","sourceRoot":"","sources":["../../../../src/util/date/impl.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAA0B,EAAE,QAAiB,EAAE,EAAE,CAAC,CAAC;IAClF,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC;IAC3B,gBAAgB,EAAE,CAAC,IAAU,EAAU,EAAE;QACvC,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;YAC7C,QAAQ;YACR,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,KAAK;YAChB,YAAY,EAAE,YAAY;SAC3B,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,KAAK,IAAI,IAAI,CAAA;QAC/E,
|
|
1
|
+
{"version":3,"file":"impl.js","sourceRoot":"","sources":["../../../../src/util/date/impl.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,C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CAAC,CAAC,QAAQ,CAAC,EAAE;QAChC,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;QACd,QAAQ;KACT,CAAC,IAAI,QAAQ;IAChB,aAAa,EAAE,CAAC,IAAkB,EAAE,QAAQ,GAAW,GAAG,EAAE,EAAE,CAC5D,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE;QAChC,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,QAAQ;KACT,CAAC,IAAI,QAAQ;IAChB,gBAAgB,EAAE,CAAC,IAAkB,EAAE,QAAQ,GAAW,GAAG,EAAE,EAAE,CAC/D,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE;QAChC,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,QAAQ;KACT,CAAC,IAAI,QAAQ;IAChB,YAAY,EAAE,CAAC,IAAkB,EAAE,QAAQ,GAAW,GAAG,EAAE,EAAE,CAC3D,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE;QAChC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,QAAQ;KACT,CAAC,IAAI,QAAQ;CACjB,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const Weekday: {
|
|
2
|
-
readonly Monday:
|
|
3
|
-
readonly Tuesday:
|
|
4
|
-
readonly Wednesday:
|
|
5
|
-
readonly Thursday:
|
|
6
|
-
readonly Friday:
|
|
7
|
-
readonly Saturday:
|
|
8
|
-
readonly Sunday:
|
|
2
|
+
readonly Monday: 'mon';
|
|
3
|
+
readonly Tuesday: 'tue';
|
|
4
|
+
readonly Wednesday: 'wed';
|
|
5
|
+
readonly Thursday: 'thu';
|
|
6
|
+
readonly Friday: 'fri';
|
|
7
|
+
readonly Saturday: 'sat';
|
|
8
|
+
readonly Sunday: 'sun';
|
|
9
9
|
};
|
|
10
10
|
export type Weekday = (typeof Weekday)[keyof typeof Weekday];
|
|
11
11
|
export declare const dateFormat: () => Promise<{
|
package/dist/util/index.js
CHANGED
|
@@ -25,15 +25,14 @@ export const Util = {
|
|
|
25
25
|
'jwt',
|
|
26
26
|
'bearer',
|
|
27
27
|
// PII keys — masked so a thrown error's logged input/result never emits subject data to the log stream.
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
// `walk` on EXACT match — a substring entry here would mask serviceName/fileName/….
|
|
28
|
+
// Only low-false-positive keys (substring match): bare 'name' (a direct identifier, db-schema.md) is
|
|
29
|
+
// redacted separately in `walk` on EXACT match — a substring entry here would mask serviceName/fileName/….
|
|
31
30
|
'email',
|
|
32
31
|
'fullname',
|
|
33
32
|
'isikukood',
|
|
34
33
|
'dateofbirth',
|
|
35
34
|
'phone',
|
|
36
|
-
'
|
|
35
|
+
'wage',
|
|
37
36
|
'screenedname',
|
|
38
37
|
];
|
|
39
38
|
const normalizeKey = (k) => k.trim().toLowerCase();
|
|
@@ -97,25 +96,21 @@ export const Util = {
|
|
|
97
96
|
return String(v);
|
|
98
97
|
};
|
|
99
98
|
const maskInText = (text) => text
|
|
100
|
-
// password: "xxx"
|
|
101
99
|
.replace(/(\bpassword\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
102
100
|
.replace(/(\bpasswd\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
103
|
-
// authorization: "Bearer xxx"
|
|
104
101
|
.replace(/(\bauthorization\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
105
102
|
.replace(/(\bproxy-authorization\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
106
|
-
// cookie / set-cookie
|
|
107
103
|
.replace(/(\bcookie\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
108
104
|
.replace(/(\bset-cookie\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
109
|
-
// token / secret
|
|
110
105
|
.replace(/(\btoken\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"')
|
|
111
106
|
.replace(/(\bsecret\b\s*:\s*)"(?:[^"\\]|\\.)*"/gi, '$1"***"');
|
|
112
107
|
const keywords = options?.keywords ?? DEFAULT_SANITIZE_KEYWORDS;
|
|
113
108
|
const maxStringLength = options?.maxStringLength;
|
|
114
109
|
const seen = new WeakSet();
|
|
115
|
-
// A logged string carrying embedded newlines — a JSON-encoded error message (Zod issues), a
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
//
|
|
110
|
+
// A logged string carrying embedded newlines — a JSON-encoded error message (Zod issues), a stack trace,
|
|
111
|
+
// any multi-line text — renders as escaped `\n` once the record is JSON.stringified for output, which is
|
|
112
|
+
// what this expansion exists to avoid. Where the string carries stack frames the surrounding prose is
|
|
113
|
+
// dropped, because the message field already carries it.
|
|
119
114
|
const expandMultiline = (s) => {
|
|
120
115
|
if (!s.includes('\n')) {
|
|
121
116
|
return s;
|
|
@@ -128,14 +123,9 @@ export const Util = {
|
|
|
128
123
|
return parsed;
|
|
129
124
|
}
|
|
130
125
|
}
|
|
131
|
-
catch {
|
|
132
|
-
// not JSON — fall through to a line split
|
|
133
|
-
}
|
|
126
|
+
catch { }
|
|
134
127
|
}
|
|
135
128
|
const lines = s.split('\n');
|
|
136
|
-
// A stack trace begins with a `${name}: ${message}` head before its indented `at …` frames.
|
|
137
|
-
// That head duplicates the record's own name / message (and, for a JSON error message, is a
|
|
138
|
-
// wall of escaped quotes) — keep only the frames when the string is a stack.
|
|
139
129
|
const frames = lines.filter((line) => /^\s+at\s/.test(line));
|
|
140
130
|
return frames.length > 0 ? frames : lines;
|
|
141
131
|
};
|
|
@@ -174,8 +164,6 @@ export const Util = {
|
|
|
174
164
|
if (typeof value === 'object') {
|
|
175
165
|
const out = {};
|
|
176
166
|
for (const [k, v] of Object.entries(value)) {
|
|
177
|
-
// Bare 'name' is a direct identifier (db-schema.md) redacted on exact match only — a substring
|
|
178
|
-
// keyword would mask serviceName/fileName/…; an Error-shaped object keeps its `name` (error class).
|
|
179
167
|
if (shouldRedactKey(k, keywords) || (normalizeKey(k) === 'name' && !errorShapes.has(value))) {
|
|
180
168
|
out[k] = '***';
|
|
181
169
|
continue;
|
package/dist/util/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAElC,cAAc,QAAQ,CAAA;AAEtB,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,CAAI,UAA4B,EAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IAC1F,QAAQ,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI;IACnE,QAAQ,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ;IACnD,SAAS,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;IACxD,QAAQ,EAAE,CACR,KAAQ,EACR,OAGC,EACD,EAAE;QACF,MAAM,yBAAyB,GAAG;YAChC,eAAe;YACf,qBAAqB;YACrB,QAAQ;YACR,YAAY;YACZ,WAAW;YACX,QAAQ;YACR,SAAS;YACT,SAAS;YACT,OAAO;YACP,QAAQ;YACR,UAAU;YACV,QAAQ;YACR,WAAW;YACX,SAAS;YACT,SAAS;YACT,KAAK;YACL,QAAQ;YACR,wGAAwG;YACxG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAEA,OAAO,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AAE;gBACrB,IAAI,QAAQ,EAAE,CAAC;oBACb,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;wBAClC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;oBAC9D,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;wBAClC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;oBAC9D,CAAC;gBACH,CAAC;gBACD,MAAM,GAAG,GAAG,CAAC,SAAS,KAAK,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAqB,CAAC,CAAA;gBACxE,IAAI,MAAM,EAAE,CAAC;oBACX,YAAY,KAAK,MAAM,CAAC,GAAG,CAAwB,CAAA;oBACnD,MAAM,QAAQ,GAAG,YAAgD,CAAA;oBACjE,IAAI,IAAI,IAAI,QAAQ,EAAE,CAAC;wBACrB,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAA;oBACvB,CAAC;gBACH,CAAC;gBACD,OAAO,GAAG,CAAC,IAA8B,CAAC,CAAA;YAC5C,CAAC;SACF,CACF,CAAA;IACH,CAAC,CAkBA;IACD,GAAG,MAAM;CACV,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ya-accelerators/nextjs-framework",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.101",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "YA Technologies OÜ",
|
|
@@ -43,18 +43,19 @@
|
|
|
43
43
|
"@dnd-kit/utilities": "^3.2.2",
|
|
44
44
|
"@emotion/react": "^11.14.0",
|
|
45
45
|
"@emotion/styled": "^11.14.1",
|
|
46
|
-
"@mui/material": "^9.
|
|
47
|
-
"@mui/material-nextjs": "^9.
|
|
46
|
+
"@mui/material": "^9.3.0",
|
|
47
|
+
"@mui/material-nextjs": "^9.3.0",
|
|
48
48
|
"@svgr/webpack": "^8.1.0",
|
|
49
|
-
"@tanstack/react-table": "^
|
|
50
|
-
"date-fns": "^4.
|
|
51
|
-
"framer-motion": "^
|
|
49
|
+
"@tanstack/react-table": "^9.0.0",
|
|
50
|
+
"date-fns": "^4.4.0",
|
|
51
|
+
"framer-motion": "^13.0.0",
|
|
52
52
|
"next-client-cookies": "^2.1.1",
|
|
53
53
|
"nextjs-toploader": "^3.9.17",
|
|
54
54
|
"parse-nested-form-data": "^1.0.1",
|
|
55
55
|
"react-datepicker": "^9.1.0",
|
|
56
56
|
"react-markdown": "^10.1.0",
|
|
57
57
|
"react-select": "^5.10.2",
|
|
58
|
+
"rehype-highlight": "^7.0.2",
|
|
58
59
|
"remark-breaks": "^4.0.0",
|
|
59
60
|
"remark-gfm": "^4.0.1"
|
|
60
61
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import { TextColorTypes } from '../../../theme';
|
|
3
|
-
import { BaseButton, BaseLink } from '../base';
|
|
4
|
-
export declare const Text: ({ color, container, className, ...props }: {
|
|
5
|
-
color?: TextColorTypes;
|
|
6
|
-
container?: boolean;
|
|
7
|
-
} & Omit<ComponentProps<typeof BaseButton>, "image">) => import("react").JSX.Element;
|
|
8
|
-
export declare const TextLink: ({ color, container, className, ...props }: {
|
|
9
|
-
color?: TextColorTypes;
|
|
10
|
-
container?: boolean;
|
|
11
|
-
} & Omit<ComponentProps<typeof BaseLink>, "image">) => import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import { getTextColorTypeClassName, TextColorTypes } from '../../../theme';
|
|
4
|
-
import { BaseButton, BaseLink } from '../base';
|
|
5
|
-
export const Text = ({ color = TextColorTypes.main, container = false, className, ...props }) => (<BaseButton className={classNames([getTextColorTypeClassName(color, container), className])} {...props}/>);
|
|
6
|
-
export const TextLink = ({ color = TextColorTypes.main, container = false, className, ...props }) => (<BaseLink className={classNames([getTextColorTypeClassName(color, container), className])} {...props}/>);
|
|
7
|
-
//# sourceMappingURL=index.jsx.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.jsx","sourceRoot":"","sources":["../../../../../../src/ui/component/button/text/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,KAAK,GAAG,cAAc,CAAC,IAAI,EAC3B,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,GAAG,KAAK,EAI0C,EAAE,EAAE,CAAC,CACvD,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAC3G,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACvB,KAAK,GAAG,cAAc,CAAC,IAAI,EAC3B,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,GAAG,KAAK,EAIwC,EAAE,EAAE,CAAC,CACrD,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,yBAAyB,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CACzG,CAAA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import { isValidElement } from 'react';
|
|
4
|
-
import ReactMarkdown from 'react-markdown';
|
|
5
|
-
import remarkBreaks from 'remark-breaks';
|
|
6
|
-
import remarkGfm from 'remark-gfm';
|
|
7
|
-
import { BorderColorTypes, BorderWidth, borderDefault, getBorderColorTypeClassName, getRoundedClassName, getTextColorTypeClassName, Rounded, TextColorTypes, } from '../../theme';
|
|
8
|
-
import { Typography } from '../typography';
|
|
9
|
-
export const Markdown = ({ container = false, children }) => (<div className={getTextColorTypeClassName(TextColorTypes.main, container)}>
|
|
10
|
-
<ReactMarkdown remarkPlugins={[remarkGfm, remarkBreaks]} components={{
|
|
11
|
-
h1: ({ children }) => (<Typography.H1 container={container} className='mt-base mb-sm first:mt-0'>
|
|
12
|
-
<>{children}</>
|
|
13
|
-
</Typography.H1>),
|
|
14
|
-
h2: ({ children }) => (<Typography.H2 container={container} className='mt-base mb-sm first:mt-0'>
|
|
15
|
-
<>{children}</>
|
|
16
|
-
</Typography.H2>),
|
|
17
|
-
h3: ({ children }) => (<Typography.H3 container={container} className='mt-base mb-sm first:mt-0'>
|
|
18
|
-
<>{children}</>
|
|
19
|
-
</Typography.H3>),
|
|
20
|
-
h4: ({ children }) => (<Typography.H4 container={container} className='mt-base mb-sm first:mt-0'>
|
|
21
|
-
<>{children}</>
|
|
22
|
-
</Typography.H4>),
|
|
23
|
-
h5: ({ children }) => (<Typography.H5 container={container} className='mt-base mb-sm first:mt-0'>
|
|
24
|
-
<>{children}</>
|
|
25
|
-
</Typography.H5>),
|
|
26
|
-
h6: ({ children }) => (<Typography.H6 container={container} className='mt-base mb-sm first:mt-0'>
|
|
27
|
-
<>{children}</>
|
|
28
|
-
</Typography.H6>),
|
|
29
|
-
p: ({ children }) => (<Typography.P container={container} className='my-sm first:mt-0 last:mb-0'>
|
|
30
|
-
<>{children}</>
|
|
31
|
-
</Typography.P>),
|
|
32
|
-
a: ({ href, children }) => (<Typography.LinkText container={container} href={href ?? ''} target='_blank' rel='noreferrer'>
|
|
33
|
-
<>{children}</>
|
|
34
|
-
</Typography.LinkText>),
|
|
35
|
-
pre: ({ children }) => (<Typography.Pre container={container} className={classNames('my-sm overflow-x-auto p-sm font-mono', getRoundedClassName(Rounded.m), getBorderColorTypeClassName(borderDefault(container, 'border')))}>
|
|
36
|
-
<>{isValidElement(children) ? children.props.children : children}</>
|
|
37
|
-
</Typography.Pre>),
|
|
38
|
-
code: ({ children }) => (<code className={classNames('px-xs font-mono', getRoundedClassName(Rounded.s), getBorderColorTypeClassName(borderDefault(container, 'border')))}>
|
|
39
|
-
{children}
|
|
40
|
-
</code>),
|
|
41
|
-
ul: ({ children }) => <ul className='my-sm list-disc pl-xl'>{children}</ul>,
|
|
42
|
-
ol: ({ children }) => <ol className='my-sm list-decimal pl-xl'>{children}</ol>,
|
|
43
|
-
li: ({ children }) => <li className='my-xs'>{children}</li>,
|
|
44
|
-
blockquote: ({ children }) => (<blockquote className={classNames('my-sm pl-sm', getBorderColorTypeClassName(borderDefault(container, 'border-l', BorderColorTypes.default, BorderWidth.xl)))}>
|
|
45
|
-
{children}
|
|
46
|
-
</blockquote>),
|
|
47
|
-
hr: () => (<hr className={classNames('my-base', getBorderColorTypeClassName(borderDefault(container, 'border-t')))}/>),
|
|
48
|
-
table: ({ children }) => (<table className={classNames('my-sm w-full border-collapse', getBorderColorTypeClassName(borderDefault(container, 'border')))}>
|
|
49
|
-
{children}
|
|
50
|
-
</table>),
|
|
51
|
-
th: ({ style, children }) => (<th style={style} className={classNames('px-sm py-xs text-left font-semibold', getBorderColorTypeClassName(borderDefault(container, 'border')))}>
|
|
52
|
-
{children}
|
|
53
|
-
</th>),
|
|
54
|
-
td: ({ style, children }) => (<td style={style} className={classNames('px-sm py-xs', getBorderColorTypeClassName(borderDefault(container, 'border')))}>
|
|
55
|
-
{children}
|
|
56
|
-
</td>),
|
|
57
|
-
}}>
|
|
58
|
-
{children}
|
|
59
|
-
</ReactMarkdown>
|
|
60
|
-
</div>);
|
|
61
|
-
//# sourceMappingURL=index.jsx.map
|