@harjs/react-ui 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 +21 -0
- package/README.md +27 -0
- package/dist/assets/css/components/charts/gantt/styles.css +62 -0
- package/dist/assets/css/components/charts/pie/pie.css +90 -0
- package/dist/assets/css/components/data-display/calendar/styles.css +15 -0
- package/dist/assets/css/components/data-display/calendar/styles.week-view.css +144 -0
- package/dist/assets/css/components/data-display/card/statuses.css +377 -0
- package/dist/assets/css/components/data-display/card/styles.css +26 -0
- package/dist/assets/css/components/data-display/chip/chip.css +13 -0
- package/dist/assets/css/components/data-display/diagram/styles.css +125 -0
- package/dist/assets/css/components/data-display/divider/divider.css +8 -0
- package/dist/assets/css/components/data-display/dnd/animations.css +11 -0
- package/dist/assets/css/components/data-display/dnd/shadow.css +26 -0
- package/dist/assets/css/components/data-display/dnd/styles.css +72 -0
- package/dist/assets/css/components/data-display/grid-system/column/position.css +21 -0
- package/dist/assets/css/components/data-display/grid-system/column/styles.css +379 -0
- package/dist/assets/css/components/data-display/grid-system/row/styles.css +35 -0
- package/dist/assets/css/components/data-display/grid-system/styles.css +6 -0
- package/dist/assets/css/components/data-display/kanban-board/styles.css +371 -0
- package/dist/assets/css/components/data-display/paper/styles.css +49 -0
- package/dist/assets/css/components/data-display/syntax-highlighter/core/jsx.template.css +65 -0
- package/dist/assets/css/components/data-display/syntax-highlighter/syntax-highlighter.css +58 -0
- package/dist/assets/css/components/data-display/table/filter-popup.css +11 -0
- package/dist/assets/css/components/data-display/table/properties-popup.css +42 -0
- package/dist/assets/css/components/data-display/table/scroll.css +208 -0
- package/dist/assets/css/components/data-display/table/styles.css +867 -0
- package/dist/assets/css/components/data-display/tabs/tabs.css +245 -0
- package/dist/assets/css/components/data-display/typography/paragraph/align.css +13 -0
- package/dist/assets/css/components/data-display/typography/paragraph/color.css +51 -0
- package/dist/assets/css/components/data-display/typography/paragraph/core.css +6 -0
- package/dist/assets/css/components/data-display/typography/paragraph/size.css +13 -0
- package/dist/assets/css/components/data-display/typography/title/align.css +13 -0
- package/dist/assets/css/components/data-display/typography/title/color.css +0 -0
- package/dist/assets/css/components/data-display/typography/title/core.css +5 -0
- package/dist/assets/css/components/data-display/typography/title/size.css +41 -0
- package/dist/assets/css/components/data-display/typography/typography.css +11 -0
- package/dist/assets/css/components/feedback/alert/statuses.css +224 -0
- package/dist/assets/css/components/feedback/alert/styles.css +61 -0
- package/dist/assets/css/components/feedback/drawer/content.css +7 -0
- package/dist/assets/css/components/feedback/drawer/header.css +56 -0
- package/dist/assets/css/components/feedback/drawer/styles.css +85 -0
- package/dist/assets/css/components/feedback/loading/loading.css +54 -0
- package/dist/assets/css/components/feedback/modal/content.css +6 -0
- package/dist/assets/css/components/feedback/modal/footer.css +9 -0
- package/dist/assets/css/components/feedback/modal/header.css +56 -0
- package/dist/assets/css/components/feedback/modal/media-queries/medium.css +11 -0
- package/dist/assets/css/components/feedback/modal/media-queries/small.css +11 -0
- package/dist/assets/css/components/feedback/modal/media-queries/x-large.css +5 -0
- package/dist/assets/css/components/feedback/modal/styles.css +53 -0
- package/dist/assets/css/components/feedback/notification/notification.css +157 -0
- package/dist/assets/css/components/feedback/popover/styles.css +53 -0
- package/dist/assets/css/components/feedback/popup-confirm/styles.css +165 -0
- package/dist/assets/css/components/feedback/progress/animations.css +10 -0
- package/dist/assets/css/components/feedback/progress/progress.css +50 -0
- package/dist/assets/css/components/feedback/progress/statuses.css +188 -0
- package/dist/assets/css/components/feedback/tooltip/styles.css +60 -0
- package/dist/assets/css/components/form/button/core/icon.css +37 -0
- package/dist/assets/css/components/form/button/core/position.css +19 -0
- package/dist/assets/css/components/form/button/core/shape.css +13 -0
- package/dist/assets/css/components/form/button/core/size.css +14 -0
- package/dist/assets/css/components/form/button/styles.css +32 -0
- package/dist/assets/css/components/form/button-action/styles.css +24 -0
- package/dist/assets/css/components/form/button-group/styles.css +26 -0
- package/dist/assets/css/components/form/checkbox/checkbox.css +53 -0
- package/dist/assets/css/components/form/checkbox/core/border.css +252 -0
- package/dist/assets/css/components/form/date-picker/calendar/calendar.css +14 -0
- package/dist/assets/css/components/form/date-picker/calendar/content.css +62 -0
- package/dist/assets/css/components/form/date-picker/calendar/footer.css +10 -0
- package/dist/assets/css/components/form/date-picker/calendar/header.css +86 -0
- package/dist/assets/css/components/form/date-picker/clock/clock.css +14 -0
- package/dist/assets/css/components/form/date-picker/clock/content.css +48 -0
- package/dist/assets/css/components/form/date-picker/clock/footer.css +6 -0
- package/dist/assets/css/components/form/date-picker/clock/header.css +8 -0
- package/dist/assets/css/components/form/date-picker/date-picker.css +36 -0
- package/dist/assets/css/components/form/input/core/addon.css +11 -0
- package/dist/assets/css/components/form/input/core/border.css +114 -0
- package/dist/assets/css/components/form/input/core/button.css +34 -0
- package/dist/assets/css/components/form/input/core/icon.css +22 -0
- package/dist/assets/css/components/form/input/otp/styles.css +20 -0
- package/dist/assets/css/components/form/input/phone/styles.css +50 -0
- package/dist/assets/css/components/form/input/styles.css +120 -0
- package/dist/assets/css/components/form/radio/core/border.css +252 -0
- package/dist/assets/css/components/form/radio/radio.css +69 -0
- package/dist/assets/css/components/form/select/options.css +117 -0
- package/dist/assets/css/components/form/select/styles.css +184 -0
- package/dist/assets/css/components/form/switch/core/border.css +208 -0
- package/dist/assets/css/components/form/switch/styles.css +61 -0
- package/dist/assets/css/components/form/text-editor/styles.css +130 -0
- package/dist/assets/css/components/form/upload/dropzone.css +166 -0
- package/dist/assets/css/components/form/upload/list-and-gird.css +183 -0
- package/dist/assets/css/components/form/upload/styles.css +215 -0
- package/dist/assets/css/components/layout/layout.css +130 -0
- package/dist/assets/css/components/layout/media-queries/large.css +19 -0
- package/dist/assets/css/components/layout/media-queries/medium.css +19 -0
- package/dist/assets/css/components/layout/media-queries/small.css +19 -0
- package/dist/assets/css/components/layout/media-queries/x-large.css +19 -0
- package/dist/assets/css/components/layout/media-queries/x-small.css +3 -0
- package/dist/assets/css/components/layout/media-queries/xx-large.css +19 -0
- package/dist/assets/css/components/layout/media-queries/xxx-large.css +20 -0
- package/dist/assets/css/components/navigation/breadcrumb/styles.css +0 -0
- package/dist/assets/css/components/navigation/menu/core/open-or-close.css +12 -0
- package/dist/assets/css/components/navigation/menu/styles.css +163 -0
- package/dist/assets/css/components/navigation/menu/variant/horizontal.css +3 -0
- package/dist/assets/css/components/navigation/menu/variant/vertical.css +3 -0
- package/dist/assets/css/components/navigation/pagination/styles.css +169 -0
- package/dist/assets/css/components/navigation/steps/animation.css +8 -0
- package/dist/assets/css/components/navigation/steps/styles.css +146 -0
- package/dist/assets/css/core/animation.css +164 -0
- package/dist/assets/css/core/ar-core.css +192 -0
- package/dist/assets/css/core/color-palette.css +111 -0
- package/dist/assets/css/core/utils.css +16 -0
- package/dist/assets/css/core/variants/animation.css +164 -0
- package/dist/assets/css/core/variants/border.css +18 -0
- package/dist/assets/css/core/variants/borderless.css +362 -0
- package/dist/assets/css/core/variants/dashed.css +362 -0
- package/dist/assets/css/core/variants/filled.css +428 -0
- package/dist/assets/css/core/variants/outlined.css +439 -0
- package/dist/assets/css/core/variants/surface.css +252 -0
- package/dist/assets/fonts/JetBrainsMono-Bold.ttf +0 -0
- package/dist/assets/fonts/JetBrainsMono-Regular.ttf +0 -0
- package/dist/components/charts/gantt/IProps.d.ts +24 -0
- package/dist/components/charts/gantt/IProps.js +1 -0
- package/dist/components/charts/gantt/index.d.ts +5 -0
- package/dist/components/charts/gantt/index.js +308 -0
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/charts/index.js +2 -0
- package/dist/components/charts/pie/IProps.d.ts +7 -0
- package/dist/components/charts/pie/IProps.js +1 -0
- package/dist/components/charts/pie/index.d.ts +5 -0
- package/dist/components/charts/pie/index.js +56 -0
- package/dist/components/data-display/calendar/Body.d.ts +23 -0
- package/dist/components/data-display/calendar/Body.js +14 -0
- package/dist/components/data-display/calendar/Header.d.ts +20 -0
- package/dist/components/data-display/calendar/Header.js +26 -0
- package/dist/components/data-display/calendar/IProps.d.ts +14 -0
- package/dist/components/data-display/calendar/IProps.js +1 -0
- package/dist/components/data-display/calendar/index.d.ts +8 -0
- package/dist/components/data-display/calendar/index.js +27 -0
- package/dist/components/data-display/calendar/views/Day.d.ts +3 -0
- package/dist/components/data-display/calendar/views/Day.js +5 -0
- package/dist/components/data-display/calendar/views/Month.d.ts +3 -0
- package/dist/components/data-display/calendar/views/Month.js +5 -0
- package/dist/components/data-display/calendar/views/Week.d.ts +19 -0
- package/dist/components/data-display/calendar/views/Week.js +173 -0
- package/dist/components/data-display/card/IProps.d.ts +10 -0
- package/dist/components/data-display/card/IProps.js +1 -0
- package/dist/components/data-display/card/index.d.ts +5 -0
- package/dist/components/data-display/card/index.js +14 -0
- package/dist/components/data-display/chip/IProps.d.ts +6 -0
- package/dist/components/data-display/chip/IProps.js +1 -0
- package/dist/components/data-display/chip/index.d.ts +5 -0
- package/dist/components/data-display/chip/index.js +17 -0
- package/dist/components/data-display/diagram/IProps.d.ts +6 -0
- package/dist/components/data-display/diagram/IProps.js +1 -0
- package/dist/components/data-display/diagram/index.d.ts +5 -0
- package/dist/components/data-display/diagram/index.js +298 -0
- package/dist/components/data-display/divider/IProps.d.ts +6 -0
- package/dist/components/data-display/divider/IProps.js +1 -0
- package/dist/components/data-display/divider/index.d.ts +5 -0
- package/dist/components/data-display/divider/index.js +5 -0
- package/dist/components/data-display/dnd/IProps.d.ts +12 -0
- package/dist/components/data-display/dnd/IProps.js +1 -0
- package/dist/components/data-display/dnd/index.d.ts +5 -0
- package/dist/components/data-display/dnd/index.js +125 -0
- package/dist/components/data-display/grid-system/box/Box.d.ts +6 -0
- package/dist/components/data-display/grid-system/box/Box.js +13 -0
- package/dist/components/data-display/grid-system/column/Column.d.ts +4 -0
- package/dist/components/data-display/grid-system/column/Column.js +21 -0
- package/dist/components/data-display/grid-system/column/IProps.d.ts +13 -0
- package/dist/components/data-display/grid-system/column/IProps.js +1 -0
- package/dist/components/data-display/grid-system/index.d.ts +10 -0
- package/dist/components/data-display/grid-system/index.js +11 -0
- package/dist/components/data-display/grid-system/row/IProps.d.ts +4 -0
- package/dist/components/data-display/grid-system/row/IProps.js +1 -0
- package/dist/components/data-display/grid-system/row/Row.d.ts +4 -0
- package/dist/components/data-display/grid-system/row/Row.js +6 -0
- package/dist/components/data-display/kanban-board/IProps.d.ts +31 -0
- package/dist/components/data-display/kanban-board/IProps.js +1 -0
- package/dist/components/data-display/kanban-board/filter/DateFilters.d.ts +25 -0
- package/dist/components/data-display/kanban-board/filter/DateFilters.js +55 -0
- package/dist/components/data-display/kanban-board/filter/SelectFilters.d.ts +27 -0
- package/dist/components/data-display/kanban-board/filter/SelectFilters.js +43 -0
- package/dist/components/data-display/kanban-board/filter/index.d.ts +36 -0
- package/dist/components/data-display/kanban-board/filter/index.js +47 -0
- package/dist/components/data-display/kanban-board/index.d.ts +5 -0
- package/dist/components/data-display/kanban-board/index.js +309 -0
- package/dist/components/data-display/paper/IProps.d.ts +6 -0
- package/dist/components/data-display/paper/IProps.js +1 -0
- package/dist/components/data-display/paper/index.d.ts +5 -0
- package/dist/components/data-display/paper/index.js +12 -0
- package/dist/components/data-display/syntax-highlighter/Import.d.ts +4 -0
- package/dist/components/data-display/syntax-highlighter/Import.js +5 -0
- package/dist/components/data-display/syntax-highlighter/classes/Compiler.d.ts +7 -0
- package/dist/components/data-display/syntax-highlighter/classes/Compiler.js +92 -0
- package/dist/components/data-display/syntax-highlighter/classes/Parser.d.ts +9 -0
- package/dist/components/data-display/syntax-highlighter/classes/Parser.js +99 -0
- package/dist/components/data-display/syntax-highlighter/index.d.ts +11 -0
- package/dist/components/data-display/syntax-highlighter/index.js +41 -0
- package/dist/components/data-display/table/FilterPopup.d.ts +20 -0
- package/dist/components/data-display/table/FilterPopup.js +54 -0
- package/dist/components/data-display/table/Helpers.d.ts +2 -0
- package/dist/components/data-display/table/Helpers.js +10 -0
- package/dist/components/data-display/table/IProps.d.ts +99 -0
- package/dist/components/data-display/table/IProps.js +1 -0
- package/dist/components/data-display/table/PropertiesPopup.d.ts +31 -0
- package/dist/components/data-display/table/PropertiesPopup.js +90 -0
- package/dist/components/data-display/table/THeadCell.d.ts +34 -0
- package/dist/components/data-display/table/THeadCell.js +67 -0
- package/dist/components/data-display/table/body/Editable.d.ts +12 -0
- package/dist/components/data-display/table/body/Editable.js +59 -0
- package/dist/components/data-display/table/body/TBody.d.ts +36 -0
- package/dist/components/data-display/table/body/TBody.js +184 -0
- package/dist/components/data-display/table/header/ActionButtons.d.ts +14 -0
- package/dist/components/data-display/table/header/ActionButtons.js +65 -0
- package/dist/components/data-display/table/header/Header.d.ts +15 -0
- package/dist/components/data-display/table/header/Header.js +10 -0
- package/dist/components/data-display/table/index.d.ts +7 -0
- package/dist/components/data-display/table/index.js +639 -0
- package/dist/components/data-display/tabs/IProps.d.ts +9 -0
- package/dist/components/data-display/tabs/IProps.js +1 -0
- package/dist/components/data-display/tabs/index.d.ts +5 -0
- package/dist/components/data-display/tabs/index.js +110 -0
- package/dist/components/data-display/tabs/skeleton.d.ts +4 -0
- package/dist/components/data-display/tabs/skeleton.js +14 -0
- package/dist/components/data-display/typography/index.d.ts +6 -0
- package/dist/components/data-display/typography/index.js +9 -0
- package/dist/components/data-display/typography/paragraph/IProps.d.ts +7 -0
- package/dist/components/data-display/typography/paragraph/IProps.js +1 -0
- package/dist/components/data-display/typography/paragraph/Paragraph.d.ts +4 -0
- package/dist/components/data-display/typography/paragraph/Paragraph.js +14 -0
- package/dist/components/data-display/typography/title/IProps.d.ts +7 -0
- package/dist/components/data-display/typography/title/IProps.js +1 -0
- package/dist/components/data-display/typography/title/Title.d.ts +4 -0
- package/dist/components/data-display/typography/title/Title.js +13 -0
- package/dist/components/feedback/alert/IProps.d.ts +11 -0
- package/dist/components/feedback/alert/IProps.js +1 -0
- package/dist/components/feedback/alert/index.d.ts +5 -0
- package/dist/components/feedback/alert/index.js +50 -0
- package/dist/components/feedback/drawer/IProps.d.ts +18 -0
- package/dist/components/feedback/drawer/IProps.js +1 -0
- package/dist/components/feedback/drawer/index.d.ts +5 -0
- package/dist/components/feedback/drawer/index.js +94 -0
- package/dist/components/feedback/loading/index.d.ts +4 -0
- package/dist/components/feedback/loading/index.js +7 -0
- package/dist/components/feedback/modal/IProps.d.ts +14 -0
- package/dist/components/feedback/modal/IProps.js +1 -0
- package/dist/components/feedback/modal/index.d.ts +5 -0
- package/dist/components/feedback/modal/index.js +91 -0
- package/dist/components/feedback/notification/IProps.d.ts +9 -0
- package/dist/components/feedback/notification/IProps.js +1 -0
- package/dist/components/feedback/notification/index.d.ts +5 -0
- package/dist/components/feedback/notification/index.js +96 -0
- package/dist/components/feedback/popover/IProps.d.ts +16 -0
- package/dist/components/feedback/popover/IProps.js +1 -0
- package/dist/components/feedback/popover/index.d.ts +5 -0
- package/dist/components/feedback/popover/index.js +91 -0
- package/dist/components/feedback/popup-confirm/IProps.d.ts +10 -0
- package/dist/components/feedback/popup-confirm/IProps.js +1 -0
- package/dist/components/feedback/popup-confirm/index.d.ts +5 -0
- package/dist/components/feedback/popup-confirm/index.js +98 -0
- package/dist/components/feedback/progress/IProps.d.ts +6 -0
- package/dist/components/feedback/progress/IProps.js +1 -0
- package/dist/components/feedback/progress/index.d.ts +5 -0
- package/dist/components/feedback/progress/index.js +26 -0
- package/dist/components/feedback/tooltip/IProps.d.ts +6 -0
- package/dist/components/feedback/tooltip/IProps.js +1 -0
- package/dist/components/feedback/tooltip/index.d.ts +5 -0
- package/dist/components/feedback/tooltip/index.js +129 -0
- package/dist/components/form/button/IProps.d.ts +10 -0
- package/dist/components/form/button/IProps.js +1 -0
- package/dist/components/form/button/index.d.ts +5 -0
- package/dist/components/form/button/index.js +41 -0
- package/dist/components/form/button-action/IProps.d.ts +8 -0
- package/dist/components/form/button-action/IProps.js +1 -0
- package/dist/components/form/button-action/index.d.ts +5 -0
- package/dist/components/form/button-action/index.js +68 -0
- package/dist/components/form/button-group/index.d.ts +7 -0
- package/dist/components/form/button-group/index.js +31 -0
- package/dist/components/form/checkbox/IProps.d.ts +5 -0
- package/dist/components/form/checkbox/IProps.js +1 -0
- package/dist/components/form/checkbox/index.d.ts +5 -0
- package/dist/components/form/checkbox/index.js +24 -0
- package/dist/components/form/date-picker/DATE.d.ts +12 -0
- package/dist/components/form/date-picker/DATE.js +27 -0
- package/dist/components/form/date-picker/Props.d.ts +10 -0
- package/dist/components/form/date-picker/Props.js +1 -0
- package/dist/components/form/date-picker/index.d.ts +5 -0
- package/dist/components/form/date-picker/index.js +365 -0
- package/dist/components/form/input/IProps.d.ts +12 -0
- package/dist/components/form/input/IProps.js +1 -0
- package/dist/components/form/input/decimal/Decimal.d.ts +4 -0
- package/dist/components/form/input/decimal/Decimal.js +54 -0
- package/dist/components/form/input/decimal/IProps.d.ts +8 -0
- package/dist/components/form/input/decimal/IProps.js +1 -0
- package/dist/components/form/input/formatted-decimal/FormattedDecimal.d.ts +4 -0
- package/dist/components/form/input/formatted-decimal/FormattedDecimal.js +73 -0
- package/dist/components/form/input/formatted-decimal/IProps.d.ts +12 -0
- package/dist/components/form/input/formatted-decimal/IProps.js +1 -0
- package/dist/components/form/input/index.d.ts +15 -0
- package/dist/components/form/input/index.js +152 -0
- package/dist/components/form/input/otp/IProps.d.ts +6 -0
- package/dist/components/form/input/otp/IProps.js +1 -0
- package/dist/components/form/input/otp/Otp.d.ts +7 -0
- package/dist/components/form/input/otp/Otp.js +122 -0
- package/dist/components/form/input/phone/IProps.d.ts +11 -0
- package/dist/components/form/input/phone/IProps.js +1 -0
- package/dist/components/form/input/phone/Phone.d.ts +4 -0
- package/dist/components/form/input/phone/Phone.js +41 -0
- package/dist/components/form/radio/IProps.d.ts +12 -0
- package/dist/components/form/radio/IProps.js +1 -0
- package/dist/components/form/radio/index.d.ts +5 -0
- package/dist/components/form/radio/index.js +38 -0
- package/dist/components/form/select/Props.d.ts +35 -0
- package/dist/components/form/select/Props.js +1 -0
- package/dist/components/form/select/index.d.ts +5 -0
- package/dist/components/form/select/index.js +312 -0
- package/dist/components/form/switch/IProps.d.ts +5 -0
- package/dist/components/form/switch/IProps.js +1 -0
- package/dist/components/form/switch/index.d.ts +5 -0
- package/dist/components/form/switch/index.js +36 -0
- package/dist/components/form/text-editor/IProps.d.ts +18 -0
- package/dist/components/form/text-editor/IProps.js +1 -0
- package/dist/components/form/text-editor/index.d.ts +5 -0
- package/dist/components/form/text-editor/index.js +300 -0
- package/dist/components/form/upload/Buttons.d.ts +8 -0
- package/dist/components/form/upload/Buttons.js +27 -0
- package/dist/components/form/upload/Dropzone.d.ts +10 -0
- package/dist/components/form/upload/Dropzone.js +55 -0
- package/dist/components/form/upload/List.d.ts +12 -0
- package/dist/components/form/upload/List.js +21 -0
- package/dist/components/form/upload/Props.d.ts +16 -0
- package/dist/components/form/upload/Props.js +1 -0
- package/dist/components/form/upload/index.d.ts +9 -0
- package/dist/components/form/upload/index.js +184 -0
- package/dist/components/icons/Compiler.d.ts +9 -0
- package/dist/components/icons/Compiler.js +156 -0
- package/dist/components/icons/index.d.ts +10 -0
- package/dist/components/icons/index.js +6 -0
- package/dist/components/layout/Footer.d.ts +3 -0
- package/dist/components/layout/Footer.js +8 -0
- package/dist/components/layout/Header.d.ts +4 -0
- package/dist/components/layout/Header.js +8 -0
- package/dist/components/layout/IProps.d.ts +20 -0
- package/dist/components/layout/IProps.js +1 -0
- package/dist/components/layout/LSider.d.ts +4 -0
- package/dist/components/layout/LSider.js +53 -0
- package/dist/components/layout/Main.d.ts +4 -0
- package/dist/components/layout/Main.js +4 -0
- package/dist/components/layout/RSider.d.ts +3 -0
- package/dist/components/layout/RSider.js +13 -0
- package/dist/components/layout/Section.d.ts +4 -0
- package/dist/components/layout/Section.js +10 -0
- package/dist/components/layout/index.d.ts +12 -0
- package/dist/components/layout/index.js +32 -0
- package/dist/components/navigation/breadcrumb/IProps.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/IProps.js +1 -0
- package/dist/components/navigation/breadcrumb/index.d.ts +5 -0
- package/dist/components/navigation/breadcrumb/index.js +8 -0
- package/dist/components/navigation/menu/IProps.d.ts +14 -0
- package/dist/components/navigation/menu/IProps.js +1 -0
- package/dist/components/navigation/menu/index.d.ts +5 -0
- package/dist/components/navigation/menu/index.js +89 -0
- package/dist/components/navigation/pagination/IProps.d.ts +8 -0
- package/dist/components/navigation/pagination/IProps.js +1 -0
- package/dist/components/navigation/pagination/index.d.ts +5 -0
- package/dist/components/navigation/pagination/index.js +74 -0
- package/dist/components/navigation/steps/IProps.d.ts +16 -0
- package/dist/components/navigation/steps/IProps.js +1 -0
- package/dist/components/navigation/steps/index.d.ts +5 -0
- package/dist/components/navigation/steps/index.js +102 -0
- package/dist/libs/core/application/contexts/Config.d.ts +26 -0
- package/dist/libs/core/application/contexts/Config.js +20 -0
- package/dist/libs/core/application/contexts/Language.d.ts +7 -0
- package/dist/libs/core/application/contexts/Language.js +7 -0
- package/dist/libs/core/application/contexts/Loading.d.ts +11 -0
- package/dist/libs/core/application/contexts/Loading.js +13 -0
- package/dist/libs/core/application/contexts/Notification.d.ts +25 -0
- package/dist/libs/core/application/contexts/Notification.js +29 -0
- package/dist/libs/core/application/contexts/index.d.ts +5 -0
- package/dist/libs/core/application/contexts/index.js +5 -0
- package/dist/libs/core/application/hooks/index.d.ts +41 -0
- package/dist/libs/core/application/hooks/index.js +17 -0
- package/dist/libs/core/application/hooks/useNotification.d.ts +16 -0
- package/dist/libs/core/application/hooks/useNotification.js +23 -0
- package/dist/libs/core/application/hooks/useTranslation.d.ts +9 -0
- package/dist/libs/core/application/hooks/useTranslation.js +25 -0
- package/dist/libs/core/application/hooks/useValidation.d.ts +7 -0
- package/dist/libs/core/application/hooks/useValidation.js +151 -0
- package/dist/libs/core/application/locales/index.d.ts +4 -0
- package/dist/libs/core/application/locales/index.js +3 -0
- package/dist/libs/core/application/locales/kanban-board/IKanbanBoardLocale.d.ts +5 -0
- package/dist/libs/core/application/locales/kanban-board/IKanbanBoardLocale.js +1 -0
- package/dist/libs/core/application/locales/kanban-board/en.d.ts +3 -0
- package/dist/libs/core/application/locales/kanban-board/en.js +5 -0
- package/dist/libs/core/application/locales/kanban-board/tr.d.ts +3 -0
- package/dist/libs/core/application/locales/kanban-board/tr.js +5 -0
- package/dist/libs/core/application/locales/notification/INotificationLocale.d.ts +59 -0
- package/dist/libs/core/application/locales/notification/INotificationLocale.js +1 -0
- package/dist/libs/core/application/locales/notification/en.d.ts +3 -0
- package/dist/libs/core/application/locales/notification/en.js +85 -0
- package/dist/libs/core/application/locales/notification/tr.d.ts +3 -0
- package/dist/libs/core/application/locales/notification/tr.js +85 -0
- package/dist/libs/core/application/locales/table/ITableLocale.d.ts +18 -0
- package/dist/libs/core/application/locales/table/ITableLocale.js +1 -0
- package/dist/libs/core/application/locales/table/en.d.ts +3 -0
- package/dist/libs/core/application/locales/table/en.js +22 -0
- package/dist/libs/core/application/locales/table/tr.d.ts +3 -0
- package/dist/libs/core/application/locales/table/tr.js +22 -0
- package/dist/libs/infrastructure/shared/DATE.d.ts +74 -0
- package/dist/libs/infrastructure/shared/DATE.js +148 -0
- package/dist/libs/infrastructure/shared/Enums.d.ts +18 -0
- package/dist/libs/infrastructure/shared/Enums.js +21 -0
- package/dist/libs/infrastructure/shared/NUMBER.d.ts +8 -0
- package/dist/libs/infrastructure/shared/NUMBER.js +10 -0
- package/dist/libs/infrastructure/shared/PHONE.d.ts +8 -0
- package/dist/libs/infrastructure/shared/PHONE.js +126 -0
- package/dist/libs/infrastructure/shared/Utils.d.ts +20 -0
- package/dist/libs/infrastructure/shared/Utils.js +349 -0
- package/dist/libs/infrastructure/shared/_old_DATE.d.ts +28 -0
- package/dist/libs/infrastructure/shared/_old_DATE.js +68 -0
- package/dist/libs/infrastructure/types/IGlobalProps.d.ts +183 -0
- package/dist/libs/infrastructure/types/IGlobalProps.js +1 -0
- package/dist/libs/infrastructure/types/index.d.ts +155 -0
- package/dist/libs/infrastructure/types/index.js +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
class Utils {
|
|
2
|
+
GetClassName = (variant, status, color, border, size, icon, className) => {
|
|
3
|
+
const classNames = [];
|
|
4
|
+
if (variant)
|
|
5
|
+
classNames.push(variant);
|
|
6
|
+
if (status)
|
|
7
|
+
classNames.push(status);
|
|
8
|
+
if (color)
|
|
9
|
+
classNames.push(color);
|
|
10
|
+
if (border)
|
|
11
|
+
classNames.push(`border-radius-${border.radius}`);
|
|
12
|
+
if (size)
|
|
13
|
+
classNames.push(size);
|
|
14
|
+
if (icon && icon.element) {
|
|
15
|
+
classNames.push("icon");
|
|
16
|
+
classNames.push(`icon-${icon.position || "start"}`);
|
|
17
|
+
}
|
|
18
|
+
if (className)
|
|
19
|
+
classNames.push(className);
|
|
20
|
+
return classNames;
|
|
21
|
+
};
|
|
22
|
+
GetCookie = (name) => {
|
|
23
|
+
if (typeof window === "undefined")
|
|
24
|
+
return null;
|
|
25
|
+
const value = `; ${document.cookie}`;
|
|
26
|
+
const parts = value.split(`; ${name}=`);
|
|
27
|
+
if (parts.length === 2)
|
|
28
|
+
return parts.pop()?.split(";").shift();
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
GetOS = () => {
|
|
32
|
+
const userAgent = navigator.userAgent;
|
|
33
|
+
// İşletim sistemi bilgilerini tespit etmek için regex kullanıyoruz
|
|
34
|
+
if (userAgent.indexOf("Win") !== -1)
|
|
35
|
+
return "Windows";
|
|
36
|
+
if (userAgent.indexOf("Mac") !== -1)
|
|
37
|
+
return "MacOS";
|
|
38
|
+
if (userAgent.indexOf("X11") !== -1)
|
|
39
|
+
return "UNIX";
|
|
40
|
+
if (userAgent.indexOf("Linux") !== -1)
|
|
41
|
+
return "Linux";
|
|
42
|
+
if (userAgent.indexOf("Android") !== -1)
|
|
43
|
+
return "Android";
|
|
44
|
+
if (userAgent.indexOf("like Mac") !== -1)
|
|
45
|
+
return "iOS";
|
|
46
|
+
return "Bilinmeyen OS";
|
|
47
|
+
};
|
|
48
|
+
GetOSShortCutIcons = () => {
|
|
49
|
+
switch (this.GetOS()) {
|
|
50
|
+
case "MacOS":
|
|
51
|
+
return "⌘";
|
|
52
|
+
case "Windows":
|
|
53
|
+
return "ctrl";
|
|
54
|
+
default:
|
|
55
|
+
return "";
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
GetFileTypeInformation = (mimeType) => {
|
|
59
|
+
const typeMap = {
|
|
60
|
+
// Images
|
|
61
|
+
"image/jpeg": {
|
|
62
|
+
category: "image",
|
|
63
|
+
readableType: "JPEG Image",
|
|
64
|
+
commonExtensions: [".jpg", ".jpeg"],
|
|
65
|
+
color: "#4CAF50",
|
|
66
|
+
},
|
|
67
|
+
"image/png": {
|
|
68
|
+
category: "image",
|
|
69
|
+
readableType: "PNG Image",
|
|
70
|
+
commonExtensions: [".png"],
|
|
71
|
+
color: "#4CAF50",
|
|
72
|
+
},
|
|
73
|
+
"image/gif": {
|
|
74
|
+
category: "image",
|
|
75
|
+
readableType: "GIF Image",
|
|
76
|
+
commonExtensions: [".gif"],
|
|
77
|
+
color: "#4CAF50",
|
|
78
|
+
},
|
|
79
|
+
"image/webp": {
|
|
80
|
+
category: "image",
|
|
81
|
+
readableType: "WebP Image",
|
|
82
|
+
commonExtensions: [".webp"],
|
|
83
|
+
color: "#4CAF50",
|
|
84
|
+
},
|
|
85
|
+
"image/svg+xml": {
|
|
86
|
+
category: "image",
|
|
87
|
+
readableType: "SVG Vector Image",
|
|
88
|
+
commonExtensions: [".svg"],
|
|
89
|
+
color: "#4CAF50",
|
|
90
|
+
},
|
|
91
|
+
"image/bmp": {
|
|
92
|
+
category: "image",
|
|
93
|
+
readableType: "Bitmap Image",
|
|
94
|
+
commonExtensions: [".bmp"],
|
|
95
|
+
color: "#4CAF50",
|
|
96
|
+
},
|
|
97
|
+
"image/tiff": {
|
|
98
|
+
category: "image",
|
|
99
|
+
readableType: "TIFF Image",
|
|
100
|
+
commonExtensions: [".tiff", ".tif"],
|
|
101
|
+
color: "#4CAF50",
|
|
102
|
+
},
|
|
103
|
+
// Documents
|
|
104
|
+
"application/pdf": {
|
|
105
|
+
category: "document",
|
|
106
|
+
readableType: "PDF Document",
|
|
107
|
+
commonExtensions: [".pdf"],
|
|
108
|
+
icon: "FileTypePdf",
|
|
109
|
+
color: "#F44336",
|
|
110
|
+
},
|
|
111
|
+
"application/msword": {
|
|
112
|
+
category: "document",
|
|
113
|
+
readableType: "Word Document (Legacy)",
|
|
114
|
+
commonExtensions: [".doc"],
|
|
115
|
+
icon: "FileTypeDoc",
|
|
116
|
+
color: "#2196F3",
|
|
117
|
+
},
|
|
118
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
|
|
119
|
+
category: "document",
|
|
120
|
+
readableType: "Word Document",
|
|
121
|
+
commonExtensions: [".docx"],
|
|
122
|
+
icon: "FileTypeDocx",
|
|
123
|
+
color: "#2196F3",
|
|
124
|
+
},
|
|
125
|
+
// Spreadsheets
|
|
126
|
+
"application/vnd.ms-excel": {
|
|
127
|
+
category: "spreadsheet",
|
|
128
|
+
readableType: "Excel Spreadsheet (Legacy)",
|
|
129
|
+
commonExtensions: [".xls"],
|
|
130
|
+
icon: "FileTypeXls",
|
|
131
|
+
color: "#4CAF50",
|
|
132
|
+
},
|
|
133
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
|
|
134
|
+
category: "spreadsheet",
|
|
135
|
+
readableType: "Excel Spreadsheet",
|
|
136
|
+
commonExtensions: [".xlsx"],
|
|
137
|
+
icon: "FileTypeXlsx",
|
|
138
|
+
color: "#4CAF50",
|
|
139
|
+
},
|
|
140
|
+
"text/csv": {
|
|
141
|
+
category: "spreadsheet",
|
|
142
|
+
readableType: "CSV File",
|
|
143
|
+
commonExtensions: [".csv"],
|
|
144
|
+
icon: "FileTypeCsv",
|
|
145
|
+
color: "#FF9800",
|
|
146
|
+
},
|
|
147
|
+
// Presentations
|
|
148
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": {
|
|
149
|
+
category: "presentation",
|
|
150
|
+
readableType: "PowerPoint Presentation",
|
|
151
|
+
commonExtensions: [".pptx"],
|
|
152
|
+
icon: "FileTypePptx",
|
|
153
|
+
color: "#FF5722",
|
|
154
|
+
},
|
|
155
|
+
// Archives
|
|
156
|
+
"application/zip": {
|
|
157
|
+
category: "archive",
|
|
158
|
+
readableType: "ZIP Archive",
|
|
159
|
+
commonExtensions: [".zip"],
|
|
160
|
+
icon: "FileTypeZip",
|
|
161
|
+
color: "#795548",
|
|
162
|
+
},
|
|
163
|
+
"application/x-rar-compressed": {
|
|
164
|
+
category: "archive",
|
|
165
|
+
readableType: "RAR Archive",
|
|
166
|
+
commonExtensions: [".rar"],
|
|
167
|
+
icon: "FileTypeZip",
|
|
168
|
+
color: "#795548",
|
|
169
|
+
},
|
|
170
|
+
"application/x-7z-compressed": {
|
|
171
|
+
category: "archive",
|
|
172
|
+
readableType: "7-Zip Archive",
|
|
173
|
+
commonExtensions: [".7z"],
|
|
174
|
+
icon: "FileTypeZip",
|
|
175
|
+
color: "#795548",
|
|
176
|
+
},
|
|
177
|
+
"application/gzip": {
|
|
178
|
+
category: "archive",
|
|
179
|
+
readableType: "GZIP Archive",
|
|
180
|
+
commonExtensions: [".gz"],
|
|
181
|
+
icon: "FileTypeZip",
|
|
182
|
+
color: "#795548",
|
|
183
|
+
},
|
|
184
|
+
// Text & Code
|
|
185
|
+
"text/plain": {
|
|
186
|
+
category: "text",
|
|
187
|
+
readableType: "Text File",
|
|
188
|
+
commonExtensions: [".txt"],
|
|
189
|
+
icon: "FileTypeTxt",
|
|
190
|
+
color: "#9E9E9E",
|
|
191
|
+
},
|
|
192
|
+
"text/html": {
|
|
193
|
+
category: "text",
|
|
194
|
+
readableType: "HTML Document",
|
|
195
|
+
commonExtensions: [".html", ".htm"],
|
|
196
|
+
icon: "FileTypeHtml",
|
|
197
|
+
color: "#E91E63",
|
|
198
|
+
},
|
|
199
|
+
"application/json": {
|
|
200
|
+
category: "json",
|
|
201
|
+
readableType: "JSON File",
|
|
202
|
+
commonExtensions: [".json"],
|
|
203
|
+
icon: "FileTypeJson",
|
|
204
|
+
color: "#FFC107",
|
|
205
|
+
},
|
|
206
|
+
"application/xml": {
|
|
207
|
+
category: "xml",
|
|
208
|
+
readableType: "XML File",
|
|
209
|
+
commonExtensions: [".xml"],
|
|
210
|
+
icon: "FileTypeXml",
|
|
211
|
+
color: "#FFC107",
|
|
212
|
+
},
|
|
213
|
+
// Video
|
|
214
|
+
"video/mp4": {
|
|
215
|
+
category: "video",
|
|
216
|
+
readableType: "MP4 Video",
|
|
217
|
+
commonExtensions: [".mp4"],
|
|
218
|
+
icon: "CameraReels",
|
|
219
|
+
color: "#673AB7",
|
|
220
|
+
},
|
|
221
|
+
"video/quicktime": {
|
|
222
|
+
category: "video",
|
|
223
|
+
readableType: "QuickTime Video",
|
|
224
|
+
commonExtensions: [".mov"],
|
|
225
|
+
icon: "CameraReels",
|
|
226
|
+
color: "#673AB7",
|
|
227
|
+
},
|
|
228
|
+
"video/x-msvideo": {
|
|
229
|
+
category: "video",
|
|
230
|
+
readableType: "AVI Video",
|
|
231
|
+
commonExtensions: [".avi"],
|
|
232
|
+
icon: "CameraReels",
|
|
233
|
+
color: "#673AB7",
|
|
234
|
+
},
|
|
235
|
+
"video/x-matroska": {
|
|
236
|
+
category: "video",
|
|
237
|
+
readableType: "MKV Video",
|
|
238
|
+
commonExtensions: [".mkv"],
|
|
239
|
+
icon: "CameraReels",
|
|
240
|
+
color: "#673AB7",
|
|
241
|
+
},
|
|
242
|
+
"video/webm": {
|
|
243
|
+
category: "video",
|
|
244
|
+
readableType: "WebM Video",
|
|
245
|
+
commonExtensions: [".webm"],
|
|
246
|
+
icon: "CameraReels",
|
|
247
|
+
color: "#673AB7",
|
|
248
|
+
},
|
|
249
|
+
"video/x-flv": {
|
|
250
|
+
category: "video",
|
|
251
|
+
readableType: "FLV Video",
|
|
252
|
+
commonExtensions: [".flv"],
|
|
253
|
+
icon: "CameraReels",
|
|
254
|
+
color: "#673AB7",
|
|
255
|
+
},
|
|
256
|
+
// Audio
|
|
257
|
+
"audio/mpeg": {
|
|
258
|
+
category: "audio",
|
|
259
|
+
readableType: "MP3 Audio",
|
|
260
|
+
commonExtensions: [".mp3"],
|
|
261
|
+
icon: "CameraReels",
|
|
262
|
+
color: "#3F51B5",
|
|
263
|
+
},
|
|
264
|
+
"audio/wav": {
|
|
265
|
+
category: "audio",
|
|
266
|
+
readableType: "WAV Audio",
|
|
267
|
+
commonExtensions: [".wav"],
|
|
268
|
+
icon: "CameraReels",
|
|
269
|
+
color: "#3F51B5",
|
|
270
|
+
},
|
|
271
|
+
"audio/ogg": {
|
|
272
|
+
category: "audio",
|
|
273
|
+
readableType: "OGG Audio",
|
|
274
|
+
commonExtensions: [".ogg"],
|
|
275
|
+
icon: "CameraReels",
|
|
276
|
+
color: "#3F51B5",
|
|
277
|
+
},
|
|
278
|
+
"audio/aac": {
|
|
279
|
+
category: "audio",
|
|
280
|
+
readableType: "AAC Audio",
|
|
281
|
+
commonExtensions: [".aac"],
|
|
282
|
+
icon: "CameraReels",
|
|
283
|
+
color: "#3F51B5",
|
|
284
|
+
},
|
|
285
|
+
"audio/flac": {
|
|
286
|
+
category: "audio",
|
|
287
|
+
readableType: "FLAC Audio",
|
|
288
|
+
commonExtensions: [".flac"],
|
|
289
|
+
icon: "CameraReels",
|
|
290
|
+
color: "#3F51B5",
|
|
291
|
+
},
|
|
292
|
+
// Binary/Other
|
|
293
|
+
"application/octet-stream": {
|
|
294
|
+
category: "binary",
|
|
295
|
+
readableType: "Binary File",
|
|
296
|
+
commonExtensions: [],
|
|
297
|
+
icon: "FileEarmark-Fill",
|
|
298
|
+
color: "#607D8B",
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
return (typeMap[mimeType] || {
|
|
302
|
+
category: "other",
|
|
303
|
+
readableType: "Unknown File Type",
|
|
304
|
+
commonExtensions: [],
|
|
305
|
+
icon: "FileEarmark-Fill",
|
|
306
|
+
color: "#9E9E9E",
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
StringFormat = (value, ...args) => {
|
|
310
|
+
if (!args || args.length === 0)
|
|
311
|
+
return value;
|
|
312
|
+
return value.replace(/{(\d+)}/g, (match, number) => {
|
|
313
|
+
const index = parseInt(number, 10);
|
|
314
|
+
return typeof args[index] !== "undefined" ? args[index] : match;
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
IsNullOrEmpty = (value) => {
|
|
318
|
+
if (value === null || value === undefined)
|
|
319
|
+
return true;
|
|
320
|
+
if (typeof value === "string" && value.trim() === "")
|
|
321
|
+
return true;
|
|
322
|
+
if (typeof value === "object" && value !== null && Object.keys(value).length === 0)
|
|
323
|
+
return true;
|
|
324
|
+
if (Array.isArray(value) && value.length === 0)
|
|
325
|
+
return true;
|
|
326
|
+
return false;
|
|
327
|
+
};
|
|
328
|
+
DeepEqual = (obj1, obj2) => {
|
|
329
|
+
if (Object.is(obj1, obj2))
|
|
330
|
+
return true; // Aynı referanssa true döndür
|
|
331
|
+
if (typeof obj1 !== "object" || typeof obj2 !== "object" || obj1 === null || obj2 === null) {
|
|
332
|
+
return false; // Eğer biri obje değilse ve eşit değilse false
|
|
333
|
+
}
|
|
334
|
+
const keys1 = Object.keys(obj1);
|
|
335
|
+
const keys2 = Object.keys(obj2);
|
|
336
|
+
if (keys1.length !== keys2.length)
|
|
337
|
+
return false; // Farklı uzunlukta anahtar varsa false
|
|
338
|
+
return keys1.every((key) => this.DeepEqual(obj1[key], obj2[key])); // Rekürsif karşılaştırma
|
|
339
|
+
};
|
|
340
|
+
RandomCharacterGenerator = (length) => {
|
|
341
|
+
const characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
342
|
+
let sonuc = "";
|
|
343
|
+
for (let i = 0; i < length; i++) {
|
|
344
|
+
sonuc += characters[Math.floor(Math.random() * characters.length)];
|
|
345
|
+
}
|
|
346
|
+
return sonuc;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
export default new Utils();
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare class _DATE {
|
|
2
|
+
/**
|
|
3
|
+
* YYYY-MM-DD
|
|
4
|
+
*
|
|
5
|
+
* @param date
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
YMD: (date: Date) => string;
|
|
9
|
+
/**
|
|
10
|
+
* DD-MM-YYYY
|
|
11
|
+
*
|
|
12
|
+
* @param date
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
DMY: (date: Date) => string;
|
|
16
|
+
/**
|
|
17
|
+
* 30 Mayıs 2021
|
|
18
|
+
*
|
|
19
|
+
* @param date
|
|
20
|
+
* @param locale
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
Verbose: (date: Date, locale?: string, UTC?: boolean) => string;
|
|
24
|
+
WithTime: (date: Date, locale?: string, UTC?: boolean) => string;
|
|
25
|
+
private GetLocaleFromLanguage;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: _DATE;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
class _DATE {
|
|
2
|
+
/**
|
|
3
|
+
* YYYY-MM-DD
|
|
4
|
+
*
|
|
5
|
+
* @param date
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
YMD = (date) => {
|
|
9
|
+
const year = date.getFullYear();
|
|
10
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
11
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
12
|
+
return `${year}-${month}-${day}`;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* DD-MM-YYYY
|
|
16
|
+
*
|
|
17
|
+
* @param date
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
DMY = (date) => {
|
|
21
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
22
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
23
|
+
const year = date.getFullYear();
|
|
24
|
+
return `${day}-${month}-${year}`;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 30 Mayıs 2021
|
|
28
|
+
*
|
|
29
|
+
* @param date
|
|
30
|
+
* @param locale
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
Verbose = (date, locale = "tr", UTC = false) => {
|
|
34
|
+
return date.toLocaleDateString(this.GetLocaleFromLanguage(locale), {
|
|
35
|
+
day: "numeric",
|
|
36
|
+
month: "long",
|
|
37
|
+
year: "numeric",
|
|
38
|
+
...(UTC ? { timeZone: "UTC" } : {}),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
WithTime = (date, locale = "tr", UTC = false) => {
|
|
42
|
+
return date.toLocaleString(this.GetLocaleFromLanguage(locale), {
|
|
43
|
+
day: "numeric",
|
|
44
|
+
month: "long",
|
|
45
|
+
year: "numeric",
|
|
46
|
+
hour: "2-digit",
|
|
47
|
+
minute: "2-digit",
|
|
48
|
+
...(UTC ? { timeZone: "UTC" } : {}),
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
GetLocaleFromLanguage = (lang) => {
|
|
52
|
+
const languageToLocaleMap = {
|
|
53
|
+
tr: "tr-TR",
|
|
54
|
+
en: "en-US",
|
|
55
|
+
fr: "fr-FR",
|
|
56
|
+
de: "de-DE",
|
|
57
|
+
es: "es-ES",
|
|
58
|
+
ja: "ja-JP",
|
|
59
|
+
ru: "ru-RU",
|
|
60
|
+
zh: "zh-CN",
|
|
61
|
+
hi: "hi-IN",
|
|
62
|
+
fa: "fa-IR",
|
|
63
|
+
ko: "ko-KR",
|
|
64
|
+
};
|
|
65
|
+
return languageToLocaleMap[lang] || lang;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export default new _DATE();
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Border, Color, Icon, Sizes, Status, Variants } from ".";
|
|
2
|
+
export interface IChildrenProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content to be rendered inside the component.
|
|
5
|
+
* Can be a string, a single React element, or multiple elements.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```jsx
|
|
9
|
+
* <Component>Hello, World!</Component>
|
|
10
|
+
* * <Component>
|
|
11
|
+
* <span>Hello, World!</span>
|
|
12
|
+
* </Component>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface IVariantProps<T extends {
|
|
18
|
+
component?: string;
|
|
19
|
+
} = {}> {
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the visual style variant of the component.
|
|
22
|
+
*
|
|
23
|
+
* - `filled`: Solid background with contrasting text.
|
|
24
|
+
* - `outlined`: Transparent background with a solid border.
|
|
25
|
+
* - `dashed`: Transparent background with a dashed border.
|
|
26
|
+
* - `text`: Minimalist style with text only (no background or border).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <Component variant="filled">Hello, World!</Component>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
variant?: T["component"] extends "alert" ? Exclude<Variants, "outlined" | "borderless"> : T["component"] extends "card" ? Exclude<Variants, "dashed" | "borderless"> : Variants;
|
|
34
|
+
}
|
|
35
|
+
export interface IStatusProps<T extends {
|
|
36
|
+
component?: string;
|
|
37
|
+
} = {}> {
|
|
38
|
+
/**
|
|
39
|
+
* Determines the semantic status and color scheme of the component.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```jsx
|
|
43
|
+
* <Component status="success">Success Message</Component>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
status?: T["component"] extends "alert" ? Exclude<Status, "primary-light" | "secondary" | "information" | "dark" | "light"> : T["component"] extends "card" ? Exclude<Status, "primary-light" | "secondary" | "information" | "dark" | "light"> : Status;
|
|
47
|
+
}
|
|
48
|
+
export interface IColorProps {
|
|
49
|
+
/**
|
|
50
|
+
* Sets the theme or specific color of the component.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```jsx
|
|
54
|
+
* <Component color="blue">Hello, World!</Component>
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
color?: Color;
|
|
58
|
+
}
|
|
59
|
+
export interface IBorderProps {
|
|
60
|
+
/**
|
|
61
|
+
* Configures the component's border styles and corner radii.
|
|
62
|
+
*
|
|
63
|
+
* - `radius` (optional): Controls the corner rounding behavior.
|
|
64
|
+
* - `sm`: Small radius.
|
|
65
|
+
* - `lg`: Large radius.
|
|
66
|
+
* - `xl`: Extra-large radius.
|
|
67
|
+
* - `xxl`: Double extra-large radius.
|
|
68
|
+
* - `pill`: Fully rounded capsule shape.
|
|
69
|
+
* - `none`: Sharp corners (no radius).
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```jsx
|
|
73
|
+
* <Component border={{ radius: "sm" }}>
|
|
74
|
+
* Content
|
|
75
|
+
* </Component>
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
border?: Border;
|
|
79
|
+
}
|
|
80
|
+
export interface IIconProps {
|
|
81
|
+
/**
|
|
82
|
+
* Configures an icon element inside the component, including its layout and alignment.
|
|
83
|
+
*
|
|
84
|
+
* - `element`: The React JSX node representing the icon.
|
|
85
|
+
* - `position` (optional): The position of the icon relative to the component text.
|
|
86
|
+
* - `start`: Placed before the text.
|
|
87
|
+
* - `end`: Placed after the text.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```jsx
|
|
91
|
+
* <Component
|
|
92
|
+
* icon={{
|
|
93
|
+
* element: <MyIcon />,
|
|
94
|
+
* direction: "row",
|
|
95
|
+
* position: "start"
|
|
96
|
+
* }}
|
|
97
|
+
* >
|
|
98
|
+
* Click Me!
|
|
99
|
+
* </Component>
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
icon?: Icon;
|
|
103
|
+
}
|
|
104
|
+
export interface ISizeProps {
|
|
105
|
+
/**
|
|
106
|
+
* Defines the overall scale and sizing of the component.
|
|
107
|
+
*
|
|
108
|
+
* - `large`: Scaled-up layout for prominence.
|
|
109
|
+
* - `normal`: Standard layout size (Default).
|
|
110
|
+
* - `small`: Compact layout for tight spaces.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```jsx
|
|
114
|
+
* <Component size="large">
|
|
115
|
+
* Large Layout
|
|
116
|
+
* </Component>
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
size?: Sizes;
|
|
120
|
+
}
|
|
121
|
+
export interface IUpperCaseProps {
|
|
122
|
+
/**
|
|
123
|
+
* If `true`, transforms all text inside the component to uppercase.
|
|
124
|
+
*
|
|
125
|
+
* @default false
|
|
126
|
+
* @example
|
|
127
|
+
* ```jsx
|
|
128
|
+
* <Component upperCase>
|
|
129
|
+
* this will be uppercase
|
|
130
|
+
* </Component>
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
upperCase?: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface IValidationProps {
|
|
136
|
+
/**
|
|
137
|
+
* Manages validation feedback and behavior for the component.
|
|
138
|
+
*
|
|
139
|
+
* - `text`: The error or warning message to display.
|
|
140
|
+
* - `scrollTo` (optional): If `true`, automatically scrolls the window to this component when validation fails.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```jsx
|
|
144
|
+
* <Component
|
|
145
|
+
* validation={{
|
|
146
|
+
* text: "This field is required.",
|
|
147
|
+
* scrollTo: true,
|
|
148
|
+
* }}
|
|
149
|
+
* />
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
validation?: {
|
|
153
|
+
text: string | undefined;
|
|
154
|
+
scrollTo?: boolean;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export interface IPlaceholderProps {
|
|
158
|
+
/**
|
|
159
|
+
* The temporary hint text displayed before a value is entered or selected.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```jsx
|
|
163
|
+
* <Component placeholder="Select an option...">
|
|
164
|
+
* Content
|
|
165
|
+
* </Component>
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
placeholder?: string;
|
|
169
|
+
}
|
|
170
|
+
export interface IDisabledProps {
|
|
171
|
+
/**
|
|
172
|
+
* If `true`, disables all user interactions and applies a disabled visual state.
|
|
173
|
+
*
|
|
174
|
+
* @default false
|
|
175
|
+
* @example
|
|
176
|
+
* ```jsx
|
|
177
|
+
* <Component disabled>
|
|
178
|
+
* Disabled Content
|
|
179
|
+
* </Component>
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
disabled?: boolean;
|
|
183
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|