@moduix/solid 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +124 -0
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.d.ts +22 -0
- package/dist/components/accordion/Accordion.js +104 -0
- package/dist/components/accordion/Accordion.jsx +64 -0
- package/dist/components/accordion/Accordion.module.js +18 -0
- package/dist/components/accordion/Accordion.module.jsx +18 -0
- package/dist/components/accordion/Accordion_module.css +214 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/index.jsx +1 -0
- package/dist/components/alert/Alert.d.ts +20 -0
- package/dist/components/alert/Alert.js +101 -0
- package/dist/components/alert/Alert.jsx +51 -0
- package/dist/components/alert/Alert.module.js +10 -0
- package/dist/components/alert/Alert.module.jsx +10 -0
- package/dist/components/alert/Alert_module.css +100 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert/index.jsx +1 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +37 -0
- package/dist/components/angle-slider/AngleSlider.js +161 -0
- package/dist/components/angle-slider/AngleSlider.jsx +94 -0
- package/dist/components/angle-slider/AngleSlider.module.js +11 -0
- package/dist/components/angle-slider/AngleSlider.module.jsx +11 -0
- package/dist/components/angle-slider/AngleSlider_module.css +214 -0
- package/dist/components/angle-slider/index.d.ts +1 -0
- package/dist/components/angle-slider/index.js +1 -0
- package/dist/components/angle-slider/index.jsx +1 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +13 -0
- package/dist/components/aspect-ratio/AspectRatio.js +44 -0
- package/dist/components/aspect-ratio/AspectRatio.jsx +29 -0
- package/dist/components/aspect-ratio/AspectRatio.module.js +5 -0
- package/dist/components/aspect-ratio/AspectRatio.module.jsx +5 -0
- package/dist/components/aspect-ratio/AspectRatio_module.css +11 -0
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/aspect-ratio/index.jsx +1 -0
- package/dist/components/avatar/Avatar.d.ts +21 -0
- package/dist/components/avatar/Avatar.js +70 -0
- package/dist/components/avatar/Avatar.jsx +41 -0
- package/dist/components/avatar/Avatar.module.js +7 -0
- package/dist/components/avatar/Avatar.module.jsx +7 -0
- package/dist/components/avatar/Avatar_module.css +78 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/index.jsx +1 -0
- package/dist/components/badge/Badge.d.ts +23 -0
- package/dist/components/badge/Badge.js +66 -0
- package/dist/components/badge/Badge.jsx +40 -0
- package/dist/components/badge/Badge.module.js +7 -0
- package/dist/components/badge/Badge.module.jsx +7 -0
- package/dist/components/badge/Badge_module.css +123 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/index.jsx +1 -0
- package/dist/components/bleed/Bleed.d.ts +17 -0
- package/dist/components/bleed/Bleed.js +40 -0
- package/dist/components/bleed/Bleed.jsx +22 -0
- package/dist/components/bleed/Bleed.module.js +5 -0
- package/dist/components/bleed/Bleed.module.jsx +5 -0
- package/dist/components/bleed/Bleed_module.css +52 -0
- package/dist/components/bleed/index.d.ts +1 -0
- package/dist/components/bleed/index.js +1 -0
- package/dist/components/bleed/index.jsx +1 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +30 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +161 -0
- package/dist/components/breadcrumbs/Breadcrumbs.jsx +89 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.jsx +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +103 -0
- package/dist/components/breadcrumbs/index.d.ts +1 -0
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/breadcrumbs/index.jsx +1 -0
- package/dist/components/button/Button.d.ts +16 -0
- package/dist/components/button/Button.js +88 -0
- package/dist/components/button/Button.jsx +39 -0
- package/dist/components/button/Button.module.js +5 -0
- package/dist/components/button/Button.module.jsx +5 -0
- package/dist/components/button/Button_module.css +219 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/index.jsx +1 -0
- package/dist/components/card/Card.d.ts +28 -0
- package/dist/components/card/Card.js +197 -0
- package/dist/components/card/Card.jsx +89 -0
- package/dist/components/card/Card.module.js +14 -0
- package/dist/components/card/Card.module.jsx +14 -0
- package/dist/components/card/Card_module.css +203 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/index.jsx +1 -0
- package/dist/components/carousel/Carousel.d.ts +35 -0
- package/dist/components/carousel/Carousel.js +216 -0
- package/dist/components/carousel/Carousel.jsx +122 -0
- package/dist/components/carousel/Carousel.module.js +16 -0
- package/dist/components/carousel/Carousel.module.jsx +16 -0
- package/dist/components/carousel/Carousel_module.css +230 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/carousel/index.jsx +1 -0
- package/dist/components/chart/Chart.d.ts +34 -0
- package/dist/components/chart/Chart.js +453 -0
- package/dist/components/chart/Chart.jsx +242 -0
- package/dist/components/chart/Chart.module.js +18 -0
- package/dist/components/chart/Chart.module.jsx +18 -0
- package/dist/components/chart/Chart_module.css +136 -0
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components/chart/index.js +1 -0
- package/dist/components/chart/index.jsx +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +26 -0
- package/dist/components/checkbox/Checkbox.js +148 -0
- package/dist/components/checkbox/Checkbox.jsx +77 -0
- package/dist/components/checkbox/Checkbox.module.js +10 -0
- package/dist/components/checkbox/Checkbox.module.jsx +10 -0
- package/dist/components/checkbox/Checkbox_module.css +145 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/index.jsx +1 -0
- package/dist/components/clipboard/Clipboard.d.ts +26 -0
- package/dist/components/clipboard/Clipboard.js +146 -0
- package/dist/components/clipboard/Clipboard.jsx +86 -0
- package/dist/components/clipboard/Clipboard.module.js +12 -0
- package/dist/components/clipboard/Clipboard.module.jsx +12 -0
- package/dist/components/clipboard/Clipboard_module.css +168 -0
- package/dist/components/clipboard/index.d.ts +1 -0
- package/dist/components/clipboard/index.js +1 -0
- package/dist/components/clipboard/index.jsx +1 -0
- package/dist/components/close-button/CloseButton.d.ts +14 -0
- package/dist/components/close-button/CloseButton.js +88 -0
- package/dist/components/close-button/CloseButton.jsx +49 -0
- package/dist/components/close-button/CloseButton.module.js +5 -0
- package/dist/components/close-button/CloseButton.module.jsx +5 -0
- package/dist/components/close-button/CloseButton_module.css +55 -0
- package/dist/components/close-button/index.d.ts +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/close-button/index.jsx +1 -0
- package/dist/components/collapsible/Collapsible.d.ts +19 -0
- package/dist/components/collapsible/Collapsible.js +93 -0
- package/dist/components/collapsible/Collapsible.jsx +57 -0
- package/dist/components/collapsible/Collapsible.module.js +13 -0
- package/dist/components/collapsible/Collapsible.module.jsx +13 -0
- package/dist/components/collapsible/Collapsible_module.css +158 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/collapsible/index.jsx +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +66 -0
- package/dist/components/color-picker/ColorPicker.js +542 -0
- package/dist/components/color-picker/ColorPicker.jsx +277 -0
- package/dist/components/color-picker/ColorPicker.module.js +36 -0
- package/dist/components/color-picker/ColorPicker.module.jsx +36 -0
- package/dist/components/color-picker/ColorPicker_module.css +581 -0
- package/dist/components/color-picker/index.d.ts +1 -0
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/color-picker/index.jsx +1 -0
- package/dist/components/combobox/Combobox.d.ts +50 -0
- package/dist/components/combobox/Combobox.js +354 -0
- package/dist/components/combobox/Combobox.jsx +188 -0
- package/dist/components/combobox/Combobox.module.js +24 -0
- package/dist/components/combobox/Combobox.module.jsx +24 -0
- package/dist/components/combobox/Combobox_module.css +335 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox/index.jsx +1 -0
- package/dist/components/command-palette/CommandPalette.d.ts +72 -0
- package/dist/components/command-palette/CommandPalette.js +583 -0
- package/dist/components/command-palette/CommandPalette.jsx +326 -0
- package/dist/components/command-palette/CommandPalette.module.js +41 -0
- package/dist/components/command-palette/CommandPalette.module.jsx +41 -0
- package/dist/components/command-palette/CommandPalette_module.css +443 -0
- package/dist/components/command-palette/index.d.ts +1 -0
- package/dist/components/command-palette/index.js +1 -0
- package/dist/components/command-palette/index.jsx +1 -0
- package/dist/components/container/Container.d.ts +17 -0
- package/dist/components/container/Container.js +40 -0
- package/dist/components/container/Container.jsx +22 -0
- package/dist/components/container/Container.module.js +5 -0
- package/dist/components/container/Container.module.jsx +5 -0
- package/dist/components/container/Container_module.css +46 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/container/index.jsx +1 -0
- package/dist/components/date-input/DateInput.d.ts +25 -0
- package/dist/components/date-input/DateInput.js +137 -0
- package/dist/components/date-input/DateInput.jsx +77 -0
- package/dist/components/date-input/DateInput.module.js +10 -0
- package/dist/components/date-input/DateInput.module.jsx +10 -0
- package/dist/components/date-input/DateInput_module.css +109 -0
- package/dist/components/date-input/index.d.ts +1 -0
- package/dist/components/date-input/index.js +1 -0
- package/dist/components/date-input/index.jsx +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +98 -0
- package/dist/components/date-picker/DatePicker.js +696 -0
- package/dist/components/date-picker/DatePicker.jsx +361 -0
- package/dist/components/date-picker/DatePicker.module.js +29 -0
- package/dist/components/date-picker/DatePicker.module.jsx +29 -0
- package/dist/components/date-picker/DatePicker_module.css +445 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/index.jsx +1 -0
- package/dist/components/dialog/Dialog.d.ts +38 -0
- package/dist/components/dialog/Dialog.js +240 -0
- package/dist/components/dialog/Dialog.jsx +131 -0
- package/dist/components/dialog/Dialog.module.js +23 -0
- package/dist/components/dialog/Dialog.module.jsx +23 -0
- package/dist/components/dialog/Dialog_module.css +247 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/dialog/index.jsx +1 -0
- package/dist/components/drawer/Drawer.d.ts +54 -0
- package/dist/components/drawer/Drawer.js +333 -0
- package/dist/components/drawer/Drawer.jsx +179 -0
- package/dist/components/drawer/Drawer.module.js +40 -0
- package/dist/components/drawer/Drawer.module.jsx +40 -0
- package/dist/components/drawer/Drawer_module.css +557 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/drawer/index.jsx +1 -0
- package/dist/components/editable/Editable.d.ts +29 -0
- package/dist/components/editable/Editable.js +182 -0
- package/dist/components/editable/Editable.jsx +106 -0
- package/dist/components/editable/Editable.module.js +11 -0
- package/dist/components/editable/Editable.module.jsx +11 -0
- package/dist/components/editable/Editable_module.css +176 -0
- package/dist/components/editable/index.d.ts +1 -0
- package/dist/components/editable/index.js +1 -0
- package/dist/components/editable/index.jsx +1 -0
- package/dist/components/empty/Empty.d.ts +16 -0
- package/dist/components/empty/Empty.js +122 -0
- package/dist/components/empty/Empty.jsx +55 -0
- package/dist/components/empty/Empty.module.js +10 -0
- package/dist/components/empty/Empty.module.jsx +10 -0
- package/dist/components/empty/Empty_module.css +91 -0
- package/dist/components/empty/index.d.ts +1 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/empty/index.jsx +1 -0
- package/dist/components/field/Field.d.ts +37 -0
- package/dist/components/field/Field.js +237 -0
- package/dist/components/field/Field.jsx +135 -0
- package/dist/components/field/Field.module.js +12 -0
- package/dist/components/field/Field.module.jsx +12 -0
- package/dist/components/field/Field_module.css +102 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/field/index.jsx +1 -0
- package/dist/components/fieldset/Fieldset.d.ts +16 -0
- package/dist/components/fieldset/Fieldset.js +94 -0
- package/dist/components/fieldset/Fieldset.jsx +48 -0
- package/dist/components/fieldset/Fieldset.module.js +8 -0
- package/dist/components/fieldset/Fieldset.module.jsx +8 -0
- package/dist/components/fieldset/Fieldset_module.css +56 -0
- package/dist/components/fieldset/index.d.ts +1 -0
- package/dist/components/fieldset/index.js +1 -0
- package/dist/components/fieldset/index.jsx +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +44 -0
- package/dist/components/file-upload/FileUpload.js +326 -0
- package/dist/components/file-upload/FileUpload.jsx +179 -0
- package/dist/components/file-upload/FileUpload.module.js +20 -0
- package/dist/components/file-upload/FileUpload.module.jsx +20 -0
- package/dist/components/file-upload/FileUpload_module.css +369 -0
- package/dist/components/file-upload/index.d.ts +1 -0
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/file-upload/index.jsx +1 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +53 -0
- package/dist/components/floating-panel/FloatingPanel.js +339 -0
- package/dist/components/floating-panel/FloatingPanel.jsx +187 -0
- package/dist/components/floating-panel/FloatingPanel.module.js +20 -0
- package/dist/components/floating-panel/FloatingPanel.module.jsx +20 -0
- package/dist/components/floating-panel/FloatingPanel_module.css +309 -0
- package/dist/components/floating-panel/index.d.ts +2 -0
- package/dist/components/floating-panel/index.js +1 -0
- package/dist/components/floating-panel/index.jsx +1 -0
- package/dist/components/heading/Heading.d.ts +19 -0
- package/dist/components/heading/Heading.js +53 -0
- package/dist/components/heading/Heading.jsx +33 -0
- package/dist/components/heading/Heading.module.js +5 -0
- package/dist/components/heading/Heading.module.jsx +5 -0
- package/dist/components/heading/Heading_module.css +59 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/heading/index.jsx +1 -0
- package/dist/components/highlight/Highlight.d.ts +12 -0
- package/dist/components/highlight/Highlight.js +25 -0
- package/dist/components/highlight/Highlight.jsx +17 -0
- package/dist/components/highlight/Highlight.module.js +5 -0
- package/dist/components/highlight/Highlight.module.jsx +5 -0
- package/dist/components/highlight/Highlight_module.css +16 -0
- package/dist/components/highlight/index.d.ts +1 -0
- package/dist/components/highlight/index.js +1 -0
- package/dist/components/highlight/index.jsx +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +27 -0
- package/dist/components/hover-card/HoverCard.js +165 -0
- package/dist/components/hover-card/HoverCard.jsx +90 -0
- package/dist/components/hover-card/HoverCard.module.js +14 -0
- package/dist/components/hover-card/HoverCard.module.jsx +14 -0
- package/dist/components/hover-card/HoverCard_module.css +143 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/hover-card/index.jsx +1 -0
- package/dist/components/image/Image.d.ts +14 -0
- package/dist/components/image/Image.js +54 -0
- package/dist/components/image/Image.jsx +34 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/Image.module.jsx +5 -0
- package/dist/components/image/Image_module.css +8 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/image/index.jsx +1 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +27 -0
- package/dist/components/image-cropper/ImageCropper.js +132 -0
- package/dist/components/image-cropper/ImageCropper.jsx +73 -0
- package/dist/components/image-cropper/ImageCropper.module.js +10 -0
- package/dist/components/image-cropper/ImageCropper.module.jsx +10 -0
- package/dist/components/image-cropper/ImageCropper_module.css +162 -0
- package/dist/components/image-cropper/index.d.ts +1 -0
- package/dist/components/image-cropper/index.js +1 -0
- package/dist/components/image-cropper/index.jsx +1 -0
- package/dist/components/input/Input.d.ts +13 -0
- package/dist/components/input/Input.js +41 -0
- package/dist/components/input/Input.jsx +20 -0
- package/dist/components/input/Input.module.js +5 -0
- package/dist/components/input/Input.module.jsx +5 -0
- package/dist/components/input/Input_module.css +110 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/index.jsx +1 -0
- package/dist/components/input-group/InputGroup.d.ts +27 -0
- package/dist/components/input-group/InputGroup.js +134 -0
- package/dist/components/input-group/InputGroup.jsx +72 -0
- package/dist/components/input-group/InputGroup.module.js +9 -0
- package/dist/components/input-group/InputGroup.module.jsx +9 -0
- package/dist/components/input-group/InputGroup_module.css +162 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/input-group/index.jsx +1 -0
- package/dist/components/json-tree-view/JsonTreeView.d.ts +11 -0
- package/dist/components/json-tree-view/JsonTreeView.js +69 -0
- package/dist/components/json-tree-view/JsonTreeView.jsx +38 -0
- package/dist/components/json-tree-view/JsonTreeView.module.js +6 -0
- package/dist/components/json-tree-view/JsonTreeView.module.jsx +6 -0
- package/dist/components/json-tree-view/JsonTreeView_module.css +163 -0
- package/dist/components/json-tree-view/index.d.ts +1 -0
- package/dist/components/json-tree-view/index.js +1 -0
- package/dist/components/json-tree-view/index.jsx +1 -0
- package/dist/components/kbd/Kbd.d.ts +8 -0
- package/dist/components/kbd/Kbd.js +37 -0
- package/dist/components/kbd/Kbd.jsx +21 -0
- package/dist/components/kbd/Kbd.module.js +6 -0
- package/dist/components/kbd/Kbd.module.jsx +6 -0
- package/dist/components/kbd/Kbd_module.css +46 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/kbd/index.jsx +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +60 -0
- package/dist/components/lightbox/Lightbox.js +352 -0
- package/dist/components/lightbox/Lightbox.jsx +219 -0
- package/dist/components/lightbox/Lightbox.module.js +24 -0
- package/dist/components/lightbox/Lightbox.module.jsx +24 -0
- package/dist/components/lightbox/Lightbox_module.css +259 -0
- package/dist/components/lightbox/index.d.ts +2 -0
- package/dist/components/lightbox/index.js +1 -0
- package/dist/components/lightbox/index.jsx +1 -0
- package/dist/components/list/List.d.ts +36 -0
- package/dist/components/list/List.js +136 -0
- package/dist/components/list/List.jsx +64 -0
- package/dist/components/list/List.module.js +5 -0
- package/dist/components/list/List.module.jsx +5 -0
- package/dist/components/list/List_module.css +118 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/list/index.jsx +1 -0
- package/dist/components/listbox/Listbox.d.ts +46 -0
- package/dist/components/listbox/Listbox.js +252 -0
- package/dist/components/listbox/Listbox.jsx +148 -0
- package/dist/components/listbox/Listbox.module.js +21 -0
- package/dist/components/listbox/Listbox.module.jsx +21 -0
- package/dist/components/listbox/Listbox_module.css +313 -0
- package/dist/components/listbox/index.d.ts +1 -0
- package/dist/components/listbox/index.js +1 -0
- package/dist/components/listbox/index.jsx +1 -0
- package/dist/components/marquee/Marquee.d.ts +18 -0
- package/dist/components/marquee/Marquee.js +81 -0
- package/dist/components/marquee/Marquee.jsx +50 -0
- package/dist/components/marquee/Marquee.module.js +13 -0
- package/dist/components/marquee/Marquee.module.jsx +13 -0
- package/dist/components/marquee/Marquee_module.css +109 -0
- package/dist/components/marquee/index.d.ts +1 -0
- package/dist/components/marquee/index.js +1 -0
- package/dist/components/marquee/index.jsx +1 -0
- package/dist/components/menu/Menu.d.ts +74 -0
- package/dist/components/menu/Menu.js +465 -0
- package/dist/components/menu/Menu.jsx +248 -0
- package/dist/components/menu/Menu.module.js +32 -0
- package/dist/components/menu/Menu.module.jsx +32 -0
- package/dist/components/menu/Menu_module.css +396 -0
- package/dist/components/menu/index.d.ts +1 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/index.jsx +1 -0
- package/dist/components/native-select/NativeSelect.d.ts +11 -0
- package/dist/components/native-select/NativeSelect.js +49 -0
- package/dist/components/native-select/NativeSelect.jsx +24 -0
- package/dist/components/native-select/NativeSelect.module.js +7 -0
- package/dist/components/native-select/NativeSelect.module.jsx +7 -0
- package/dist/components/native-select/NativeSelect_module.css +115 -0
- package/dist/components/native-select/index.d.ts +1 -0
- package/dist/components/native-select/index.js +1 -0
- package/dist/components/native-select/index.jsx +1 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts +31 -0
- package/dist/components/navigation-menu/NavigationMenu.js +161 -0
- package/dist/components/navigation-menu/NavigationMenu.jsx +94 -0
- package/dist/components/navigation-menu/NavigationMenu.module.js +35 -0
- package/dist/components/navigation-menu/NavigationMenu.module.jsx +35 -0
- package/dist/components/navigation-menu/NavigationMenu_module.css +452 -0
- package/dist/components/navigation-menu/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +1 -0
- package/dist/components/navigation-menu/index.jsx +1 -0
- package/dist/components/number-input/NumberInput.d.ts +27 -0
- package/dist/components/number-input/NumberInput.js +168 -0
- package/dist/components/number-input/NumberInput.jsx +98 -0
- package/dist/components/number-input/NumberInput.module.js +12 -0
- package/dist/components/number-input/NumberInput.module.jsx +12 -0
- package/dist/components/number-input/NumberInput_module.css +161 -0
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/index.jsx +1 -0
- package/dist/components/pagination/Pagination.d.ts +28 -0
- package/dist/components/pagination/Pagination.js +220 -0
- package/dist/components/pagination/Pagination.jsx +116 -0
- package/dist/components/pagination/Pagination.module.js +10 -0
- package/dist/components/pagination/Pagination.module.jsx +10 -0
- package/dist/components/pagination/Pagination_module.css +105 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/index.jsx +1 -0
- package/dist/components/password-input/PasswordInput.d.ts +26 -0
- package/dist/components/password-input/PasswordInput.js +136 -0
- package/dist/components/password-input/PasswordInput.jsx +84 -0
- package/dist/components/password-input/PasswordInput.module.js +10 -0
- package/dist/components/password-input/PasswordInput.module.jsx +10 -0
- package/dist/components/password-input/PasswordInput_module.css +150 -0
- package/dist/components/password-input/index.d.ts +1 -0
- package/dist/components/password-input/index.js +1 -0
- package/dist/components/password-input/index.jsx +1 -0
- package/dist/components/pin-input/PinInput.d.ts +24 -0
- package/dist/components/pin-input/PinInput.js +145 -0
- package/dist/components/pin-input/PinInput.jsx +81 -0
- package/dist/components/pin-input/PinInput.module.js +9 -0
- package/dist/components/pin-input/PinInput.module.jsx +9 -0
- package/dist/components/pin-input/PinInput_module.css +97 -0
- package/dist/components/pin-input/index.d.ts +1 -0
- package/dist/components/pin-input/index.js +1 -0
- package/dist/components/pin-input/index.jsx +1 -0
- package/dist/components/popover/Popover.d.ts +46 -0
- package/dist/components/popover/Popover.js +289 -0
- package/dist/components/popover/Popover.jsx +156 -0
- package/dist/components/popover/Popover.module.js +20 -0
- package/dist/components/popover/Popover.module.jsx +20 -0
- package/dist/components/popover/Popover_module.css +196 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/index.jsx +1 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +28 -0
- package/dist/components/progress-circular/ProgressCircular.js +165 -0
- package/dist/components/progress-circular/ProgressCircular.jsx +90 -0
- package/dist/components/progress-circular/ProgressCircular.module.js +11 -0
- package/dist/components/progress-circular/ProgressCircular.module.jsx +11 -0
- package/dist/components/progress-circular/ProgressCircular_module.css +76 -0
- package/dist/components/progress-circular/index.d.ts +1 -0
- package/dist/components/progress-circular/index.js +1 -0
- package/dist/components/progress-circular/index.jsx +1 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +23 -0
- package/dist/components/progress-linear/ProgressLinear.js +95 -0
- package/dist/components/progress-linear/ProgressLinear.jsx +59 -0
- package/dist/components/progress-linear/ProgressLinear.module.js +10 -0
- package/dist/components/progress-linear/ProgressLinear.module.jsx +10 -0
- package/dist/components/progress-linear/ProgressLinear_module.css +100 -0
- package/dist/components/progress-linear/index.d.ts +1 -0
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/progress-linear/index.jsx +1 -0
- package/dist/components/qr-code/QrCode.d.ts +19 -0
- package/dist/components/qr-code/QrCode.js +130 -0
- package/dist/components/qr-code/QrCode.jsx +71 -0
- package/dist/components/qr-code/QrCode.module.js +9 -0
- package/dist/components/qr-code/QrCode.module.jsx +9 -0
- package/dist/components/qr-code/QrCode_module.css +119 -0
- package/dist/components/qr-code/index.d.ts +1 -0
- package/dist/components/qr-code/index.js +1 -0
- package/dist/components/qr-code/index.jsx +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +33 -0
- package/dist/components/radio-group/RadioGroup.js +142 -0
- package/dist/components/radio-group/RadioGroup.jsx +78 -0
- package/dist/components/radio-group/RadioGroup.module.js +10 -0
- package/dist/components/radio-group/RadioGroup.module.jsx +10 -0
- package/dist/components/radio-group/RadioGroup_module.css +156 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/radio-group/index.jsx +1 -0
- package/dist/components/rating-group/RatingGroup.d.ts +33 -0
- package/dist/components/rating-group/RatingGroup.js +153 -0
- package/dist/components/rating-group/RatingGroup.jsx +81 -0
- package/dist/components/rating-group/RatingGroup.module.js +11 -0
- package/dist/components/rating-group/RatingGroup.module.jsx +11 -0
- package/dist/components/rating-group/RatingGroup_module.css +139 -0
- package/dist/components/rating-group/index.d.ts +2 -0
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/rating-group/index.jsx +1 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +30 -0
- package/dist/components/scroll-area/ScrollArea.js +110 -0
- package/dist/components/scroll-area/ScrollArea.jsx +62 -0
- package/dist/components/scroll-area/ScrollArea.module.js +10 -0
- package/dist/components/scroll-area/ScrollArea.module.jsx +10 -0
- package/dist/components/scroll-area/ScrollArea_module.css +191 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/scroll-area/index.jsx +1 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +33 -0
- package/dist/components/segment-group/SegmentGroup.js +206 -0
- package/dist/components/segment-group/SegmentGroup.jsx +127 -0
- package/dist/components/segment-group/SegmentGroup.module.js +10 -0
- package/dist/components/segment-group/SegmentGroup.module.jsx +10 -0
- package/dist/components/segment-group/SegmentGroup_module.css +127 -0
- package/dist/components/segment-group/index.d.ts +1 -0
- package/dist/components/segment-group/index.js +1 -0
- package/dist/components/segment-group/index.jsx +1 -0
- package/dist/components/select/Select.d.ts +59 -0
- package/dist/components/select/Select.js +392 -0
- package/dist/components/select/Select.jsx +210 -0
- package/dist/components/select/Select.module.js +26 -0
- package/dist/components/select/Select.module.jsx +26 -0
- package/dist/components/select/Select_module.css +362 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/index.jsx +1 -0
- package/dist/components/separator/Separator.d.ts +17 -0
- package/dist/components/separator/Separator.js +55 -0
- package/dist/components/separator/Separator.jsx +28 -0
- package/dist/components/separator/Separator.module.js +5 -0
- package/dist/components/separator/Separator.module.jsx +5 -0
- package/dist/components/separator/Separator_module.css +47 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/index.jsx +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +82 -0
- package/dist/components/sidebar/Sidebar.js +591 -0
- package/dist/components/sidebar/Sidebar.jsx +309 -0
- package/dist/components/sidebar/Sidebar.module.js +26 -0
- package/dist/components/sidebar/Sidebar.module.jsx +26 -0
- package/dist/components/sidebar/Sidebar_module.css +437 -0
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/sidebar/index.js +1 -0
- package/dist/components/sidebar/index.jsx +1 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +30 -0
- package/dist/components/signature-pad/SignaturePad.js +206 -0
- package/dist/components/signature-pad/SignaturePad.jsx +118 -0
- package/dist/components/signature-pad/SignaturePad.module.js +10 -0
- package/dist/components/signature-pad/SignaturePad.module.jsx +10 -0
- package/dist/components/signature-pad/SignaturePad_module.css +88 -0
- package/dist/components/signature-pad/index.d.ts +1 -0
- package/dist/components/signature-pad/index.js +1 -0
- package/dist/components/signature-pad/index.jsx +1 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +17 -0
- package/dist/components/simple-grid/SimpleGrid.js +65 -0
- package/dist/components/simple-grid/SimpleGrid.jsx +50 -0
- package/dist/components/simple-grid/index.d.ts +1 -0
- package/dist/components/simple-grid/index.js +1 -0
- package/dist/components/simple-grid/index.jsx +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +15 -0
- package/dist/components/skeleton/Skeleton.js +75 -0
- package/dist/components/skeleton/Skeleton.jsx +48 -0
- package/dist/components/skeleton/Skeleton.module.js +5 -0
- package/dist/components/skeleton/Skeleton.module.jsx +5 -0
- package/dist/components/skeleton/Skeleton_module.css +35 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/skeleton/index.jsx +1 -0
- package/dist/components/slider/Slider.d.ts +36 -0
- package/dist/components/slider/Slider.js +203 -0
- package/dist/components/slider/Slider.jsx +110 -0
- package/dist/components/slider/Slider.module.js +14 -0
- package/dist/components/slider/Slider.module.jsx +14 -0
- package/dist/components/slider/Slider_module.css +226 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/index.jsx +1 -0
- package/dist/components/spinner/Spinner.d.ts +10 -0
- package/dist/components/spinner/Spinner.js +60 -0
- package/dist/components/spinner/Spinner.jsx +26 -0
- package/dist/components/spinner/Spinner.module.js +7 -0
- package/dist/components/spinner/Spinner.module.jsx +7 -0
- package/dist/components/spinner/Spinner_module.css +59 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/spinner/index.jsx +1 -0
- package/dist/components/split-button/SplitButton.d.ts +41 -0
- package/dist/components/split-button/SplitButton.js +168 -0
- package/dist/components/split-button/SplitButton.jsx +88 -0
- package/dist/components/split-button/SplitButton.module.js +7 -0
- package/dist/components/split-button/SplitButton.module.jsx +7 -0
- package/dist/components/split-button/SplitButton_module.css +52 -0
- package/dist/components/split-button/index.d.ts +1 -0
- package/dist/components/split-button/index.js +1 -0
- package/dist/components/split-button/index.jsx +1 -0
- package/dist/components/splitter/Splitter.d.ts +18 -0
- package/dist/components/splitter/Splitter.js +105 -0
- package/dist/components/splitter/Splitter.jsx +62 -0
- package/dist/components/splitter/Splitter.module.js +8 -0
- package/dist/components/splitter/Splitter.module.jsx +8 -0
- package/dist/components/splitter/Splitter_module.css +173 -0
- package/dist/components/splitter/index.d.ts +1 -0
- package/dist/components/splitter/index.js +1 -0
- package/dist/components/splitter/index.jsx +1 -0
- package/dist/components/stack/Stack.d.ts +19 -0
- package/dist/components/stack/Stack.js +61 -0
- package/dist/components/stack/Stack.jsx +46 -0
- package/dist/components/stack/Stack.module.js +5 -0
- package/dist/components/stack/Stack.module.jsx +5 -0
- package/dist/components/stack/Stack_module.css +14 -0
- package/dist/components/stack/index.d.ts +1 -0
- package/dist/components/stack/index.js +1 -0
- package/dist/components/stack/index.jsx +1 -0
- package/dist/components/steps/Steps.d.ts +35 -0
- package/dist/components/steps/Steps.js +163 -0
- package/dist/components/steps/Steps.jsx +100 -0
- package/dist/components/steps/Steps.module.js +15 -0
- package/dist/components/steps/Steps.module.jsx +15 -0
- package/dist/components/steps/Steps_module.css +305 -0
- package/dist/components/steps/index.d.ts +1 -0
- package/dist/components/steps/index.js +1 -0
- package/dist/components/steps/index.jsx +1 -0
- package/dist/components/swap/Swap.d.ts +20 -0
- package/dist/components/swap/Swap.js +53 -0
- package/dist/components/swap/Swap.jsx +31 -0
- package/dist/components/swap/Swap.module.js +22 -0
- package/dist/components/swap/Swap.module.jsx +22 -0
- package/dist/components/swap/Swap_module.css +118 -0
- package/dist/components/swap/index.d.ts +1 -0
- package/dist/components/swap/index.js +1 -0
- package/dist/components/swap/index.jsx +1 -0
- package/dist/components/switch/Switch.d.ts +25 -0
- package/dist/components/switch/Switch.js +102 -0
- package/dist/components/switch/Switch.jsx +58 -0
- package/dist/components/switch/Switch.module.js +8 -0
- package/dist/components/switch/Switch.module.jsx +8 -0
- package/dist/components/switch/Switch_module.css +150 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/index.jsx +1 -0
- package/dist/components/table/Table.d.ts +71 -0
- package/dist/components/table/Table.js +342 -0
- package/dist/components/table/Table.jsx +166 -0
- package/dist/components/table/Table.module.js +15 -0
- package/dist/components/table/Table.module.jsx +15 -0
- package/dist/components/table/Table_module.css +169 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/index.jsx +1 -0
- package/dist/components/tabs/Tabs.d.ts +25 -0
- package/dist/components/tabs/Tabs.js +99 -0
- package/dist/components/tabs/Tabs.jsx +56 -0
- package/dist/components/tabs/Tabs.module.js +9 -0
- package/dist/components/tabs/Tabs.module.jsx +9 -0
- package/dist/components/tabs/Tabs_module.css +186 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/index.jsx +1 -0
- package/dist/components/tag/Tag.d.ts +24 -0
- package/dist/components/tag/Tag.js +126 -0
- package/dist/components/tag/Tag.jsx +57 -0
- package/dist/components/tag/Tag.module.js +9 -0
- package/dist/components/tag/Tag.module.jsx +9 -0
- package/dist/components/tag/Tag_module.css +101 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/index.jsx +1 -0
- package/dist/components/tags-input/TagsInput.d.ts +32 -0
- package/dist/components/tags-input/TagsInput.js +242 -0
- package/dist/components/tags-input/TagsInput.jsx +129 -0
- package/dist/components/tags-input/TagsInput.module.js +14 -0
- package/dist/components/tags-input/TagsInput.module.jsx +14 -0
- package/dist/components/tags-input/TagsInput_module.css +222 -0
- package/dist/components/tags-input/index.d.ts +1 -0
- package/dist/components/tags-input/index.js +1 -0
- package/dist/components/tags-input/index.jsx +1 -0
- package/dist/components/text/Text.d.ts +30 -0
- package/dist/components/text/Text.js +89 -0
- package/dist/components/text/Text.jsx +54 -0
- package/dist/components/text/Text.module.js +5 -0
- package/dist/components/text/Text.module.jsx +5 -0
- package/dist/components/text/Text_module.css +101 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +1 -0
- package/dist/components/text/index.jsx +1 -0
- package/dist/components/textarea/Textarea.d.ts +9 -0
- package/dist/components/textarea/Textarea.js +46 -0
- package/dist/components/textarea/Textarea.jsx +27 -0
- package/dist/components/textarea/Textarea.module.js +5 -0
- package/dist/components/textarea/Textarea.module.jsx +5 -0
- package/dist/components/textarea/Textarea_module.css +58 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/index.jsx +1 -0
- package/dist/components/timer/Timer.d.ts +26 -0
- package/dist/components/timer/Timer.js +127 -0
- package/dist/components/timer/Timer.jsx +78 -0
- package/dist/components/timer/Timer.module.js +10 -0
- package/dist/components/timer/Timer.module.jsx +10 -0
- package/dist/components/timer/Timer_module.css +102 -0
- package/dist/components/timer/index.d.ts +2 -0
- package/dist/components/timer/index.js +1 -0
- package/dist/components/timer/index.jsx +1 -0
- package/dist/components/toast/Toast.d.ts +22 -0
- package/dist/components/toast/Toast.js +185 -0
- package/dist/components/toast/Toast.jsx +95 -0
- package/dist/components/toast/Toast.module.js +10 -0
- package/dist/components/toast/Toast.module.jsx +10 -0
- package/dist/components/toast/Toast_module.css +164 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/index.jsx +1 -0
- package/dist/components/toc/Toc.d.ts +34 -0
- package/dist/components/toc/Toc.js +221 -0
- package/dist/components/toc/Toc.jsx +130 -0
- package/dist/components/toc/Toc.module.js +13 -0
- package/dist/components/toc/Toc.module.jsx +13 -0
- package/dist/components/toc/Toc_module.css +184 -0
- package/dist/components/toc/index.d.ts +1 -0
- package/dist/components/toc/index.js +1 -0
- package/dist/components/toc/index.jsx +1 -0
- package/dist/components/toggle/Toggle.d.ts +17 -0
- package/dist/components/toggle/Toggle.js +51 -0
- package/dist/components/toggle/Toggle.jsx +26 -0
- package/dist/components/toggle/Toggle.module.js +6 -0
- package/dist/components/toggle/Toggle.module.jsx +6 -0
- package/dist/components/toggle/Toggle_module.css +169 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/index.jsx +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +26 -0
- package/dist/components/toggle-group/ToggleGroup.js +125 -0
- package/dist/components/toggle-group/ToggleGroup.jsx +70 -0
- package/dist/components/toggle-group/ToggleGroup.module.js +6 -0
- package/dist/components/toggle-group/ToggleGroup.module.jsx +6 -0
- package/dist/components/toggle-group/ToggleGroup_module.css +49 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/index.jsx +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +29 -0
- package/dist/components/tooltip/Tooltip.js +193 -0
- package/dist/components/tooltip/Tooltip.jsx +109 -0
- package/dist/components/tooltip/Tooltip.module.js +14 -0
- package/dist/components/tooltip/Tooltip.module.jsx +14 -0
- package/dist/components/tooltip/Tooltip_module.css +156 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/index.jsx +1 -0
- package/dist/components/tour/Tour.d.ts +46 -0
- package/dist/components/tour/Tour.js +275 -0
- package/dist/components/tour/Tour.jsx +156 -0
- package/dist/components/tour/Tour.module.js +26 -0
- package/dist/components/tour/Tour.module.jsx +26 -0
- package/dist/components/tour/Tour_module.css +373 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tour/index.js +1 -0
- package/dist/components/tour/index.jsx +1 -0
- package/dist/components/tree-view/TreeView.d.ts +58 -0
- package/dist/components/tree-view/TreeView.js +297 -0
- package/dist/components/tree-view/TreeView.jsx +174 -0
- package/dist/components/tree-view/TreeView.module.js +28 -0
- package/dist/components/tree-view/TreeView.module.jsx +28 -0
- package/dist/components/tree-view/TreeView_module.css +310 -0
- package/dist/components/tree-view/index.d.ts +1 -0
- package/dist/components/tree-view/index.js +1 -0
- package/dist/components/tree-view/index.jsx +1 -0
- package/dist/components/typeset/Typeset.d.ts +15 -0
- package/dist/components/typeset/Typeset.js +68 -0
- package/dist/components/typeset/Typeset.jsx +33 -0
- package/dist/components/typeset/Typeset.module.js +6 -0
- package/dist/components/typeset/Typeset.module.jsx +6 -0
- package/dist/components/typeset/Typeset_module.css +466 -0
- package/dist/components/typeset/index.d.ts +1 -0
- package/dist/components/typeset/index.js +1 -0
- package/dist/components/typeset/index.jsx +1 -0
- package/dist/internal/icons/ui/Icons.d.ts +37 -0
- package/dist/internal/icons/ui/Icons.js +115 -0
- package/dist/internal/icons/ui/Icons.jsx +93 -0
- package/dist/internal/overlayPortal.d.ts +13 -0
- package/dist/internal/overlayPortal.js +39 -0
- package/dist/internal/overlayPortal.jsx +19 -0
- package/dist/locale.d.ts +1 -0
- package/dist/locale.js +1 -0
- package/dist/locale.jsx +1 -0
- package/dist/presets/contrast.css +65 -0
- package/dist/presets/dense.css +78 -0
- package/dist/presets/soft.css +77 -0
- package/dist/styles/animations.css +371 -0
- package/dist/styles/borders.css +10 -0
- package/dist/styles/colors.css +122 -0
- package/dist/styles/opacity.css +5 -0
- package/dist/styles/radius.css +11 -0
- package/dist/styles/reset.css +367 -0
- package/dist/styles/shadows.css +5 -0
- package/dist/styles/sizing.css +11 -0
- package/dist/styles/spacing.css +26 -0
- package/dist/styles/style.css +180 -0
- package/dist/styles/transforms.css +4 -0
- package/dist/styles/transitions.css +32 -0
- package/dist/styles/typography.css +37 -0
- package/dist/styles/z-index.css +13 -0
- package/package.json +637 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { createComponent, insert, memo, mergeProps, spread, template } from "solid-js/web";
|
|
2
|
+
import { Toc, useToc, useTocContext } from "@ark-ui/solid/toc";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { splitProps } from "solid-js";
|
|
5
|
+
import Toc_module from "./Toc.module.js";
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template("<svg aria-hidden=true data-slot=toc-rail><line y2=100%>"), _tmpl$2 = /*#__PURE__*/ template("<svg><path fill=none></svg>", false, true, false);
|
|
7
|
+
const railBaseOffset = 0;
|
|
8
|
+
const railStep = 12;
|
|
9
|
+
const railBridge = 6;
|
|
10
|
+
const maxRailLevel = 2;
|
|
11
|
+
const getRailOffset = (depth)=>railBaseOffset + Math.min(Math.max(depth - 2, 0), maxRailLevel) * railStep;
|
|
12
|
+
const Toc_useToc = (props)=>useToc({
|
|
13
|
+
autoScroll: false,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
const Toc_useTocContext = useTocContext;
|
|
17
|
+
function TocRoot(props) {
|
|
18
|
+
const [local, others] = splitProps(props, [
|
|
19
|
+
'autoScroll',
|
|
20
|
+
'class'
|
|
21
|
+
]);
|
|
22
|
+
return createComponent(Toc.Root, mergeProps({
|
|
23
|
+
get autoScroll () {
|
|
24
|
+
return local.autoScroll ?? false;
|
|
25
|
+
},
|
|
26
|
+
"data-slot": "toc-root",
|
|
27
|
+
get ["class"] () {
|
|
28
|
+
return clsx(Toc_module.root, local.class);
|
|
29
|
+
}
|
|
30
|
+
}, others));
|
|
31
|
+
}
|
|
32
|
+
function TocRootProvider(props) {
|
|
33
|
+
const [local, others] = splitProps(props, [
|
|
34
|
+
'class',
|
|
35
|
+
'style',
|
|
36
|
+
'value'
|
|
37
|
+
]);
|
|
38
|
+
const getRootStyle = ()=>mergeStyles(local.value().getRootProps().style, local.style);
|
|
39
|
+
return createComponent(Toc.RootProvider, mergeProps({
|
|
40
|
+
get value () {
|
|
41
|
+
return local.value;
|
|
42
|
+
},
|
|
43
|
+
"data-slot": "toc-root-provider",
|
|
44
|
+
get ["class"] () {
|
|
45
|
+
return clsx(Toc_module.root, local.class);
|
|
46
|
+
},
|
|
47
|
+
get style () {
|
|
48
|
+
return getRootStyle();
|
|
49
|
+
}
|
|
50
|
+
}, others));
|
|
51
|
+
}
|
|
52
|
+
function TocContent(props) {
|
|
53
|
+
const [local, others] = splitProps(props, [
|
|
54
|
+
'class'
|
|
55
|
+
]);
|
|
56
|
+
return createComponent(Toc.Content, mergeProps({
|
|
57
|
+
"data-slot": "toc-content",
|
|
58
|
+
get ["class"] () {
|
|
59
|
+
return clsx(Toc_module.content, local.class);
|
|
60
|
+
}
|
|
61
|
+
}, others));
|
|
62
|
+
}
|
|
63
|
+
function TocNav(props) {
|
|
64
|
+
const [local, others] = splitProps(props, [
|
|
65
|
+
'class'
|
|
66
|
+
]);
|
|
67
|
+
return createComponent(Toc.Nav, mergeProps({
|
|
68
|
+
"data-slot": "toc-nav",
|
|
69
|
+
get ["class"] () {
|
|
70
|
+
return clsx(Toc_module.nav, local.class);
|
|
71
|
+
}
|
|
72
|
+
}, others));
|
|
73
|
+
}
|
|
74
|
+
function TocTitle(props) {
|
|
75
|
+
const [local, others] = splitProps(props, [
|
|
76
|
+
'class'
|
|
77
|
+
]);
|
|
78
|
+
return createComponent(Toc.Title, mergeProps({
|
|
79
|
+
"data-slot": "toc-title",
|
|
80
|
+
get ["class"] () {
|
|
81
|
+
return clsx(Toc_module.title, local.class);
|
|
82
|
+
}
|
|
83
|
+
}, others));
|
|
84
|
+
}
|
|
85
|
+
function TocList(props) {
|
|
86
|
+
const [local, others] = splitProps(props, [
|
|
87
|
+
'class'
|
|
88
|
+
]);
|
|
89
|
+
return createComponent(Toc.List, mergeProps({
|
|
90
|
+
"data-slot": "toc-list",
|
|
91
|
+
get ["class"] () {
|
|
92
|
+
return clsx(Toc_module.list, local.class);
|
|
93
|
+
}
|
|
94
|
+
}, others));
|
|
95
|
+
}
|
|
96
|
+
function TocItem(props) {
|
|
97
|
+
const [local, others] = splitProps(props, [
|
|
98
|
+
'class'
|
|
99
|
+
]);
|
|
100
|
+
return createComponent(Toc.Item, mergeProps({
|
|
101
|
+
"data-slot": "toc-item",
|
|
102
|
+
get ["class"] () {
|
|
103
|
+
return clsx(Toc_module.item, local.class);
|
|
104
|
+
}
|
|
105
|
+
}, others));
|
|
106
|
+
}
|
|
107
|
+
function TocLink(props) {
|
|
108
|
+
const [local, others] = splitProps(props, [
|
|
109
|
+
'class'
|
|
110
|
+
]);
|
|
111
|
+
return createComponent(Toc.Link, mergeProps({
|
|
112
|
+
"data-slot": "toc-link",
|
|
113
|
+
get ["class"] () {
|
|
114
|
+
return clsx(Toc_module.link, local.class);
|
|
115
|
+
}
|
|
116
|
+
}, others));
|
|
117
|
+
}
|
|
118
|
+
function TocIndicator(props) {
|
|
119
|
+
const [local, others] = splitProps(props, [
|
|
120
|
+
'class'
|
|
121
|
+
]);
|
|
122
|
+
return createComponent(Toc.Indicator, mergeProps({
|
|
123
|
+
"data-slot": "toc-indicator",
|
|
124
|
+
get ["class"] () {
|
|
125
|
+
return clsx(Toc_module.indicator, local.class);
|
|
126
|
+
}
|
|
127
|
+
}, others));
|
|
128
|
+
}
|
|
129
|
+
const nonScalingStrokeProps = {
|
|
130
|
+
'vector-effect': 'non-scaling-stroke'
|
|
131
|
+
};
|
|
132
|
+
const styleToString = (style)=>Object.entries(style).filter(([, value])=>void 0 !== value).map(([property, value])=>`${property}:${value}`).join(';');
|
|
133
|
+
const getStyleObject = (style)=>'object' == typeof style && null !== style ? style : {};
|
|
134
|
+
const mergeStyles = (base, override)=>{
|
|
135
|
+
if ('string' == typeof override) {
|
|
136
|
+
const baseStyle = 'string' == typeof base ? base : styleToString(getStyleObject(base));
|
|
137
|
+
return baseStyle ? `${baseStyle};${override}` : override;
|
|
138
|
+
}
|
|
139
|
+
if ('string' == typeof base) {
|
|
140
|
+
const overrideStyle = styleToString(getStyleObject(override));
|
|
141
|
+
return overrideStyle ? `${base};${overrideStyle}` : base;
|
|
142
|
+
}
|
|
143
|
+
const baseStyle = getStyleObject(base);
|
|
144
|
+
const overrideStyle = getStyleObject(override);
|
|
145
|
+
return Object.keys(baseStyle).length || Object.keys(overrideStyle).length ? {
|
|
146
|
+
...baseStyle,
|
|
147
|
+
...overrideStyle
|
|
148
|
+
} : void 0;
|
|
149
|
+
};
|
|
150
|
+
function TocRail(props) {
|
|
151
|
+
const [local, others] = splitProps(props, [
|
|
152
|
+
'class',
|
|
153
|
+
'depth',
|
|
154
|
+
'nextDepth',
|
|
155
|
+
'previousDepth',
|
|
156
|
+
'style'
|
|
157
|
+
]);
|
|
158
|
+
const lineOffset = ()=>getRailOffset(local.depth);
|
|
159
|
+
const previousLineOffset = ()=>getRailOffset(local.previousDepth ?? local.depth);
|
|
160
|
+
const nextLineOffset = ()=>getRailOffset(local.nextDepth ?? local.depth);
|
|
161
|
+
const hasTurn = ()=>previousLineOffset() !== lineOffset();
|
|
162
|
+
const width = ()=>Math.max(previousLineOffset(), lineOffset(), nextLineOffset()) + 2;
|
|
163
|
+
const height = ()=>lineOffset() === nextLineOffset() ? `calc(100% + ${railBridge}px + var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5)))` : '100%';
|
|
164
|
+
const getRailStyle = ()=>mergeStyles({
|
|
165
|
+
width: width(),
|
|
166
|
+
height: height()
|
|
167
|
+
}, local.style);
|
|
168
|
+
return (()=>{
|
|
169
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
170
|
+
spread(_el$, mergeProps({
|
|
171
|
+
get ["class"] () {
|
|
172
|
+
return clsx(Toc_module.rail, local.class);
|
|
173
|
+
},
|
|
174
|
+
get style () {
|
|
175
|
+
return getRailStyle();
|
|
176
|
+
}
|
|
177
|
+
}, others), true, true);
|
|
178
|
+
insert(_el$, (()=>{
|
|
179
|
+
var _c$ = memo(()=>!!hasTurn());
|
|
180
|
+
return ()=>_c$() && (()=>{
|
|
181
|
+
var _el$3 = _tmpl$2();
|
|
182
|
+
spread(_el$3, mergeProps({
|
|
183
|
+
get d () {
|
|
184
|
+
return `M ${previousLineOffset() + 0.5} 0 C ${previousLineOffset() + 0.5} 8 ${lineOffset() + 0.5} 4 ${lineOffset() + 0.5} ${2 * railBridge}`;
|
|
185
|
+
}
|
|
186
|
+
}, nonScalingStrokeProps, {
|
|
187
|
+
stroke: "currentColor"
|
|
188
|
+
}), true, false);
|
|
189
|
+
return _el$3;
|
|
190
|
+
})();
|
|
191
|
+
})(), _el$2);
|
|
192
|
+
spread(_el$2, mergeProps({
|
|
193
|
+
get x1 () {
|
|
194
|
+
return lineOffset() + 0.5;
|
|
195
|
+
},
|
|
196
|
+
get y1 () {
|
|
197
|
+
return hasTurn() ? 2 * railBridge : railBridge;
|
|
198
|
+
},
|
|
199
|
+
get x2 () {
|
|
200
|
+
return lineOffset() + 0.5;
|
|
201
|
+
}
|
|
202
|
+
}, nonScalingStrokeProps, {
|
|
203
|
+
stroke: "currentColor"
|
|
204
|
+
}), true, false);
|
|
205
|
+
return _el$;
|
|
206
|
+
})();
|
|
207
|
+
}
|
|
208
|
+
const Toc_Toc = Object.assign(TocRoot, {
|
|
209
|
+
Root: TocRoot,
|
|
210
|
+
RootProvider: TocRootProvider,
|
|
211
|
+
Context: Toc.Context,
|
|
212
|
+
Content: TocContent,
|
|
213
|
+
Nav: TocNav,
|
|
214
|
+
Title: TocTitle,
|
|
215
|
+
List: TocList,
|
|
216
|
+
Item: TocItem,
|
|
217
|
+
Link: TocLink,
|
|
218
|
+
Indicator: TocIndicator,
|
|
219
|
+
Rail: TocRail
|
|
220
|
+
});
|
|
221
|
+
export { Toc_Toc as Toc, Toc_useToc as useToc, Toc_useTocContext as useTocContext };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Toc, useToc, useTocContext } from "@ark-ui/solid/toc";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import Toc_module from "./Toc.module.jsx";
|
|
5
|
+
const railBaseOffset = 0;
|
|
6
|
+
const railStep = 12;
|
|
7
|
+
const railBridge = 6;
|
|
8
|
+
const maxRailLevel = 2;
|
|
9
|
+
const getRailOffset = (depth)=>railBaseOffset + Math.min(Math.max(depth - 2, 0), maxRailLevel) * railStep;
|
|
10
|
+
const Toc_useToc = (props)=>useToc({
|
|
11
|
+
autoScroll: false,
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
const Toc_useTocContext = useTocContext;
|
|
15
|
+
function TocRoot(props) {
|
|
16
|
+
const [local, others] = splitProps(props, [
|
|
17
|
+
'autoScroll',
|
|
18
|
+
'class'
|
|
19
|
+
]);
|
|
20
|
+
return <Toc.Root autoScroll={local.autoScroll ?? false} data-slot="toc-root" class={clsx(Toc_module.root, local.class)} {...others}/>;
|
|
21
|
+
}
|
|
22
|
+
function TocRootProvider(props) {
|
|
23
|
+
const [local, others] = splitProps(props, [
|
|
24
|
+
'class',
|
|
25
|
+
'style',
|
|
26
|
+
'value'
|
|
27
|
+
]);
|
|
28
|
+
const getRootStyle = ()=>mergeStyles(local.value().getRootProps().style, local.style);
|
|
29
|
+
return <Toc.RootProvider value={local.value} data-slot="toc-root-provider" class={clsx(Toc_module.root, local.class)} style={getRootStyle()} {...others}/>;
|
|
30
|
+
}
|
|
31
|
+
function TocContent(props) {
|
|
32
|
+
const [local, others] = splitProps(props, [
|
|
33
|
+
'class'
|
|
34
|
+
]);
|
|
35
|
+
return <Toc.Content data-slot="toc-content" class={clsx(Toc_module.content, local.class)} {...others}/>;
|
|
36
|
+
}
|
|
37
|
+
function TocNav(props) {
|
|
38
|
+
const [local, others] = splitProps(props, [
|
|
39
|
+
'class'
|
|
40
|
+
]);
|
|
41
|
+
return <Toc.Nav data-slot="toc-nav" class={clsx(Toc_module.nav, local.class)} {...others}/>;
|
|
42
|
+
}
|
|
43
|
+
function TocTitle(props) {
|
|
44
|
+
const [local, others] = splitProps(props, [
|
|
45
|
+
'class'
|
|
46
|
+
]);
|
|
47
|
+
return <Toc.Title data-slot="toc-title" class={clsx(Toc_module.title, local.class)} {...others}/>;
|
|
48
|
+
}
|
|
49
|
+
function TocList(props) {
|
|
50
|
+
const [local, others] = splitProps(props, [
|
|
51
|
+
'class'
|
|
52
|
+
]);
|
|
53
|
+
return <Toc.List data-slot="toc-list" class={clsx(Toc_module.list, local.class)} {...others}/>;
|
|
54
|
+
}
|
|
55
|
+
function TocItem(props) {
|
|
56
|
+
const [local, others] = splitProps(props, [
|
|
57
|
+
'class'
|
|
58
|
+
]);
|
|
59
|
+
return <Toc.Item data-slot="toc-item" class={clsx(Toc_module.item, local.class)} {...others}/>;
|
|
60
|
+
}
|
|
61
|
+
function TocLink(props) {
|
|
62
|
+
const [local, others] = splitProps(props, [
|
|
63
|
+
'class'
|
|
64
|
+
]);
|
|
65
|
+
return <Toc.Link data-slot="toc-link" class={clsx(Toc_module.link, local.class)} {...others}/>;
|
|
66
|
+
}
|
|
67
|
+
function TocIndicator(props) {
|
|
68
|
+
const [local, others] = splitProps(props, [
|
|
69
|
+
'class'
|
|
70
|
+
]);
|
|
71
|
+
return <Toc.Indicator data-slot="toc-indicator" class={clsx(Toc_module.indicator, local.class)} {...others}/>;
|
|
72
|
+
}
|
|
73
|
+
const nonScalingStrokeProps = {
|
|
74
|
+
'vector-effect': 'non-scaling-stroke'
|
|
75
|
+
};
|
|
76
|
+
const styleToString = (style)=>Object.entries(style).filter(([, value])=>void 0 !== value).map(([property, value])=>`${property}:${value}`).join(';');
|
|
77
|
+
const getStyleObject = (style)=>'object' == typeof style && null !== style ? style : {};
|
|
78
|
+
const mergeStyles = (base, override)=>{
|
|
79
|
+
if ('string' == typeof override) {
|
|
80
|
+
const baseStyle = 'string' == typeof base ? base : styleToString(getStyleObject(base));
|
|
81
|
+
return baseStyle ? `${baseStyle};${override}` : override;
|
|
82
|
+
}
|
|
83
|
+
if ('string' == typeof base) {
|
|
84
|
+
const overrideStyle = styleToString(getStyleObject(override));
|
|
85
|
+
return overrideStyle ? `${base};${overrideStyle}` : base;
|
|
86
|
+
}
|
|
87
|
+
const baseStyle = getStyleObject(base);
|
|
88
|
+
const overrideStyle = getStyleObject(override);
|
|
89
|
+
return Object.keys(baseStyle).length || Object.keys(overrideStyle).length ? {
|
|
90
|
+
...baseStyle,
|
|
91
|
+
...overrideStyle
|
|
92
|
+
} : void 0;
|
|
93
|
+
};
|
|
94
|
+
function TocRail(props) {
|
|
95
|
+
const [local, others] = splitProps(props, [
|
|
96
|
+
'class',
|
|
97
|
+
'depth',
|
|
98
|
+
'nextDepth',
|
|
99
|
+
'previousDepth',
|
|
100
|
+
'style'
|
|
101
|
+
]);
|
|
102
|
+
const lineOffset = ()=>getRailOffset(local.depth);
|
|
103
|
+
const previousLineOffset = ()=>getRailOffset(local.previousDepth ?? local.depth);
|
|
104
|
+
const nextLineOffset = ()=>getRailOffset(local.nextDepth ?? local.depth);
|
|
105
|
+
const hasTurn = ()=>previousLineOffset() !== lineOffset();
|
|
106
|
+
const width = ()=>Math.max(previousLineOffset(), lineOffset(), nextLineOffset()) + 2;
|
|
107
|
+
const height = ()=>lineOffset() === nextLineOffset() ? `calc(100% + ${railBridge}px + var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5)))` : '100%';
|
|
108
|
+
const getRailStyle = ()=>mergeStyles({
|
|
109
|
+
width: width(),
|
|
110
|
+
height: height()
|
|
111
|
+
}, local.style);
|
|
112
|
+
return <svg aria-hidden="true" data-slot="toc-rail" class={clsx(Toc_module.rail, local.class)} style={getRailStyle()} {...others}>
|
|
113
|
+
{hasTurn() && <path d={`M ${previousLineOffset() + 0.5} 0 C ${previousLineOffset() + 0.5} 8 ${lineOffset() + 0.5} 4 ${lineOffset() + 0.5} ${2 * railBridge}`} fill="none" {...nonScalingStrokeProps} stroke="currentColor"/>}
|
|
114
|
+
<line x1={lineOffset() + 0.5} y1={hasTurn() ? 2 * railBridge : railBridge} x2={lineOffset() + 0.5} y2="100%" {...nonScalingStrokeProps} stroke="currentColor"/>
|
|
115
|
+
</svg>;
|
|
116
|
+
}
|
|
117
|
+
const Toc_Toc = Object.assign(TocRoot, {
|
|
118
|
+
Root: TocRoot,
|
|
119
|
+
RootProvider: TocRootProvider,
|
|
120
|
+
Context: Toc.Context,
|
|
121
|
+
Content: TocContent,
|
|
122
|
+
Nav: TocNav,
|
|
123
|
+
Title: TocTitle,
|
|
124
|
+
List: TocList,
|
|
125
|
+
Item: TocItem,
|
|
126
|
+
Link: TocLink,
|
|
127
|
+
Indicator: TocIndicator,
|
|
128
|
+
Rail: TocRail
|
|
129
|
+
});
|
|
130
|
+
export { Toc_Toc as Toc, Toc_useToc as useToc, Toc_useTocContext as useTocContext };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./Toc_module.css";
|
|
2
|
+
const Toc_module = {
|
|
3
|
+
root: "root-VBggED",
|
|
4
|
+
content: "content-AHeziM",
|
|
5
|
+
nav: "nav-q0EDqs",
|
|
6
|
+
title: "title-RjjR4J",
|
|
7
|
+
list: "list-KZD4Qg",
|
|
8
|
+
indicator: "indicator-Zeit8l",
|
|
9
|
+
item: "item-xFlCTb",
|
|
10
|
+
link: "link-L4LQA0",
|
|
11
|
+
rail: "rail-BwE9eo"
|
|
12
|
+
};
|
|
13
|
+
export default Toc_module;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./Toc_module.css";
|
|
2
|
+
const Toc_module = {
|
|
3
|
+
root: "root-VBggED",
|
|
4
|
+
content: "content-AHeziM",
|
|
5
|
+
nav: "nav-q0EDqs",
|
|
6
|
+
title: "title-RjjR4J",
|
|
7
|
+
list: "list-KZD4Qg",
|
|
8
|
+
indicator: "indicator-Zeit8l",
|
|
9
|
+
item: "item-xFlCTb",
|
|
10
|
+
link: "link-L4LQA0",
|
|
11
|
+
rail: "rail-BwE9eo"
|
|
12
|
+
};
|
|
13
|
+
export default Toc_module;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@layer moduix.components {
|
|
2
|
+
.root-VBggED {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
grid-template-columns: minmax(0, 1fr) minmax(var(--moduix-table-of-contents-nav-min-width, 12rem),
|
|
5
|
+
var(--moduix-table-of-contents-nav-width, 16rem));
|
|
6
|
+
gap: var(--moduix-table-of-contents-gap, var(--moduix-spacing-6));
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
color: var(--moduix-table-of-contents-color, var(--moduix-color-foreground));
|
|
10
|
+
--_moduix-toc-indicator-top: var(--top);
|
|
11
|
+
--_moduix-toc-indicator-height: var(--height);
|
|
12
|
+
display: grid;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (width <= 48rem) {
|
|
16
|
+
.root-VBggED {
|
|
17
|
+
grid-template-columns: minmax(0, 1fr);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.content-AHeziM {
|
|
22
|
+
scroll-behavior: smooth;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.content-AHeziM:has( ~ .nav-q0EDqs[data-placement="left"]) {
|
|
27
|
+
grid-area: 1 / 2;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nav-q0EDqs {
|
|
31
|
+
top: var(--moduix-table-of-contents-nav-top, var(--moduix-spacing-4));
|
|
32
|
+
max-height: var(--moduix-table-of-contents-nav-max-height, calc(100dvh - 2rem));
|
|
33
|
+
padding: var(--moduix-table-of-contents-nav-padding, var(--moduix-spacing-4));
|
|
34
|
+
border: var(--moduix-table-of-contents-nav-border-width, var(--moduix-border-width-sm)) solid
|
|
35
|
+
var(--moduix-table-of-contents-nav-border-color, var(--moduix-color-border));
|
|
36
|
+
border-radius: var(--moduix-table-of-contents-nav-radius, var(--moduix-radius-lg));
|
|
37
|
+
background-color: var(--moduix-table-of-contents-nav-bg, var(--moduix-color-card));
|
|
38
|
+
align-self: start;
|
|
39
|
+
position: sticky;
|
|
40
|
+
overflow: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nav-q0EDqs[data-placement="left"] {
|
|
44
|
+
grid-area: 1 / 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) {
|
|
48
|
+
grid-template-columns: minmax(var(--moduix-table-of-contents-nav-min-width, 12rem),
|
|
49
|
+
var(--moduix-table-of-contents-nav-width, 16rem)) minmax(0, 1fr);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (width <= 48rem) {
|
|
53
|
+
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .nav-q0EDqs[data-placement="left"] {
|
|
54
|
+
grid-area: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .content-AHeziM:has( ~ .nav-q0EDqs[data-placement="left"]) {
|
|
58
|
+
grid-area: auto;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.title-RjjR4J {
|
|
63
|
+
margin: 0 0 var(--moduix-table-of-contents-title-margin-bottom, var(--moduix-spacing-2));
|
|
64
|
+
color: var(--moduix-table-of-contents-title-color, var(--moduix-color-foreground));
|
|
65
|
+
font-size: var(--moduix-table-of-contents-title-font-size, var(--moduix-text-sm));
|
|
66
|
+
font-weight: var(--moduix-table-of-contents-title-font-weight, var(--moduix-weight-semibold));
|
|
67
|
+
line-height: var(--moduix-table-of-contents-title-line-height, var(--moduix-line-height-text-sm));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.list-KZD4Qg {
|
|
71
|
+
gap: var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5));
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding-block: 0;
|
|
74
|
+
padding-inline-start: var(--moduix-table-of-contents-list-padding-start, var(--moduix-spacing-1));
|
|
75
|
+
list-style: none;
|
|
76
|
+
display: grid;
|
|
77
|
+
position: relative;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.list-KZD4Qg:has(.indicator-Zeit8l):before {
|
|
81
|
+
top: var(--moduix-spacing-0-5);
|
|
82
|
+
bottom: var(--moduix-spacing-0-5);
|
|
83
|
+
width: var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md));
|
|
84
|
+
border-radius: var(--moduix-radius-full);
|
|
85
|
+
background-color: var(--moduix-table-of-contents-indicator-track-bg, var(--moduix-color-border));
|
|
86
|
+
content: "";
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
position: absolute;
|
|
89
|
+
inset-inline-start: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.item-xFlCTb {
|
|
93
|
+
min-width: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.link-L4LQA0 {
|
|
97
|
+
min-width: 0;
|
|
98
|
+
padding-block: var(--moduix-table-of-contents-link-padding-y, var(--moduix-spacing-1));
|
|
99
|
+
border-radius: var(--moduix-table-of-contents-link-radius, var(--moduix-radius-sm));
|
|
100
|
+
color: var(--moduix-table-of-contents-link-color, var(--moduix-color-muted-foreground));
|
|
101
|
+
font-size: var(--moduix-table-of-contents-link-font-size, var(--moduix-text-sm));
|
|
102
|
+
line-height: var(--moduix-table-of-contents-link-line-height, var(--moduix-line-height-text-sm));
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
transition: color var(--moduix-transition-default);
|
|
106
|
+
outline: none;
|
|
107
|
+
padding-inline-start: calc(var(--moduix-table-of-contents-link-padding-x, var(--moduix-spacing-1)) +
|
|
108
|
+
var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md)) +
|
|
109
|
+
var(--moduix-spacing-2) +
|
|
110
|
+
max(0px,
|
|
111
|
+
calc((var(--depth) - 2) *
|
|
112
|
+
var(--moduix-table-of-contents-link-indent, var(--moduix-spacing-2)))));
|
|
113
|
+
padding-inline-end: var(--moduix-table-of-contents-link-padding-x, var(--moduix-spacing-1));
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
display: block;
|
|
116
|
+
position: relative;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (hover: hover) {
|
|
121
|
+
.link-L4LQA0:hover {
|
|
122
|
+
color: var(--moduix-table-of-contents-link-color-hover, var(--moduix-color-foreground));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.link-L4LQA0:focus-visible {
|
|
127
|
+
box-shadow: 0 0 0
|
|
128
|
+
var(--moduix-table-of-contents-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
129
|
+
var(--moduix-table-of-contents-focus-ring-color, var(--moduix-color-ring));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.link-L4LQA0[data-active] {
|
|
133
|
+
color: var(--moduix-table-of-contents-link-color-active, var(--moduix-color-foreground));
|
|
134
|
+
font-weight: var(--moduix-table-of-contents-link-font-weight-active, var(--moduix-weight-medium));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.link-L4LQA0[data-active] .rail-BwE9eo {
|
|
138
|
+
color: var(--moduix-table-of-contents-indicator-bg, var(--moduix-color-muted-foreground));
|
|
139
|
+
opacity: .7;
|
|
140
|
+
translate: 0 var(--moduix-spacing-0-5);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.link-L4LQA0:has(.rail-BwE9eo) {
|
|
144
|
+
overflow: visible;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.indicator-Zeit8l {
|
|
148
|
+
z-index: 1;
|
|
149
|
+
top: calc(var(--_moduix-toc-indicator-top) + var(--moduix-spacing-0-5));
|
|
150
|
+
width: var(--moduix-table-of-contents-indicator-width, var(--moduix-border-width-md));
|
|
151
|
+
height: calc(var(--_moduix-toc-indicator-height) - var(--moduix-spacing-1));
|
|
152
|
+
border-radius: var(--moduix-table-of-contents-indicator-radius, var(--moduix-radius-full));
|
|
153
|
+
background-color: var(--moduix-table-of-contents-indicator-bg, var(--moduix-color-muted-foreground));
|
|
154
|
+
opacity: .7;
|
|
155
|
+
pointer-events: none;
|
|
156
|
+
transition: top var(--moduix-transition-default),
|
|
157
|
+
height var(--moduix-transition-default);
|
|
158
|
+
inset-inline-start: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.rail-BwE9eo {
|
|
162
|
+
top: calc(-1 * var(--moduix-spacing-1-5));
|
|
163
|
+
color: var(--moduix-table-of-contents-rail-color, var(--moduix-color-border));
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
position: absolute;
|
|
166
|
+
inset-inline-start: 0;
|
|
167
|
+
overflow: visible;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.rail-BwE9eo :is(line, path) {
|
|
171
|
+
stroke-width: var(--moduix-border-width-sm);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media (prefers-reduced-motion: reduce) {
|
|
175
|
+
.content-AHeziM {
|
|
176
|
+
scroll-behavior: auto;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.indicator-Zeit8l {
|
|
180
|
+
transition: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toc, useToc, useTocContext } from './Toc.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toc, useToc, useTocContext } from "./Toc.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toc, useToc, useTocContext } from "./Toc.jsx";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Toggle as TogglePrimitive, useToggleContext } from '@ark-ui/solid/toggle';
|
|
2
|
+
import type { ComponentProps } from 'solid-js';
|
|
3
|
+
type ToggleVariant = 'default' | 'outline' | 'ghost';
|
|
4
|
+
type ToggleSize = 'xs' | 'sm' | 'md' | 'lg' | 'icon-sm' | 'icon-md' | 'icon-lg';
|
|
5
|
+
type ToggleRootProps = ComponentProps<typeof TogglePrimitive.Root> & {
|
|
6
|
+
variant?: ToggleVariant;
|
|
7
|
+
size?: ToggleSize;
|
|
8
|
+
};
|
|
9
|
+
declare function ToggleRoot(props: ToggleRootProps): import("solid-js").JSX.Element;
|
|
10
|
+
declare function ToggleIndicator(props: ComponentProps<typeof TogglePrimitive.Indicator>): import("solid-js").JSX.Element;
|
|
11
|
+
declare const Toggle: typeof ToggleRoot & {
|
|
12
|
+
Root: typeof ToggleRoot;
|
|
13
|
+
Indicator: typeof ToggleIndicator;
|
|
14
|
+
Context: (props: TogglePrimitive.ContextProps) => import("solid-js").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
export { Toggle, useToggleContext };
|
|
17
|
+
export type { ToggleRootProps, ToggleSize, ToggleVariant };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
|
+
import { Toggle, ToggleContext, useToggleContext } from "@ark-ui/solid/toggle";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { splitProps } from "solid-js";
|
|
5
|
+
import Toggle_module from "./Toggle.module.js";
|
|
6
|
+
function ToggleRoot(props) {
|
|
7
|
+
const [local, others] = splitProps(props, [
|
|
8
|
+
'asChild',
|
|
9
|
+
'class',
|
|
10
|
+
'size',
|
|
11
|
+
'variant'
|
|
12
|
+
]);
|
|
13
|
+
return createComponent(Toggle.Root, mergeProps({
|
|
14
|
+
get asChild () {
|
|
15
|
+
return local.asChild;
|
|
16
|
+
}
|
|
17
|
+
}, others, {
|
|
18
|
+
"data-slot": "toggle-root",
|
|
19
|
+
get ["data-variant"] () {
|
|
20
|
+
return local.variant ?? 'default';
|
|
21
|
+
},
|
|
22
|
+
get ["data-size"] () {
|
|
23
|
+
return local.size ?? 'md';
|
|
24
|
+
},
|
|
25
|
+
get ["class"] () {
|
|
26
|
+
return clsx(Toggle_module.root, local.class);
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
function ToggleIndicator(props) {
|
|
31
|
+
const [local, others] = splitProps(props, [
|
|
32
|
+
'asChild',
|
|
33
|
+
'class'
|
|
34
|
+
]);
|
|
35
|
+
return createComponent(Toggle.Indicator, mergeProps({
|
|
36
|
+
get asChild () {
|
|
37
|
+
return local.asChild;
|
|
38
|
+
}
|
|
39
|
+
}, others, {
|
|
40
|
+
"data-slot": "toggle-indicator",
|
|
41
|
+
get ["class"] () {
|
|
42
|
+
return clsx(Toggle_module.indicator, local.class);
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
const Toggle_Toggle = Object.assign(ToggleRoot, {
|
|
47
|
+
Root: ToggleRoot,
|
|
48
|
+
Indicator: ToggleIndicator,
|
|
49
|
+
Context: ToggleContext
|
|
50
|
+
});
|
|
51
|
+
export { Toggle_Toggle as Toggle, useToggleContext };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Toggle, ToggleContext, useToggleContext } from "@ark-ui/solid/toggle";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import Toggle_module from "./Toggle.module.jsx";
|
|
5
|
+
function ToggleRoot(props) {
|
|
6
|
+
const [local, others] = splitProps(props, [
|
|
7
|
+
'asChild',
|
|
8
|
+
'class',
|
|
9
|
+
'size',
|
|
10
|
+
'variant'
|
|
11
|
+
]);
|
|
12
|
+
return <Toggle.Root asChild={local.asChild} {...others} data-slot="toggle-root" data-variant={local.variant ?? 'default'} data-size={local.size ?? 'md'} class={clsx(Toggle_module.root, local.class)}/>;
|
|
13
|
+
}
|
|
14
|
+
function ToggleIndicator(props) {
|
|
15
|
+
const [local, others] = splitProps(props, [
|
|
16
|
+
'asChild',
|
|
17
|
+
'class'
|
|
18
|
+
]);
|
|
19
|
+
return <Toggle.Indicator asChild={local.asChild} {...others} data-slot="toggle-indicator" class={clsx(Toggle_module.indicator, local.class)}/>;
|
|
20
|
+
}
|
|
21
|
+
const Toggle_Toggle = Object.assign(ToggleRoot, {
|
|
22
|
+
Root: ToggleRoot,
|
|
23
|
+
Indicator: ToggleIndicator,
|
|
24
|
+
Context: ToggleContext
|
|
25
|
+
});
|
|
26
|
+
export { Toggle_Toggle as Toggle, useToggleContext };
|