@intlayer/design-system 8.3.2 → 8.3.3
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/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/IDE/IDE.mjs +1 -1
- package/dist/esm/components/IDE/IDE.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs.map +1 -1
- package/dist/esm/components/MaxHeightSmoother/index.mjs +1 -1
- package/dist/esm/components/MaxHeightSmoother/index.mjs.map +1 -1
- package/dist/esm/components/Modal/Modal.mjs +1 -1
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +1 -1
- package/dist/esm/components/SwitchSelector/index.mjs +1 -1
- package/dist/esm/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/esm/hooks/index.mjs +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/breadcrumb.content.d.ts +1 -1
- package/dist/types/components/Browser/Browser.content.d.ts +8 -8
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Carousel/index.content.d.ts +3 -3
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
- package/dist/types/components/Command/index.d.ts +2 -2
- package/dist/types/components/Container/index.d.ts +7 -7
- package/dist/types/components/CopyButton/CopyButton.content.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +12 -12
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +4 -4
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +27 -27
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +16 -16
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +12 -12
- package/dist/types/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +16 -16
- package/dist/types/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +4 -4
- package/dist/types/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +3 -3
- package/dist/types/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +2 -2
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +15 -15
- package/dist/types/components/ExpandCollapse/expandCollapse.content.d.ts +1 -1
- package/dist/types/components/IDE/code.content.d.ts +2 -2
- package/dist/types/components/IDE/copyCode.content.d.ts +2 -2
- package/dist/types/components/IDE/selectors.content.d.ts +6 -6
- package/dist/types/components/Input/Checkbox.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +3 -3
- package/dist/types/components/Loader/index.content.d.ts +1 -1
- package/dist/types/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +8 -8
- package/dist/types/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +6 -6
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts.map +1 -1
- package/dist/types/components/MaxHeightSmoother/index.d.ts +80 -100
- package/dist/types/components/MaxHeightSmoother/index.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/Pagination/pagination.content.d.ts +5 -5
- package/dist/types/components/RightDrawer/rightDrawer.content.d.ts +2 -2
- package/dist/types/components/SwitchSelector/index.d.ts +3 -1
- package/dist/types/components/SwitchSelector/index.d.ts.map +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/types/components/Table/table.content.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +2 -2
- package/dist/types/components/Terminal/terminal.content.d.ts +2 -2
- package/package.json +14 -14
|
@@ -25,7 +25,7 @@ declare const dictionaryFieldEditorContent: {
|
|
|
25
25
|
vi: string;
|
|
26
26
|
uk: string;
|
|
27
27
|
}, {
|
|
28
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
28
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
29
29
|
} & {
|
|
30
30
|
translation: {
|
|
31
31
|
en: string;
|
|
@@ -68,7 +68,7 @@ declare const dictionaryFieldEditorContent: {
|
|
|
68
68
|
vi: string;
|
|
69
69
|
uk: string;
|
|
70
70
|
}, {
|
|
71
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
71
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
72
72
|
} & {
|
|
73
73
|
translation: {
|
|
74
74
|
en: string;
|
|
@@ -24,7 +24,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
27
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -67,7 +67,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
70
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -110,7 +110,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
110
110
|
vi: string;
|
|
111
111
|
uk: string;
|
|
112
112
|
}, {
|
|
113
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
113
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
114
114
|
} & {
|
|
115
115
|
translation: {
|
|
116
116
|
en: string;
|
|
@@ -153,7 +153,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
153
153
|
vi: string;
|
|
154
154
|
uk: string;
|
|
155
155
|
}, {
|
|
156
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
156
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
157
157
|
} & {
|
|
158
158
|
translation: {
|
|
159
159
|
en: string;
|
|
@@ -196,7 +196,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
196
196
|
vi: string;
|
|
197
197
|
uk: string;
|
|
198
198
|
}, {
|
|
199
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
199
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
200
200
|
} & {
|
|
201
201
|
translation: {
|
|
202
202
|
en: string;
|
|
@@ -239,7 +239,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
239
239
|
vi: string;
|
|
240
240
|
uk: string;
|
|
241
241
|
}, {
|
|
242
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
242
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
243
243
|
} & {
|
|
244
244
|
translation: {
|
|
245
245
|
en: string;
|
|
@@ -282,7 +282,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
282
282
|
vi: string;
|
|
283
283
|
uk: string;
|
|
284
284
|
}, {
|
|
285
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
285
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
286
286
|
} & {
|
|
287
287
|
translation: {
|
|
288
288
|
en: string;
|
|
@@ -325,7 +325,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
325
325
|
vi: string;
|
|
326
326
|
uk: string;
|
|
327
327
|
}, {
|
|
328
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
328
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
329
329
|
} & {
|
|
330
330
|
translation: {
|
|
331
331
|
en: string;
|
|
@@ -368,7 +368,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
368
368
|
vi: string;
|
|
369
369
|
uk: string;
|
|
370
370
|
}, {
|
|
371
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
371
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
372
372
|
} & {
|
|
373
373
|
translation: {
|
|
374
374
|
en: string;
|
|
@@ -411,7 +411,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
411
411
|
vi: string;
|
|
412
412
|
uk: string;
|
|
413
413
|
}, {
|
|
414
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
414
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
415
415
|
} & {
|
|
416
416
|
translation: {
|
|
417
417
|
en: string;
|
|
@@ -454,7 +454,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
454
454
|
vi: string;
|
|
455
455
|
uk: string;
|
|
456
456
|
}, {
|
|
457
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
457
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
458
458
|
} & {
|
|
459
459
|
translation: {
|
|
460
460
|
en: string;
|
|
@@ -497,7 +497,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
497
497
|
vi: string;
|
|
498
498
|
uk: string;
|
|
499
499
|
}, {
|
|
500
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
500
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
501
501
|
} & {
|
|
502
502
|
translation: {
|
|
503
503
|
en: string;
|
|
@@ -540,7 +540,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
540
540
|
vi: string;
|
|
541
541
|
uk: string;
|
|
542
542
|
}, {
|
|
543
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
543
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
544
544
|
} & {
|
|
545
545
|
translation: {
|
|
546
546
|
en: string;
|
|
@@ -583,7 +583,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
583
583
|
vi: string;
|
|
584
584
|
uk: string;
|
|
585
585
|
}, {
|
|
586
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
586
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
587
587
|
} & {
|
|
588
588
|
translation: {
|
|
589
589
|
en: string;
|
|
@@ -626,7 +626,7 @@ declare const nodeTypeSelectorContent: {
|
|
|
626
626
|
vi: string;
|
|
627
627
|
uk: string;
|
|
628
628
|
}, {
|
|
629
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
629
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
630
630
|
} & {
|
|
631
631
|
translation: {
|
|
632
632
|
en: string;
|
|
@@ -25,7 +25,7 @@ declare const expandCollapseContent: {
|
|
|
25
25
|
vi: string;
|
|
26
26
|
uk: string;
|
|
27
27
|
}, {
|
|
28
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
28
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
29
29
|
} & {
|
|
30
30
|
translation: {
|
|
31
31
|
en: string;
|
|
@@ -24,7 +24,7 @@ declare const codeContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
27
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -67,7 +67,7 @@ declare const codeContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
70
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -24,7 +24,7 @@ declare const copyContentContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
27
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -67,7 +67,7 @@ declare const copyContentContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
70
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -25,7 +25,7 @@ declare const selectorsContent: {
|
|
|
25
25
|
vi: string;
|
|
26
26
|
uk: string;
|
|
27
27
|
}, {
|
|
28
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
28
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
29
29
|
} & {
|
|
30
30
|
translation: {
|
|
31
31
|
en: string;
|
|
@@ -68,7 +68,7 @@ declare const selectorsContent: {
|
|
|
68
68
|
vi: string;
|
|
69
69
|
uk: string;
|
|
70
70
|
}, {
|
|
71
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
71
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
72
72
|
} & {
|
|
73
73
|
translation: {
|
|
74
74
|
en: string;
|
|
@@ -113,7 +113,7 @@ declare const selectorsContent: {
|
|
|
113
113
|
vi: string;
|
|
114
114
|
uk: string;
|
|
115
115
|
}, {
|
|
116
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
116
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
117
117
|
} & {
|
|
118
118
|
translation: {
|
|
119
119
|
en: string;
|
|
@@ -156,7 +156,7 @@ declare const selectorsContent: {
|
|
|
156
156
|
vi: string;
|
|
157
157
|
uk: string;
|
|
158
158
|
}, {
|
|
159
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
159
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
160
160
|
} & {
|
|
161
161
|
translation: {
|
|
162
162
|
en: string;
|
|
@@ -201,7 +201,7 @@ declare const selectorsContent: {
|
|
|
201
201
|
vi: string;
|
|
202
202
|
uk: string;
|
|
203
203
|
}, {
|
|
204
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
204
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
205
205
|
} & {
|
|
206
206
|
translation: {
|
|
207
207
|
en: string;
|
|
@@ -244,7 +244,7 @@ declare const selectorsContent: {
|
|
|
244
244
|
vi: string;
|
|
245
245
|
uk: string;
|
|
246
246
|
}, {
|
|
247
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
247
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
248
248
|
} & {
|
|
249
249
|
translation: {
|
|
250
250
|
en: string;
|
|
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
6
6
|
declare const checkboxVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg";
|
|
9
|
-
color?: "error" | "success" | "
|
|
9
|
+
color?: "error" | "success" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "text" | "dark" | "custom";
|
|
10
10
|
validationStyleEnabled?: "enabled" | "disabled";
|
|
11
11
|
} & class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
declare enum CheckboxSize {
|
|
@@ -53,9 +53,9 @@ declare enum LinkUnderlined {
|
|
|
53
53
|
FALSE = "false"
|
|
54
54
|
}
|
|
55
55
|
declare const linkVariants: (props?: {
|
|
56
|
-
variant?: "default" | "invisible-link" | "
|
|
57
|
-
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "
|
|
58
|
-
color?: "
|
|
56
|
+
variant?: "default" | "invisible-link" | "button" | "button-outlined" | "hoverable";
|
|
57
|
+
roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
|
|
58
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text" | "text-inverse" | "error" | "success" | "custom";
|
|
59
59
|
size?: "sm" | "md" | "lg" | "xl" | "custom";
|
|
60
60
|
underlined?: boolean | LinkUnderlined.DEFAULT;
|
|
61
61
|
} & class_variance_authority_types0.ClassProp) => string;
|
|
@@ -24,7 +24,7 @@ declare const loaderContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
27
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -24,7 +24,7 @@ declare const localeSwitcherContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
27
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -67,7 +67,7 @@ declare const localeSwitcherContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
70
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -110,7 +110,7 @@ declare const localeSwitcherContent: {
|
|
|
110
110
|
vi: string;
|
|
111
111
|
uk: string;
|
|
112
112
|
}, {
|
|
113
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
113
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
114
114
|
} & {
|
|
115
115
|
translation: {
|
|
116
116
|
en: string;
|
|
@@ -154,7 +154,7 @@ declare const localeSwitcherContent: {
|
|
|
154
154
|
vi: string;
|
|
155
155
|
uk: string;
|
|
156
156
|
}, {
|
|
157
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
157
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
158
158
|
} & {
|
|
159
159
|
translation: {
|
|
160
160
|
en: string;
|
|
@@ -197,7 +197,7 @@ declare const localeSwitcherContent: {
|
|
|
197
197
|
vi: string;
|
|
198
198
|
uk: string;
|
|
199
199
|
}, {
|
|
200
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
200
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
201
201
|
} & {
|
|
202
202
|
translation: {
|
|
203
203
|
en: string;
|
|
@@ -240,7 +240,7 @@ declare const localeSwitcherContent: {
|
|
|
240
240
|
vi: string;
|
|
241
241
|
uk: string;
|
|
242
242
|
}, {
|
|
243
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
243
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
244
244
|
} & {
|
|
245
245
|
translation: {
|
|
246
246
|
en: string;
|
|
@@ -285,7 +285,7 @@ declare const localeSwitcherContent: {
|
|
|
285
285
|
vi: string;
|
|
286
286
|
uk: string;
|
|
287
287
|
}, {
|
|
288
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
288
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
289
289
|
} & {
|
|
290
290
|
translation: {
|
|
291
291
|
en: string;
|
|
@@ -328,7 +328,7 @@ declare const localeSwitcherContent: {
|
|
|
328
328
|
vi: string;
|
|
329
329
|
uk: string;
|
|
330
330
|
}, {
|
|
331
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
331
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
332
332
|
} & {
|
|
333
333
|
translation: {
|
|
334
334
|
en: string;
|
|
@@ -24,7 +24,7 @@ declare const localeSwitcherContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
27
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -67,7 +67,7 @@ declare const localeSwitcherContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
70
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -110,7 +110,7 @@ declare const localeSwitcherContent: {
|
|
|
110
110
|
vi: string;
|
|
111
111
|
uk: string;
|
|
112
112
|
}, {
|
|
113
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
113
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
114
114
|
} & {
|
|
115
115
|
translation: {
|
|
116
116
|
en: string;
|
|
@@ -154,7 +154,7 @@ declare const localeSwitcherContent: {
|
|
|
154
154
|
vi: string;
|
|
155
155
|
uk: string;
|
|
156
156
|
}, {
|
|
157
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
157
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
158
158
|
} & {
|
|
159
159
|
translation: {
|
|
160
160
|
en: string;
|
|
@@ -197,7 +197,7 @@ declare const localeSwitcherContent: {
|
|
|
197
197
|
vi: string;
|
|
198
198
|
uk: string;
|
|
199
199
|
}, {
|
|
200
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
200
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
201
201
|
} & {
|
|
202
202
|
translation: {
|
|
203
203
|
en: string;
|
|
@@ -240,7 +240,7 @@ declare const localeSwitcherContent: {
|
|
|
240
240
|
vi: string;
|
|
241
241
|
uk: string;
|
|
242
242
|
}, {
|
|
243
|
-
nodeType: _intlayer_types_nodeType0.NodeType.Translation
|
|
243
|
+
nodeType: "translation" | _intlayer_types_nodeType0.NodeType.Translation;
|
|
244
244
|
} & {
|
|
245
245
|
translation: {
|
|
246
246
|
en: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkDownRender.d.ts","names":[],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,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AAA,CAAA,GAAA,CAAA,OAAA;;;;OAM/B,wBAAA,YAA+B,kBAAA,CAAA,GAAA,CAAA,OAAA;EAAA;AAAA;AAAA,cAyDrB,gBAAA,EAAkB,EAAA,CAAG,qBAAA"}
|
|
@@ -20,9 +20,9 @@ interface MaxHeightSmootherProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
* MaxHeightSmoother Component
|
|
21
21
|
*
|
|
22
22
|
* A sophisticated container component that provides smooth height transitions
|
|
23
|
-
* for collapsible content.
|
|
24
|
-
*
|
|
25
|
-
* and
|
|
23
|
+
* for collapsible content. Implemented entirely in CSS — no client-side
|
|
24
|
+
* JavaScript, hooks, or event listeners — making it compatible with React
|
|
25
|
+
* Server Components and Next.js App Router without `'use client'`.
|
|
26
26
|
*
|
|
27
27
|
* @component
|
|
28
28
|
* @example
|
|
@@ -38,125 +38,105 @@ interface MaxHeightSmootherProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
38
38
|
* @example
|
|
39
39
|
* Hover-triggered expansion:
|
|
40
40
|
* ```tsx
|
|
41
|
-
* <MaxHeightSmoother isOverable
|
|
42
|
-
* <
|
|
43
|
-
* <p>This content expands when you hover over the container.</p>
|
|
44
|
-
* <p>Perfect for preview cards or tooltips.</p>
|
|
45
|
-
* </div>
|
|
41
|
+
* <MaxHeightSmoother isOverable>
|
|
42
|
+
* <p>This content expands when you hover over the container.</p>
|
|
46
43
|
* </MaxHeightSmoother>
|
|
47
44
|
* ```
|
|
48
45
|
*
|
|
49
46
|
* @example
|
|
50
|
-
*
|
|
47
|
+
* Focus-triggered expansion (keyboard accessible):
|
|
51
48
|
* ```tsx
|
|
52
|
-
* <MaxHeightSmoother isFocusable
|
|
53
|
-
* <
|
|
54
|
-
* <h3>Expandable Section</h3>
|
|
55
|
-
* <p>Tab to focus this container to expand the content.</p>
|
|
56
|
-
* <p>Great for accessible progressive disclosure.</p>
|
|
57
|
-
* </div>
|
|
49
|
+
* <MaxHeightSmoother isFocusable>
|
|
50
|
+
* <p>Tab to focus this container to expand the content.</p>
|
|
58
51
|
* </MaxHeightSmoother>
|
|
59
52
|
* ```
|
|
60
53
|
*
|
|
61
54
|
* @example
|
|
62
55
|
* With minimum height for preview:
|
|
63
56
|
* ```tsx
|
|
64
|
-
* <MaxHeightSmoother
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* className="border rounded-lg p-4"
|
|
68
|
-
* >
|
|
69
|
-
* <div>
|
|
70
|
-
* <h3>Article Preview</h3>
|
|
71
|
-
* <p>This article preview shows the first few lines...</p>
|
|
72
|
-
* <p>Hover to see the full content with smooth expansion.</p>
|
|
73
|
-
* <p>The minHeight ensures some content is always visible.</p>
|
|
74
|
-
* </div>
|
|
57
|
+
* <MaxHeightSmoother isOverable minHeight={100} className="border rounded-lg p-4">
|
|
58
|
+
* <h3>Article Preview</h3>
|
|
59
|
+
* <p>This shows a preview of the content. Hover to see all.</p>
|
|
75
60
|
* </MaxHeightSmoother>
|
|
76
61
|
* ```
|
|
77
62
|
*
|
|
78
63
|
* @example
|
|
79
|
-
* Combined hover and focus
|
|
64
|
+
* Combined hover and focus:
|
|
80
65
|
* ```tsx
|
|
81
|
-
* <MaxHeightSmoother
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* minHeight={80}
|
|
85
|
-
* >
|
|
86
|
-
* <div>
|
|
87
|
-
* <h4>Interactive Card</h4>
|
|
88
|
-
* <p>Expands on both hover and keyboard focus.</p>
|
|
89
|
-
* <p>Accessible to both mouse and keyboard users.</p>
|
|
90
|
-
* </div>
|
|
66
|
+
* <MaxHeightSmoother isOverable isFocusable minHeight={80}>
|
|
67
|
+
* <h4>Interactive Card</h4>
|
|
68
|
+
* <p>Expands on both hover and keyboard focus.</p>
|
|
91
69
|
* </MaxHeightSmoother>
|
|
92
70
|
* ```
|
|
93
71
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* -
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* -
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* -
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* -
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* -
|
|
138
|
-
* -
|
|
139
|
-
* -
|
|
140
|
-
* -
|
|
141
|
-
*
|
|
72
|
+
* ## Animation Strategies
|
|
73
|
+
*
|
|
74
|
+
* ### Strategy A — `grid-template-rows` (`minHeight === 0`)
|
|
75
|
+
* Transitions between `grid-rows-[0fr]` and `grid-rows-[1fr]`.
|
|
76
|
+
* Clean and performant; no fixed height ceiling required.
|
|
77
|
+
* Requires `min-h-0` on the inner wrapper so the grid track can fully collapse.
|
|
78
|
+
*
|
|
79
|
+
* ### Strategy B — `max-height` via CSS custom properties (`minHeight > 0`)
|
|
80
|
+
* When a visible preview floor is required, `grid-template-rows` produces a
|
|
81
|
+
* "dead time" artifact: the track silently grows from 0 → minHeight before
|
|
82
|
+
* anything visible happens, resulting in a perceived snap.
|
|
83
|
+
*
|
|
84
|
+
* `max-height` sidesteps this entirely — the transition starts from the
|
|
85
|
+
* already-visible floor value, producing a single continuous expansion.
|
|
86
|
+
*
|
|
87
|
+
* The collapsed floor (`--mhs-collapsed`) and expanded ceiling
|
|
88
|
+
* (`--mhs-expanded`) are injected as CSS variables via inline style,
|
|
89
|
+
* NOT as `max-height` directly. This lets Tailwind own `max-height`
|
|
90
|
+
* entirely, so `:hover` and `:focus-within` can override it freely
|
|
91
|
+
* without fighting inline-style specificity.
|
|
92
|
+
*
|
|
93
|
+
* Both variables are consumer-overridable via CSS:
|
|
94
|
+
* ```css
|
|
95
|
+
* .my-container {
|
|
96
|
+
* --mhs-collapsed: 80px;
|
|
97
|
+
* --mhs-expanded: 1200px;
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* Trade-off: easing is applied over [minHeight → 3000px], not the real
|
|
102
|
+
* content height. For typical content this is imperceptible. If pixel-perfect
|
|
103
|
+
* easing is critical, use a JS-measured height with a controlled `isHidden`
|
|
104
|
+
* prop and a `style={{ maxHeight }}` override instead.
|
|
105
|
+
*
|
|
106
|
+
* ## Interaction Modes
|
|
107
|
+
*
|
|
108
|
+
* 1. **Controlled** — Pass `isHidden` for external state control (e.g. accordion)
|
|
109
|
+
* 2. **Hover** — Set `isOverable` for mouse hover expansion
|
|
110
|
+
* 3. **Focus** — Set `isFocusable` for keyboard focus expansion
|
|
111
|
+
* 4. **Combined** — Use `isOverable` and `isFocusable` together
|
|
112
|
+
*
|
|
113
|
+
* ## Accessibility
|
|
114
|
+
*
|
|
115
|
+
* - `role="button"` and `tabIndex={0}` when `isFocusable` is true
|
|
116
|
+
* - `aria-expanded` reflects the current disclosure state
|
|
117
|
+
* - Focus expansion via `:focus-within` CSS pseudo-class
|
|
118
|
+
* - `motion-reduce:transition-none` respects `prefers-reduced-motion`
|
|
119
|
+
*
|
|
120
|
+
* Note: because this component relies on CSS pseudo-classes for interaction,
|
|
121
|
+
* keyboard toggle (Enter / Space) is not supported in uncontrolled mode.
|
|
122
|
+
* For full keyboard toggle behaviour, manage `isHidden` externally and
|
|
123
|
+
* wire an `onClick` / `onKeyDown` handler on the parent.
|
|
124
|
+
*
|
|
125
|
+
* ## Performance
|
|
126
|
+
*
|
|
127
|
+
* - Pure CSS animations — no JavaScript timers or DOM measurements
|
|
128
|
+
* - No `'use client'` directive required
|
|
129
|
+
* - Compatible with React Server Components and Next.js App Router
|
|
130
|
+
* - GPU-accelerated transitions
|
|
142
131
|
*
|
|
143
132
|
* @param props - Component props extending HTML div attributes
|
|
144
133
|
* @param props.children - Content to render within the container
|
|
145
|
-
* @param props.isHidden - Controlled collapse state (true=collapsed, false=expanded)
|
|
146
|
-
* @param props.isOverable - Enable hover-to-expand
|
|
147
|
-
* @param props.isFocusable - Enable focus-to-expand
|
|
148
|
-
* @param props.minHeight - Minimum height in pixels for collapsed state (default: 0)
|
|
149
|
-
* @param props.className - Additional CSS classes
|
|
150
|
-
* @param props.style - Inline styles (
|
|
151
|
-
* @param props.role - ARIA role (automatically set to "button" when focusable)
|
|
152
|
-
* @param props.tabIndex - Tab index (automatically set to 0 when focusable)
|
|
153
|
-
* @param props.aria-hidden - ARIA hidden state (controlled by isHidden when focusable)
|
|
154
|
-
* @param props.onClick - Click event handler
|
|
155
|
-
* @param props.onMouseEnter - Mouse enter event handler
|
|
156
|
-
* @param props.onMouseLeave - Mouse leave event handler
|
|
157
|
-
* @param props.onFocus - Focus event handler
|
|
158
|
-
* @param props.onBlur - Blur event handler
|
|
159
|
-
* @param props...rest - All other standard HTML div attributes
|
|
134
|
+
* @param props.isHidden - Controlled collapse state (`true` = collapsed, `false` = expanded)
|
|
135
|
+
* @param props.isOverable - Enable hover-to-expand behaviour
|
|
136
|
+
* @param props.isFocusable - Enable focus-to-expand behaviour with keyboard navigation
|
|
137
|
+
* @param props.minHeight - Minimum height in pixels for the collapsed state (default: 0)
|
|
138
|
+
* @param props.className - Additional CSS classes
|
|
139
|
+
* @param props.style - Inline styles (CSS variable overrides will be merged)
|
|
160
140
|
*
|
|
161
141
|
* @returns A smooth height-transitioning container with configurable interaction modes
|
|
162
142
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/MaxHeightSmoother/index.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/MaxHeightSmoother/index.tsx"],"mappings":";;;;;AAC0E;UAKhE,sBAAA,SAA+B,cAAA,CAAe,cAAA;;EAEtD,QAAA,EAAU,SAAA;EAAA;EAEV,QAAA;EAJqD;EAMrD,UAAA;EANuC;EAQvC,WAAA;EANA;EAQA,SAAA;AAAA;;;;;;AA+HF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,iBAAA,EAAmB,EAAA,CAAG,sBAAA"}
|