@intlayer/design-system 5.8.0-canary.0 → 5.8.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/dist/.vite/manifest.json +45 -37
- package/dist/components/Breadcrumb/index.cjs +2 -3
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.mjs +3 -4
- package/dist/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.cjs.map +1 -0
- package/dist/components/CopyButton/CopyButton.content.d.ts.map +1 -0
- package/dist/components/CopyButton/CopyButton.content.mjs.map +1 -0
- package/dist/components/CopyButton/index.cjs +1 -2
- package/dist/components/CopyButton/index.cjs.map +1 -1
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.mjs +2 -3
- package/dist/components/CopyButton/index.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +3 -7
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +4 -8
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +1 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +2 -5
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +2 -24
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +1 -5
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +2 -6
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +2 -24
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -3
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +3 -4
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +1 -4
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +2 -5
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs +56 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs.map +1 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +9 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs +56 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs +41 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts +40 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs +42 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs.map +1 -0
- package/dist/components/ExpandCollapse/index.cjs +5 -0
- package/dist/components/ExpandCollapse/index.cjs.map +1 -0
- package/dist/components/ExpandCollapse/index.d.ts +2 -0
- package/dist/components/ExpandCollapse/index.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/index.mjs +5 -0
- package/dist/components/ExpandCollapse/index.mjs.map +1 -0
- package/dist/components/IDE/Code.cjs +12 -1
- package/dist/components/IDE/Code.cjs.map +1 -1
- package/dist/components/IDE/Code.d.ts +1 -0
- package/dist/components/IDE/Code.d.ts.map +1 -1
- package/dist/components/IDE/Code.mjs +12 -1
- package/dist/components/IDE/Code.mjs.map +1 -1
- package/dist/components/IDE/CopyCode.cjs +1 -2
- package/dist/components/IDE/CopyCode.cjs.map +1 -1
- package/dist/components/IDE/CopyCode.d.ts.map +1 -1
- package/dist/components/IDE/CopyCode.mjs +2 -3
- package/dist/components/IDE/CopyCode.mjs.map +1 -1
- package/dist/components/Loader/index.content.d.ts +2 -24
- package/dist/components/Loader/index.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +1 -2
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +2 -3
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +1 -2
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +2 -3
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
- package/dist/components/MarkDownRender/index.cjs +7 -0
- package/dist/components/MarkDownRender/index.cjs.map +1 -1
- package/dist/components/MarkDownRender/index.d.ts.map +1 -1
- package/dist/components/MarkDownRender/index.mjs +7 -0
- package/dist/components/MarkDownRender/index.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.mjs +1 -1
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.cjs +1 -1
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
- package/dist/components/Navbar/index.cjs +1 -1
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.mjs +1 -1
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.mjs.map +1 -1
- package/dist/components/SocialNetworks/index.cjs +1 -1
- package/dist/components/SocialNetworks/index.cjs.map +1 -1
- package/dist/components/SocialNetworks/index.mjs +1 -1
- package/dist/components/SocialNetworks/index.mjs.map +1 -1
- package/dist/components/Table/Table.cjs +4 -50
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.mjs +5 -51
- package/dist/components/Table/Table.mjs.map +1 -1
- package/dist/components/Table/table.content.cjs +0 -30
- package/dist/components/Table/table.content.cjs.map +1 -1
- package/dist/components/Table/table.content.d.ts +0 -66
- package/dist/components/Table/table.content.d.ts.map +1 -1
- package/dist/components/Table/table.content.mjs +0 -30
- package/dist/components/Table/table.content.mjs.map +1 -1
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +2 -0
- package/dist/components/index.mjs.map +1 -1
- package/package.json +19 -18
- package/dist/components/IDE/CopyButton.content.cjs.map +0 -1
- package/dist/components/IDE/CopyButton.content.d.ts.map +0 -1
- package/dist/components/IDE/CopyButton.content.mjs.map +0 -1
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.cjs +0 -0
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.d.ts +0 -0
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.mjs +0 -0
package/dist/.vite/manifest.json
CHANGED
|
@@ -178,8 +178,7 @@
|
|
|
178
178
|
"imports": [
|
|
179
179
|
"src/utils/cn.ts",
|
|
180
180
|
"src/components/Button/Button.tsx",
|
|
181
|
-
"src/components/Link/Link.tsx"
|
|
182
|
-
"src/components/Breadcrumb/breadcrumb.content.ts"
|
|
181
|
+
"src/components/Link/Link.tsx"
|
|
183
182
|
]
|
|
184
183
|
},
|
|
185
184
|
"src/components/Button/Button.tsx": {
|
|
@@ -287,14 +286,19 @@
|
|
|
287
286
|
"src/components/ContentSelector/ContentSelector.tsx"
|
|
288
287
|
]
|
|
289
288
|
},
|
|
289
|
+
"src/components/CopyButton/CopyButton.content.ts": {
|
|
290
|
+
"file": "components/CopyButton/CopyButton.content.cjs",
|
|
291
|
+
"name": "components/CopyButton/CopyButton.content",
|
|
292
|
+
"src": "src/components/CopyButton/CopyButton.content.ts",
|
|
293
|
+
"isEntry": true
|
|
294
|
+
},
|
|
290
295
|
"src/components/CopyButton/index.tsx": {
|
|
291
296
|
"file": "components/CopyButton/index.cjs",
|
|
292
297
|
"name": "components/CopyButton/index",
|
|
293
298
|
"src": "src/components/CopyButton/index.tsx",
|
|
294
299
|
"isEntry": true,
|
|
295
300
|
"imports": [
|
|
296
|
-
"src/components/Button/Button.tsx"
|
|
297
|
-
"src/components/IDE/CopyButton.content.ts"
|
|
301
|
+
"src/components/Button/Button.tsx"
|
|
298
302
|
]
|
|
299
303
|
},
|
|
300
304
|
"src/components/CopyToClipboard/index.tsx": {
|
|
@@ -468,11 +472,9 @@
|
|
|
468
472
|
"src/components/Label/index.tsx",
|
|
469
473
|
"src/components/DropDown/index.tsx",
|
|
470
474
|
"src/components/SwitchSelector/index.tsx",
|
|
471
|
-
"src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts",
|
|
472
475
|
"src/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.tsx",
|
|
473
476
|
"src/components/MarkDownRender/index.tsx",
|
|
474
|
-
"src/components/DictionaryFieldEditor/EnumKeyInput.tsx"
|
|
475
|
-
"src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"
|
|
477
|
+
"src/components/DictionaryFieldEditor/EnumKeyInput.tsx"
|
|
476
478
|
]
|
|
477
479
|
},
|
|
478
480
|
"src/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.tsx": {
|
|
@@ -491,7 +493,6 @@
|
|
|
491
493
|
"_Form-DJrUK3mm.cjs",
|
|
492
494
|
"src/components/Select/Multiselect.tsx",
|
|
493
495
|
"src/components/Select/Select.tsx",
|
|
494
|
-
"src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts",
|
|
495
496
|
"src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.ts"
|
|
496
497
|
]
|
|
497
498
|
},
|
|
@@ -513,7 +514,6 @@
|
|
|
513
514
|
"src": "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.ts",
|
|
514
515
|
"isEntry": true,
|
|
515
516
|
"imports": [
|
|
516
|
-
"src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts",
|
|
517
517
|
"_schemas-lh5OFOvX.cjs"
|
|
518
518
|
]
|
|
519
519
|
},
|
|
@@ -536,7 +536,6 @@
|
|
|
536
536
|
"src/components/Loader/index.tsx",
|
|
537
537
|
"src/components/Select/Multiselect.tsx",
|
|
538
538
|
"src/components/Select/Select.tsx",
|
|
539
|
-
"src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx",
|
|
540
539
|
"src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.ts"
|
|
541
540
|
]
|
|
542
541
|
},
|
|
@@ -558,7 +557,6 @@
|
|
|
558
557
|
"src": "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.ts",
|
|
559
558
|
"isEntry": true,
|
|
560
559
|
"imports": [
|
|
561
|
-
"src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts",
|
|
562
560
|
"_schemas-lh5OFOvX.cjs"
|
|
563
561
|
]
|
|
564
562
|
},
|
|
@@ -578,11 +576,9 @@
|
|
|
578
576
|
"src/components/Input/Input.tsx",
|
|
579
577
|
"src/components/Input/Checkbox.tsx",
|
|
580
578
|
"src/components/SwitchSelector/index.tsx",
|
|
581
|
-
"src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts",
|
|
582
579
|
"src/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.tsx",
|
|
583
580
|
"src/components/DictionaryFieldEditor/ContentEditor.tsx",
|
|
584
581
|
"src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx",
|
|
585
|
-
"src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts",
|
|
586
582
|
"src/components/DictionaryFieldEditor/JSONEditor.tsx",
|
|
587
583
|
"src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx",
|
|
588
584
|
"src/components/DictionaryFieldEditor/StructureEditor.tsx"
|
|
@@ -628,8 +624,7 @@
|
|
|
628
624
|
"src/utils/camelCase.ts",
|
|
629
625
|
"src/components/Accordion/Accordion.tsx",
|
|
630
626
|
"src/components/Button/Button.tsx",
|
|
631
|
-
"src/components/DictionaryFieldEditor/getIsEditableSection.ts"
|
|
632
|
-
"src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"
|
|
627
|
+
"src/components/DictionaryFieldEditor/getIsEditableSection.ts"
|
|
633
628
|
]
|
|
634
629
|
},
|
|
635
630
|
"src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts": {
|
|
@@ -645,8 +640,7 @@
|
|
|
645
640
|
"isEntry": true,
|
|
646
641
|
"imports": [
|
|
647
642
|
"src/components/Select/Multiselect.tsx",
|
|
648
|
-
"src/components/Select/Select.tsx"
|
|
649
|
-
"src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"
|
|
643
|
+
"src/components/Select/Select.tsx"
|
|
650
644
|
]
|
|
651
645
|
},
|
|
652
646
|
"src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx": {
|
|
@@ -664,8 +658,7 @@
|
|
|
664
658
|
"src/utils/cn.ts",
|
|
665
659
|
"src/components/Button/Button.tsx",
|
|
666
660
|
"src/components/Form/FormField.tsx",
|
|
667
|
-
"_Form-DJrUK3mm.cjs"
|
|
668
|
-
"src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"
|
|
661
|
+
"_Form-DJrUK3mm.cjs"
|
|
669
662
|
]
|
|
670
663
|
},
|
|
671
664
|
"src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx": {
|
|
@@ -699,8 +692,7 @@
|
|
|
699
692
|
"src/components/Toaster/Toast.tsx",
|
|
700
693
|
"src/hooks/useAsync/useAsyncStateStore.tsx",
|
|
701
694
|
"src/hooks/useScrollBlockage/useScrollBlockageStore.ts",
|
|
702
|
-
"src/components/DictionaryFieldEditor/NodeTypeSelector.tsx"
|
|
703
|
-
"src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"
|
|
695
|
+
"src/components/DictionaryFieldEditor/NodeTypeSelector.tsx"
|
|
704
696
|
]
|
|
705
697
|
},
|
|
706
698
|
"src/components/DictionaryFieldEditor/StructureView/structureView.content.ts": {
|
|
@@ -718,8 +710,7 @@
|
|
|
718
710
|
"src/components/Button/Button.tsx",
|
|
719
711
|
"src/components/Container/index.tsx",
|
|
720
712
|
"src/components/DropDown/index.tsx",
|
|
721
|
-
"src/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.tsx"
|
|
722
|
-
"src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"
|
|
713
|
+
"src/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.tsx"
|
|
723
714
|
]
|
|
724
715
|
},
|
|
725
716
|
"src/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.tsx": {
|
|
@@ -839,6 +830,31 @@
|
|
|
839
830
|
"src/components/EditableField/EditableFieldTextArea.tsx"
|
|
840
831
|
]
|
|
841
832
|
},
|
|
833
|
+
"src/components/ExpandCollapse/ExpandCollapse.tsx": {
|
|
834
|
+
"file": "components/ExpandCollapse/ExpandCollapse.cjs",
|
|
835
|
+
"name": "components/ExpandCollapse/ExpandCollapse",
|
|
836
|
+
"src": "src/components/ExpandCollapse/ExpandCollapse.tsx",
|
|
837
|
+
"isEntry": true,
|
|
838
|
+
"imports": [
|
|
839
|
+
"src/utils/cn.ts",
|
|
840
|
+
"src/components/MaxHeightSmoother/index.tsx"
|
|
841
|
+
]
|
|
842
|
+
},
|
|
843
|
+
"src/components/ExpandCollapse/expandCollapse.content.ts": {
|
|
844
|
+
"file": "components/ExpandCollapse/expandCollapse.content.cjs",
|
|
845
|
+
"name": "components/ExpandCollapse/expandCollapse.content",
|
|
846
|
+
"src": "src/components/ExpandCollapse/expandCollapse.content.ts",
|
|
847
|
+
"isEntry": true
|
|
848
|
+
},
|
|
849
|
+
"src/components/ExpandCollapse/index.tsx": {
|
|
850
|
+
"file": "components/ExpandCollapse/index.cjs",
|
|
851
|
+
"name": "components/ExpandCollapse/index",
|
|
852
|
+
"src": "src/components/ExpandCollapse/index.tsx",
|
|
853
|
+
"isEntry": true,
|
|
854
|
+
"imports": [
|
|
855
|
+
"src/components/ExpandCollapse/ExpandCollapse.tsx"
|
|
856
|
+
]
|
|
857
|
+
},
|
|
842
858
|
"src/components/Flags/Flag.tsx": {
|
|
843
859
|
"file": "components/Flags/Flag.cjs",
|
|
844
860
|
"name": "components/Flags/Flag",
|
|
@@ -1154,6 +1170,7 @@
|
|
|
1154
1170
|
"imports": [
|
|
1155
1171
|
"src/utils/cn.ts",
|
|
1156
1172
|
"src/components/Container/index.tsx",
|
|
1173
|
+
"src/components/ExpandCollapse/ExpandCollapse.tsx",
|
|
1157
1174
|
"src/components/IDE/CodeBlockClient.tsx",
|
|
1158
1175
|
"src/components/IDE/CodeConditionalRenderer.tsx",
|
|
1159
1176
|
"src/components/IDE/CodeFormatSelector.tsx",
|
|
@@ -1224,12 +1241,6 @@
|
|
|
1224
1241
|
"src/components/IDE/CodeContext.tsx"
|
|
1225
1242
|
]
|
|
1226
1243
|
},
|
|
1227
|
-
"src/components/IDE/CopyButton.content.ts": {
|
|
1228
|
-
"file": "components/IDE/CopyButton.content.cjs",
|
|
1229
|
-
"name": "components/IDE/CopyButton.content",
|
|
1230
|
-
"src": "src/components/IDE/CopyButton.content.ts",
|
|
1231
|
-
"isEntry": true
|
|
1232
|
-
},
|
|
1233
1244
|
"src/components/IDE/CopyCode.tsx": {
|
|
1234
1245
|
"file": "components/IDE/CopyCode.cjs",
|
|
1235
1246
|
"name": "components/IDE/CopyCode",
|
|
@@ -1237,8 +1248,7 @@
|
|
|
1237
1248
|
"isEntry": true,
|
|
1238
1249
|
"imports": [
|
|
1239
1250
|
"src/components/CopyButton/index.tsx",
|
|
1240
|
-
"src/components/Popover/index.tsx"
|
|
1241
|
-
"src/components/IDE/copyCode.content.ts"
|
|
1251
|
+
"src/components/Popover/index.tsx"
|
|
1242
1252
|
]
|
|
1243
1253
|
},
|
|
1244
1254
|
"src/components/IDE/FileList.tsx": {
|
|
@@ -1452,7 +1462,6 @@
|
|
|
1452
1462
|
"src/components/Input/Input.tsx",
|
|
1453
1463
|
"src/components/Input/Checkbox.tsx",
|
|
1454
1464
|
"src/components/SwitchSelector/index.tsx",
|
|
1455
|
-
"src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts",
|
|
1456
1465
|
"src/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.tsx"
|
|
1457
1466
|
]
|
|
1458
1467
|
},
|
|
@@ -1495,8 +1504,7 @@
|
|
|
1495
1504
|
"src/components/Container/index.tsx",
|
|
1496
1505
|
"src/components/DropDown/index.tsx",
|
|
1497
1506
|
"src/components/Input/Input.tsx",
|
|
1498
|
-
"src/components/Input/Checkbox.tsx"
|
|
1499
|
-
"src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"
|
|
1507
|
+
"src/components/Input/Checkbox.tsx"
|
|
1500
1508
|
]
|
|
1501
1509
|
},
|
|
1502
1510
|
"src/components/LocaleSwitcherDropDown/index.tsx": {
|
|
@@ -1906,9 +1914,8 @@
|
|
|
1906
1914
|
"imports": [
|
|
1907
1915
|
"src/utils/cn.ts",
|
|
1908
1916
|
"src/components/Button/Button.tsx",
|
|
1909
|
-
"src/components/
|
|
1910
|
-
"src/components/Modal/Modal.tsx"
|
|
1911
|
-
"src/components/Table/table.content.ts"
|
|
1917
|
+
"src/components/ExpandCollapse/ExpandCollapse.tsx",
|
|
1918
|
+
"src/components/Modal/Modal.tsx"
|
|
1912
1919
|
]
|
|
1913
1920
|
},
|
|
1914
1921
|
"src/components/Table/index.tsx": {
|
|
@@ -2086,6 +2093,7 @@
|
|
|
2086
2093
|
"src/components/DropDown/index.tsx",
|
|
2087
2094
|
"src/components/EditableField/EditableFieldInput.tsx",
|
|
2088
2095
|
"src/components/EditableField/EditableFieldTextArea.tsx",
|
|
2096
|
+
"src/components/ExpandCollapse/ExpandCollapse.tsx",
|
|
2089
2097
|
"src/components/Flags/Flag.tsx",
|
|
2090
2098
|
"src/components/Footer/index.tsx",
|
|
2091
2099
|
"src/components/Form/FormBase.tsx",
|
|
@@ -8,7 +8,6 @@ const reactIntlayer = require("react-intlayer");
|
|
|
8
8
|
const utils_cn = require("../../utils/cn.cjs");
|
|
9
9
|
const components_Button_Button = require("../Button/Button.cjs");
|
|
10
10
|
const components_Link_Link = require("../Link/Link.cjs");
|
|
11
|
-
const components_Breadcrumb_breadcrumb_content = require("./breadcrumb.content.cjs");
|
|
12
11
|
const LinkLink = ({
|
|
13
12
|
href,
|
|
14
13
|
lang,
|
|
@@ -19,7 +18,7 @@ const LinkLink = ({
|
|
|
19
18
|
locale,
|
|
20
19
|
...props
|
|
21
20
|
}) => {
|
|
22
|
-
const { linkLabel } = reactIntlayer.
|
|
21
|
+
const { linkLabel } = reactIntlayer.useIntlayer("breadcrumb");
|
|
23
22
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
24
23
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25
24
|
components_Link_Link.Link,
|
|
@@ -48,7 +47,7 @@ const ButtonLink = ({
|
|
|
48
47
|
position,
|
|
49
48
|
...props
|
|
50
49
|
}) => {
|
|
51
|
-
const { linkLabel } = reactIntlayer.
|
|
50
|
+
const { linkLabel } = reactIntlayer.useIntlayer("breadcrumb");
|
|
52
51
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
53
52
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
54
53
|
components_Button_Button.Button,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/Breadcrumb/index.tsx"],"sourcesContent":["'use client';\n\nimport type { Locales } from '@intlayer/config/client';\nimport { ChevronRightIcon } from 'lucide-react';\nimport { Fragment, type FC, type HTMLAttributes } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/Breadcrumb/index.tsx"],"sourcesContent":["'use client';\n\nimport type { Locales } from '@intlayer/config/client';\nimport { ChevronRightIcon } from 'lucide-react';\nimport { Fragment, type FC, type HTMLAttributes } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport { cn } from '../../utils/cn';\nimport { Button, ButtonVariant, type ButtonProps } from '../Button';\nimport { Link, LinkColor, type LinkProps } from '../Link';\n\ntype LinkLinkProps = {\n children: string;\n position: number;\n locale?: Locales;\n} & Omit<LinkProps, 'children' | 'label'>;\n\nconst LinkLink: FC<LinkLinkProps> = ({\n href,\n lang,\n children,\n onClick,\n color,\n position,\n locale,\n ...props\n}) => {\n const { linkLabel } = useIntlayer('breadcrumb');\n\n return (\n <>\n <Link\n href={href}\n locale={locale}\n color={color}\n onClick={onClick}\n itemProp=\"item\"\n isExternalLink={false}\n itemScope\n itemType=\"https://schema.org/WebPage\"\n {...props}\n label={`${linkLabel} ${children}`}\n itemID={href}\n >\n <span itemProp=\"name\">{children}</span>\n </Link>\n <meta itemProp=\"position\" content={position.toString()} />\n </>\n );\n};\n\ntype ButtonButtonProps = {\n children: string;\n position: number;\n} & Omit<ButtonProps, 'children' | 'label'>;\n\nconst ButtonLink: FC<ButtonButtonProps> = ({\n children: text,\n onClick,\n color,\n position,\n ...props\n}) => {\n const { linkLabel } = useIntlayer('breadcrumb');\n\n return (\n <>\n <Button\n onClick={onClick}\n variant={ButtonVariant.LINK}\n label={`${linkLabel} ${text}`}\n color={color}\n itemProp=\"item\"\n {...props}\n >\n <span itemProp=\"name\">{text}</span>\n </Button>\n <meta itemProp=\"position\" content={position.toString()} />\n </>\n );\n};\n\ntype SpanProps = {\n children: string;\n position: number;\n} & HTMLAttributes<HTMLSpanElement>;\n\nconst Span: FC<SpanProps> = ({ children, position, ...props }) => (\n <span itemProp=\"item\">\n <span itemProp=\"name\" {...props}>\n {children}\n </span>\n <meta itemProp=\"position\" content={position.toString()} />\n </span>\n);\n\ntype DetailedBreadcrumbLink = {\n href?: string;\n text: string;\n onClick?: () => void;\n};\nexport type BreadcrumbLink = string | DetailedBreadcrumbLink;\n\nexport type BreadcrumbProps = {\n links: BreadcrumbLink[];\n color?: `${LinkColor}` | LinkColor;\n locale?: Locales;\n elementType?: 'page' | 'location';\n} & HTMLAttributes<HTMLOListElement>;\n\nexport const Breadcrumb: FC<BreadcrumbProps> = ({\n links,\n className,\n color = LinkColor.TEXT,\n locale,\n elementType = 'page',\n ...props\n}) => (\n <nav aria-label=\"breadcrumb\">\n <ol\n className={cn(\n 'flex flex-row flex-wrap items-center gap-2 text-sm',\n className\n )}\n itemScope\n itemType=\"http://schema.org/BreadcrumbList\"\n {...props}\n >\n {links.map((link, index) => {\n const isLastLink = index === links.length - 1;\n const isLink =\n typeof link === 'object' && typeof link.href === 'string';\n const isButton =\n typeof link === 'object' && typeof link.onClick === 'function';\n const isActive = index === links.length - 1;\n const ariaCurrent = isActive ? elementType : undefined;\n\n const text = (link as DetailedBreadcrumbLink).text ?? link;\n\n let section = (\n <Span key={text} position={index + 1} aria-current={ariaCurrent}>\n {text}\n </Span>\n );\n\n if (isLink) {\n section = (\n <LinkLink\n key={text}\n href={link.href!}\n color={color}\n position={index + 1}\n locale={locale}\n aria-current={ariaCurrent}\n >\n {text}\n </LinkLink>\n );\n } else if (isButton) {\n section = (\n <ButtonLink\n key={text}\n onClick={link.onClick!}\n color={color}\n position={index + 1}\n aria-current={ariaCurrent}\n >\n {text}\n </ButtonLink>\n );\n }\n\n const listElement = (\n <li\n itemProp=\"itemListElement\"\n itemScope\n itemType=\"https://schema.org/ListItem\"\n key={text}\n >\n {section}\n </li>\n );\n\n if (isLastLink) {\n return listElement;\n }\n\n return (\n <Fragment key={text}>\n {listElement}\n <ChevronRightIcon size={10} />\n </Fragment>\n );\n })}\n </ol>\n </nav>\n);\n"],"names":["useIntlayer","jsxs","Fragment","jsx","Link","Button","ButtonVariant","LinkColor","cn","ChevronRightIcon"],"mappings":";;;;;;;;;;AAgBA,MAAM,WAA8B,CAAC;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,EAAE,UAAA,IAAcA,cAAAA,YAAY,YAAY;AAE9C,SACEC,2BAAAA,KAAAC,qBAAA,EACE,UAAA;AAAA,IAAAC,2BAAAA;AAAAA,MAACC,qBAAAA;AAAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,WAAS;AAAA,QACT,UAAS;AAAA,QACR,GAAG;AAAA,QACJ,OAAO,GAAG,SAAS,IAAI,QAAQ;AAAA,QAC/B,QAAQ;AAAA,QAER,UAAAD,2BAAAA,IAAC,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f;AAAA,IAEJ,CAAC;AAAA,EAAA;AACH,EAAA,CACF;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAY,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAQ,SAAS,EAAkB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAY,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAQ,SAAS,EAAkB,MAAM,SAAS,CAAC;AAuF1D,KAAK,sBAAsB,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,sBAAsB,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,GAAG,SAAS,EAAE,GAAG,SAAS,CAAC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CACnC,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAErC,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAsF1C,CAAC"}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronRightIcon } from "lucide-react";
|
|
4
4
|
import { Fragment } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useIntlayer } from "react-intlayer";
|
|
6
6
|
import { cn } from "../../utils/cn.mjs";
|
|
7
7
|
import { Button, ButtonVariant } from "../Button/Button.mjs";
|
|
8
8
|
import { LinkColor, Link } from "../Link/Link.mjs";
|
|
9
|
-
import { breadCrumbContent } from "./breadcrumb.content.mjs";
|
|
10
9
|
const LinkLink = ({
|
|
11
10
|
href,
|
|
12
11
|
lang,
|
|
@@ -17,7 +16,7 @@ const LinkLink = ({
|
|
|
17
16
|
locale,
|
|
18
17
|
...props
|
|
19
18
|
}) => {
|
|
20
|
-
const { linkLabel } =
|
|
19
|
+
const { linkLabel } = useIntlayer("breadcrumb");
|
|
21
20
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
22
21
|
/* @__PURE__ */ jsx(
|
|
23
22
|
Link,
|
|
@@ -46,7 +45,7 @@ const ButtonLink = ({
|
|
|
46
45
|
position,
|
|
47
46
|
...props
|
|
48
47
|
}) => {
|
|
49
|
-
const { linkLabel } =
|
|
48
|
+
const { linkLabel } = useIntlayer("breadcrumb");
|
|
50
49
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
51
50
|
/* @__PURE__ */ jsx(
|
|
52
51
|
Button,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/components/Breadcrumb/index.tsx"],"sourcesContent":["'use client';\n\nimport type { Locales } from '@intlayer/config/client';\nimport { ChevronRightIcon } from 'lucide-react';\nimport { Fragment, type FC, type HTMLAttributes } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/components/Breadcrumb/index.tsx"],"sourcesContent":["'use client';\n\nimport type { Locales } from '@intlayer/config/client';\nimport { ChevronRightIcon } from 'lucide-react';\nimport { Fragment, type FC, type HTMLAttributes } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport { cn } from '../../utils/cn';\nimport { Button, ButtonVariant, type ButtonProps } from '../Button';\nimport { Link, LinkColor, type LinkProps } from '../Link';\n\ntype LinkLinkProps = {\n children: string;\n position: number;\n locale?: Locales;\n} & Omit<LinkProps, 'children' | 'label'>;\n\nconst LinkLink: FC<LinkLinkProps> = ({\n href,\n lang,\n children,\n onClick,\n color,\n position,\n locale,\n ...props\n}) => {\n const { linkLabel } = useIntlayer('breadcrumb');\n\n return (\n <>\n <Link\n href={href}\n locale={locale}\n color={color}\n onClick={onClick}\n itemProp=\"item\"\n isExternalLink={false}\n itemScope\n itemType=\"https://schema.org/WebPage\"\n {...props}\n label={`${linkLabel} ${children}`}\n itemID={href}\n >\n <span itemProp=\"name\">{children}</span>\n </Link>\n <meta itemProp=\"position\" content={position.toString()} />\n </>\n );\n};\n\ntype ButtonButtonProps = {\n children: string;\n position: number;\n} & Omit<ButtonProps, 'children' | 'label'>;\n\nconst ButtonLink: FC<ButtonButtonProps> = ({\n children: text,\n onClick,\n color,\n position,\n ...props\n}) => {\n const { linkLabel } = useIntlayer('breadcrumb');\n\n return (\n <>\n <Button\n onClick={onClick}\n variant={ButtonVariant.LINK}\n label={`${linkLabel} ${text}`}\n color={color}\n itemProp=\"item\"\n {...props}\n >\n <span itemProp=\"name\">{text}</span>\n </Button>\n <meta itemProp=\"position\" content={position.toString()} />\n </>\n );\n};\n\ntype SpanProps = {\n children: string;\n position: number;\n} & HTMLAttributes<HTMLSpanElement>;\n\nconst Span: FC<SpanProps> = ({ children, position, ...props }) => (\n <span itemProp=\"item\">\n <span itemProp=\"name\" {...props}>\n {children}\n </span>\n <meta itemProp=\"position\" content={position.toString()} />\n </span>\n);\n\ntype DetailedBreadcrumbLink = {\n href?: string;\n text: string;\n onClick?: () => void;\n};\nexport type BreadcrumbLink = string | DetailedBreadcrumbLink;\n\nexport type BreadcrumbProps = {\n links: BreadcrumbLink[];\n color?: `${LinkColor}` | LinkColor;\n locale?: Locales;\n elementType?: 'page' | 'location';\n} & HTMLAttributes<HTMLOListElement>;\n\nexport const Breadcrumb: FC<BreadcrumbProps> = ({\n links,\n className,\n color = LinkColor.TEXT,\n locale,\n elementType = 'page',\n ...props\n}) => (\n <nav aria-label=\"breadcrumb\">\n <ol\n className={cn(\n 'flex flex-row flex-wrap items-center gap-2 text-sm',\n className\n )}\n itemScope\n itemType=\"http://schema.org/BreadcrumbList\"\n {...props}\n >\n {links.map((link, index) => {\n const isLastLink = index === links.length - 1;\n const isLink =\n typeof link === 'object' && typeof link.href === 'string';\n const isButton =\n typeof link === 'object' && typeof link.onClick === 'function';\n const isActive = index === links.length - 1;\n const ariaCurrent = isActive ? elementType : undefined;\n\n const text = (link as DetailedBreadcrumbLink).text ?? link;\n\n let section = (\n <Span key={text} position={index + 1} aria-current={ariaCurrent}>\n {text}\n </Span>\n );\n\n if (isLink) {\n section = (\n <LinkLink\n key={text}\n href={link.href!}\n color={color}\n position={index + 1}\n locale={locale}\n aria-current={ariaCurrent}\n >\n {text}\n </LinkLink>\n );\n } else if (isButton) {\n section = (\n <ButtonLink\n key={text}\n onClick={link.onClick!}\n color={color}\n position={index + 1}\n aria-current={ariaCurrent}\n >\n {text}\n </ButtonLink>\n );\n }\n\n const listElement = (\n <li\n itemProp=\"itemListElement\"\n itemScope\n itemType=\"https://schema.org/ListItem\"\n key={text}\n >\n {section}\n </li>\n );\n\n if (isLastLink) {\n return listElement;\n }\n\n return (\n <Fragment key={text}>\n {listElement}\n <ChevronRightIcon size={10} />\n </Fragment>\n );\n })}\n </ol>\n </nav>\n);\n"],"names":["Fragment"],"mappings":";;;;;;;;AAgBA,MAAM,WAA8B,CAAC;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,EAAE,UAAA,IAAc,YAAY,YAAY;AAE9C,SACE,qBAAAA,YAAA,EACE,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA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EAAiB,MAAM,GAAA,CAAI;AAAA,MAAA,EAAA,GAFf,IAGf;AAAA,IAEJ,CAAC;AAAA,EAAA;AACH,EAAA,CACF;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyButton.content.cjs","sources":["../../../src/components/CopyButton/CopyButton.content.ts"],"sourcesContent":["import { t, type Dictionary } from 'intlayer';\n\nexport const copyContentContent = {\n key: 'copy-button',\n content: {\n label: t({\n en: 'Copy content',\n fr: 'Copier le contenu',\n es: 'Copiar contenido',\n 'en-GB': 'Copy content',\n de: 'Inhalt kopieren',\n ja: 'コンテンツをコピー',\n ko: '콘텐츠 복사',\n zh: '复制内容',\n it: 'Copia contenuto',\n pt: 'Copiar conteúdo',\n hi: 'सामग्री कॉपी करें',\n ar: 'نسخ المحتوى',\n ru: 'Копировать содержимое',\n }),\n },\n} satisfies Dictionary;\n\nexport default copyContentContent;\n"],"names":["t"],"mappings":";;;AAEO,MAAM,qBAAqB;AAAA,EAChC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,OAAOA,SAAAA,EAAE;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EAAA;AAEL;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyButton.content.d.ts","sourceRoot":"","sources":["../../../src/components/CopyButton/CopyButton.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBT,CAAC;AAEvB,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyButton.content.mjs","sources":["../../../src/components/CopyButton/CopyButton.content.ts"],"sourcesContent":["import { t, type Dictionary } from 'intlayer';\n\nexport const copyContentContent = {\n key: 'copy-button',\n content: {\n label: t({\n en: 'Copy content',\n fr: 'Copier le contenu',\n es: 'Copiar contenido',\n 'en-GB': 'Copy content',\n de: 'Inhalt kopieren',\n ja: 'コンテンツをコピー',\n ko: '콘텐츠 복사',\n zh: '复制内容',\n it: 'Copia contenuto',\n pt: 'Copiar conteúdo',\n hi: 'सामग्री कॉपी करें',\n ar: 'نسخ المحتوى',\n ru: 'Копировать содержимое',\n }),\n },\n} satisfies Dictionary;\n\nexport default copyContentContent;\n"],"names":[],"mappings":";AAEO,MAAM,qBAAqB;AAAA,EAChC,KAAK;AAAA,EACL,SAAS;AAAA,IACP,OAAO,EAAE;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,EAAA;AAEL;"}
|
|
@@ -6,10 +6,9 @@ const lucideReact = require("lucide-react");
|
|
|
6
6
|
const ReactExports = require("react");
|
|
7
7
|
const reactIntlayer = require("react-intlayer");
|
|
8
8
|
const components_Button_Button = require("../Button/Button.cjs");
|
|
9
|
-
const components_IDE_CopyButton_content = require("../IDE/CopyButton.content.cjs");
|
|
10
9
|
const CopyButton = ({ content, ...props }) => {
|
|
11
10
|
const [copied, setCopied] = ReactExports.useState(false);
|
|
12
|
-
const { label } = reactIntlayer.
|
|
11
|
+
const { label } = reactIntlayer.useIntlayer("copy-button");
|
|
13
12
|
const handleCopy = async () => {
|
|
14
13
|
try {
|
|
15
14
|
await navigator.clipboard.writeText(content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/CopyButton/index.tsx"],"sourcesContent":["'use client';\n\nimport { CopyCheckIcon, CopyIcon } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/CopyButton/index.tsx"],"sourcesContent":["'use client';\n\nimport { CopyCheckIcon, CopyIcon } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport {\n Button,\n ButtonColor,\n ButtonProps,\n ButtonSize,\n ButtonVariant,\n} from '../Button';\n\ntype CopyButtonProps = {\n content: string;\n} & Partial<ButtonProps>;\n\nexport const CopyButton: FC<CopyButtonProps> = ({ content, ...props }) => {\n const [copied, setCopied] = useState(false);\n const { label } = useIntlayer('copy-button');\n\n const handleCopy = async () => {\n try {\n await navigator.clipboard.writeText(content);\n setCopied(true);\n } catch (error) {\n console.error('Failed to copy text: ', error);\n }\n };\n\n useEffect(() => {\n const timer = setTimeout(() => {\n setCopied(false);\n }, 1000);\n return () => clearTimeout(timer);\n }, [copied]);\n\n return (\n <Button\n Icon={copied ? CopyCheckIcon : CopyIcon}\n onClick={handleCopy}\n variant={ButtonVariant.HOVERABLE}\n color={ButtonColor.TEXT}\n size={ButtonSize.ICON_SM}\n {...props}\n label={props.label ?? label.value}\n />\n );\n};\n"],"names":["useState","useIntlayer","useEffect","jsx","Button","CopyCheckIcon","CopyIcon","ButtonVariant","ButtonColor","ButtonSize"],"mappings":";;;;;;;;AAiBO,MAAM,aAAkC,CAAC,EAAE,SAAS,GAAG,YAAY;AACxE,QAAM,CAAC,QAAQ,SAAS,IAAIA,aAAAA,SAAS,KAAK;AAC1C,QAAM,EAAE,MAAA,IAAUC,cAAAA,YAAY,aAAa;AAE3C,QAAM,aAAa,YAAY;AAC7B,QAAI;AACF,YAAM,UAAU,UAAU,UAAU,OAAO;AAC3C,gBAAU,IAAI;AAAA,IAChB,SAAS,OAAO;AACd,cAAQ,MAAM,yBAAyB,KAAK;AAAA,IAC9C;AAAA,EACF;AAEAC,eAAAA,UAAU,MAAM;AACd,UAAM,QAAQ,WAAW,MAAM;AAC7B,gBAAU,KAAK;AAAA,IACjB,GAAG,GAAI;AACP,WAAO,MAAM,aAAa,KAAK;AAAA,EACjC,GAAG,CAAC,MAAM,CAAC;AAEX,SACEC,2BAAAA;AAAAA,IAACC,yBAAAA;AAAAA,IAAA;AAAA,MACC,MAAM,SAASC,YAAAA,gBAAgBC,YAAAA;AAAAA,MAC/B,SAAS;AAAA,MACT,SAASC,yBAAAA,cAAc;AAAA,MACvB,OAAOC,yBAAAA,YAAY;AAAA,MACnB,MAAMC,yBAAAA,WAAW;AAAA,MAChB,GAAG;AAAA,MACJ,OAAO,MAAM,SAAS,MAAM;AAAA,IAAA;AAAA,EAAA;AAGlC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CopyButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAGL,WAAW,EAGZ,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CopyButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAGL,WAAW,EAGZ,MAAM,WAAW,CAAC;AAEnB,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEzB,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA+B1C,CAAC"}
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CopyCheckIcon, CopyIcon } from "lucide-react";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useIntlayer } from "react-intlayer";
|
|
6
6
|
import { Button, ButtonSize, ButtonColor, ButtonVariant } from "../Button/Button.mjs";
|
|
7
|
-
import { copyContentContent } from "../IDE/CopyButton.content.mjs";
|
|
8
7
|
const CopyButton = ({ content, ...props }) => {
|
|
9
8
|
const [copied, setCopied] = useState(false);
|
|
10
|
-
const { label } =
|
|
9
|
+
const { label } = useIntlayer("copy-button");
|
|
11
10
|
const handleCopy = async () => {
|
|
12
11
|
try {
|
|
13
12
|
await navigator.clipboard.writeText(content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/components/CopyButton/index.tsx"],"sourcesContent":["'use client';\n\nimport { CopyCheckIcon, CopyIcon } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/components/CopyButton/index.tsx"],"sourcesContent":["'use client';\n\nimport { CopyCheckIcon, CopyIcon } from 'lucide-react';\nimport { useEffect, useState, type FC } from 'react';\nimport { useIntlayer } from 'react-intlayer';\nimport {\n Button,\n ButtonColor,\n ButtonProps,\n ButtonSize,\n ButtonVariant,\n} from '../Button';\n\ntype CopyButtonProps = {\n content: string;\n} & Partial<ButtonProps>;\n\nexport const CopyButton: FC<CopyButtonProps> = ({ content, ...props }) => {\n const [copied, setCopied] = useState(false);\n const { label } = useIntlayer('copy-button');\n\n const handleCopy = async () => {\n try {\n await navigator.clipboard.writeText(content);\n setCopied(true);\n } catch (error) {\n console.error('Failed to copy text: ', error);\n }\n };\n\n useEffect(() => {\n const timer = setTimeout(() => {\n setCopied(false);\n }, 1000);\n return () => clearTimeout(timer);\n }, [copied]);\n\n return (\n <Button\n Icon={copied ? CopyCheckIcon : CopyIcon}\n onClick={handleCopy}\n variant={ButtonVariant.HOVERABLE}\n color={ButtonColor.TEXT}\n size={ButtonSize.ICON_SM}\n {...props}\n label={props.label ?? label.value}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AAiBO,MAAM,aAAkC,CAAC,EAAE,SAAS,GAAG,YAAY;AACxE,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAC1C,QAAM,EAAE,MAAA,IAAU,YAAY,aAAa;AAE3C,QAAM,aAAa,YAAY;AAC7B,QAAI;AACF,YAAM,UAAU,UAAU,UAAU,OAAO;AAC3C,gBAAU,IAAI;AAAA,IAChB,SAAS,OAAO;AACd,cAAQ,MAAM,yBAAyB,KAAK;AAAA,IAC9C;AAAA,EACF;AAEA,YAAU,MAAM;AACd,UAAM,QAAQ,WAAW,MAAM;AAC7B,gBAAU,KAAK;AAAA,IACjB,GAAG,GAAI;AACP,WAAO,MAAM,aAAa,KAAK;AAAA,EACjC,GAAG,CAAC,MAAM,CAAC;AAEX,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAM,SAAS,gBAAgB;AAAA,MAC/B,SAAS;AAAA,MACT,SAAS,cAAc;AAAA,MACvB,OAAO,YAAY;AAAA,MACnB,MAAM,WAAW;AAAA,MAChB,GAAG;AAAA,MACJ,OAAO,MAAM,SAAS,MAAM;AAAA,IAAA;AAAA,EAAA;AAGlC;"}
|
|
@@ -26,11 +26,9 @@ require("@intlayer/config/client");
|
|
|
26
26
|
require("fuse.js");
|
|
27
27
|
require("../../DropDown/index.cjs");
|
|
28
28
|
const components_SwitchSelector_index = require("../../SwitchSelector/index.cjs");
|
|
29
|
-
require("../../LocaleSwitcherContentDropDown/localeSwitcher.content.cjs");
|
|
30
29
|
const components_LocaleSwitcherContentDropDown_LocaleSwitcherContentContext = require("../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs");
|
|
31
30
|
const components_MarkDownRender_index = require("../../MarkDownRender/index.cjs");
|
|
32
31
|
const components_DictionaryFieldEditor_EnumKeyInput = require("../EnumKeyInput.cjs");
|
|
33
|
-
const components_DictionaryFieldEditor_NavigationView_navigationViewNode_content = require("../NavigationView/navigationViewNode.content.cjs");
|
|
34
32
|
const traceKeys = ["filePath", "id", "nodeType"];
|
|
35
33
|
const ContentEditorTextArea = ({
|
|
36
34
|
keyPath,
|
|
@@ -166,9 +164,7 @@ const EnumerationTextEditor = ({
|
|
|
166
164
|
renderSection
|
|
167
165
|
}) => {
|
|
168
166
|
const { addEditedContent } = editorReact.useEditedContent();
|
|
169
|
-
const { addNewEnumeration, removeEnumeration } = reactIntlayer.
|
|
170
|
-
components_DictionaryFieldEditor_NavigationView_navigationViewNode_content.navigationViewContent
|
|
171
|
-
);
|
|
167
|
+
const { addNewEnumeration, removeEnumeration } = reactIntlayer.useIntlayer("navigation-view");
|
|
172
168
|
const content = section[core.NodeType.Enumeration];
|
|
173
169
|
const firstKey = Object.keys(content)[0];
|
|
174
170
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -279,7 +275,7 @@ const ArrayTextEditor = ({
|
|
|
279
275
|
renderSection
|
|
280
276
|
}) => {
|
|
281
277
|
const { addEditedContent } = editorReact.useEditedContent();
|
|
282
|
-
const { addNewElement, removeElement } = reactIntlayer.
|
|
278
|
+
const { addNewElement, removeElement } = reactIntlayer.useIntlayer("navigation-view");
|
|
283
279
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
284
280
|
/* @__PURE__ */ jsxRuntime.jsx("table", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "flex w-full flex-col gap-2", children: section.map((subSection, index) => /* @__PURE__ */ jsxRuntime.jsxs(ReactExports.Fragment, { children: [
|
|
285
281
|
/* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "mt-2 flex w-full justify-between gap-2 p-2", children: [
|
|
@@ -539,7 +535,7 @@ const TextEditor = ({
|
|
|
539
535
|
renderSection,
|
|
540
536
|
isDarkMode
|
|
541
537
|
}) => {
|
|
542
|
-
const { tsxNotEditable } = reactIntlayer.
|
|
538
|
+
const { tsxNotEditable } = reactIntlayer.useIntlayer("navigation-view");
|
|
543
539
|
const nodeType = core.getNodeType(section);
|
|
544
540
|
if (nodeType === core.NodeType.ReactNode) {
|
|
545
541
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|