chop-logic-components 4.0.0 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/components/atoms/button/Button.css +1 -1
- package/dist/components/atoms/button/Button2.js +51 -0
- package/dist/components/atoms/button/icon-button/IconButton.css +1 -1
- package/dist/components/atoms/button/icon-button/IconButton2.js +18 -0
- package/dist/components/atoms/button/inner-button/InnerButton.css +1 -1
- package/dist/components/atoms/button/inner-button/InnerButton2.js +21 -0
- package/dist/components/atoms/button/primary-button/PrimaryButton.css +1 -1
- package/dist/components/atoms/button/primary-button/PrimaryButton2.js +20 -0
- package/dist/components/atoms/button/secondary-button/SecondaryButton.css +1 -1
- package/dist/components/atoms/button/secondary-button/SecondaryButton2.js +20 -0
- package/dist/components/atoms/editable-text/EditView.js +18 -37
- package/dist/components/atoms/editable-text/EditableText.css +1 -1
- package/dist/components/atoms/editable-text/EditableText2.js +53 -0
- package/dist/components/atoms/editable-text/ReadView.js +16 -25
- package/dist/components/atoms/editable-text/useEditModeState.js +16 -16
- package/dist/components/atoms/editable-text/useInputFocus.js +13 -8
- package/dist/components/atoms/editable-text/useValueState.js +20 -20
- package/dist/components/atoms/error-message/ErrorMessage.css +1 -1
- package/dist/components/atoms/error-message/ErrorMessage2.js +18 -0
- package/dist/components/atoms/header/Header.css +1 -1
- package/dist/components/atoms/header/Header2.js +23 -0
- package/dist/components/atoms/icon/Icon.css +1 -1
- package/dist/components/atoms/icon/Icon2.js +29 -0
- package/dist/components/atoms/image/BasicImage.js +15 -27
- package/dist/components/atoms/image/FallBackImage.js +16 -10
- package/dist/components/atoms/image/Image.css +1 -1
- package/dist/components/atoms/image/Image2.js +28 -0
- package/dist/components/atoms/image/ResponsivePicture.js +13 -17
- package/dist/components/atoms/input/Input.css +1 -1
- package/dist/components/atoms/input/Input2.js +13 -0
- package/dist/components/atoms/label/Label.css +1 -1
- package/dist/components/atoms/label/Label2.js +35 -0
- package/dist/components/atoms/link/Link.css +1 -1
- package/dist/components/atoms/link/Link2.js +36 -0
- package/dist/components/atoms/portal/Portal.js +10 -10
- package/dist/components/atoms/tooltip/Tooltip.controller.js +42 -34
- package/dist/components/atoms/tooltip/Tooltip.css +1 -1
- package/dist/components/atoms/tooltip/Tooltip2.js +49 -0
- package/dist/components/contexts/form/FormContext.js +5 -5
- package/dist/components/contexts/theme/ThemeContext.js +6 -9
- package/dist/components/contexts/theme/ThemeProvider.js +23 -20
- package/dist/components/hocs/with-figure-caption/Figure.css +1 -1
- package/dist/components/hocs/with-figure-caption/with-figure-caption.js +13 -10
- package/dist/components/hocs/with-tooltip/with-tooltip.js +10 -6
- package/dist/components/molecules/accordion/Accordion.css +1 -1
- package/dist/components/molecules/accordion/Accordion2.js +11 -0
- package/dist/components/molecules/accordion/AccordionItem.css +1 -1
- package/dist/components/molecules/accordion/AccordionItem2.js +24 -0
- package/dist/components/molecules/alert/Alert.css +1 -1
- package/dist/components/molecules/alert/Alert.helpers.js +24 -38
- package/dist/components/molecules/alert/Alert2.js +63 -0
- package/dist/components/molecules/alert/AlertProgressBar.js +10 -13
- package/dist/components/molecules/breadcrumbs/BreadcrumbItem.js +29 -27
- package/dist/components/molecules/breadcrumbs/BreadcrumbList.js +12 -6
- package/dist/components/molecules/breadcrumbs/Breadcrumbs.css +1 -1
- package/dist/components/molecules/breadcrumbs/Breadcrumbs2.js +20 -0
- package/dist/components/molecules/checkbox/Checkbox.controller.js +28 -24
- package/dist/components/molecules/checkbox/Checkbox.css +1 -1
- package/dist/components/molecules/checkbox/Checkbox.helpers.js +5 -9
- package/dist/components/molecules/checkbox/Checkbox2.js +7 -0
- package/dist/components/molecules/checkbox/CheckboxStateful.js +46 -59
- package/dist/components/molecules/checkbox/CheckboxStateless.js +41 -58
- package/dist/components/molecules/multi-select/MultiSelect.Combobox.js +34 -46
- package/dist/components/molecules/multi-select/MultiSelect.Dropdown.js +22 -30
- package/dist/components/molecules/multi-select/MultiSelect.controller.js +32 -36
- package/dist/components/molecules/multi-select/MultiSelect.helpers.js +17 -20
- package/dist/components/molecules/multi-select/MultiSelect.js +59 -60
- package/dist/components/molecules/multi-select/MultiSelectComboboxSelectedValues.js +7 -7
- package/dist/components/molecules/multi-select/Option.js +40 -39
- package/dist/components/molecules/numeric-input/NumericInput.controller.js +50 -44
- package/dist/components/molecules/numeric-input/NumericInput.css +1 -1
- package/dist/components/molecules/numeric-input/NumericInput.helpers.js +7 -18
- package/dist/components/molecules/numeric-input/NumericInput2.js +7 -0
- package/dist/components/molecules/numeric-input/NumericInputStateful.js +72 -107
- package/dist/components/molecules/numeric-input/NumericInputStateless.js +60 -95
- package/dist/components/molecules/search/Search.controller.js +31 -41
- package/dist/components/molecules/search/Search.css +1 -1
- package/dist/components/molecules/search/Search2.js +67 -0
- package/dist/components/molecules/select/Select.controller.js +35 -31
- package/dist/components/molecules/select/Select.css +1 -1
- package/dist/components/molecules/select/Select.helpers.js +10 -15
- package/dist/components/molecules/select/Select2.js +62 -0
- package/dist/components/molecules/select/combobox/Combobox.css +1 -1
- package/dist/components/molecules/select/combobox/Combobox2.js +31 -0
- package/dist/components/molecules/select/dropdown/Dropdown.css +1 -1
- package/dist/components/molecules/select/dropdown/Dropdown2.js +31 -0
- package/dist/components/molecules/select/option/Option.css +1 -1
- package/dist/components/molecules/select/option/Option2.js +36 -0
- package/dist/components/molecules/switch/Switch.controller.js +32 -32
- package/dist/components/molecules/switch/Switch.css +1 -1
- package/dist/components/molecules/switch/Switch.helpers.js +5 -9
- package/dist/components/molecules/switch/Switch2.js +58 -0
- package/dist/components/molecules/text-input/TextInput.controller.js +46 -35
- package/dist/components/molecules/text-input/TextInput.css +1 -1
- package/dist/components/molecules/text-input/TextInput.helpers.js +7 -16
- package/dist/components/molecules/text-input/TextInput2.js +7 -0
- package/dist/components/molecules/text-input/TextInputButtons.js +20 -37
- package/dist/components/molecules/text-input/TextInputStateful.js +62 -91
- package/dist/components/molecules/text-input/TextInputStateless.js +59 -88
- package/dist/components/organisms/dialog/Dialog.css +1 -1
- package/dist/components/organisms/dialog/Dialog2.js +50 -0
- package/dist/components/organisms/form/Form.controller.js +28 -28
- package/dist/components/organisms/form/Form.css +1 -1
- package/dist/components/organisms/form/Form.helpers.js +9 -11
- package/dist/components/organisms/form/Form2.js +52 -0
- package/dist/components/organisms/grid/Grid.controller.js +27 -33
- package/dist/components/organisms/grid/Grid.css +1 -1
- package/dist/components/organisms/grid/Grid.helpers.js +13 -14
- package/dist/components/organisms/grid/Grid2.js +52 -0
- package/dist/components/organisms/grid/body/GridBody.css +1 -1
- package/dist/components/organisms/grid/body/GridBody2.js +26 -0
- package/dist/components/organisms/grid/checkbox/GridCheckbox.css +1 -1
- package/dist/components/organisms/grid/checkbox/GridCheckbox2.js +35 -0
- package/dist/components/organisms/grid/column-group/GridColumnGroup2.js +14 -0
- package/dist/components/organisms/grid/data-cell/GridDataCell.js +5 -5
- package/dist/components/organisms/grid/grid-row/GridRow2.js +24 -0
- package/dist/components/organisms/grid/head/GridHead.css +1 -1
- package/dist/components/organisms/grid/head/GridHead2.js +23 -0
- package/dist/components/organisms/grid/header-cell/HeaderCell.js +5 -8
- package/dist/components/organisms/grid/select-all-grid-rows-cell/SelectAllGridRowsCell.js +15 -24
- package/dist/components/organisms/grid/select-grid-row-cell/SelectGridRowCell.js +14 -23
- package/dist/components/organisms/menu/Menu.css +1 -1
- package/dist/components/organisms/menu/Menu2.js +24 -0
- package/dist/components/organisms/menu/leaf/MenuLeaf.css +1 -1
- package/dist/components/organisms/menu/leaf/MenuLeaf2.js +31 -0
- package/dist/components/organisms/menu/list-item/MenuListItem.css +1 -1
- package/dist/components/organisms/menu/list-item/MenuListItem2.js +38 -0
- package/dist/components/organisms/menu/sub-menu/SubMenu.css +1 -1
- package/dist/components/organisms/menu/sub-menu/SubMenu2.js +56 -0
- package/dist/components/organisms/tabs/Tabs.css +1 -1
- package/dist/components/organisms/tabs/Tabs2.js +60 -0
- package/dist/components/organisms/tabs/button/TabButton.css +1 -1
- package/dist/components/organisms/tabs/button/TabButton2.js +83 -0
- package/dist/components/organisms/tabs/content/TabContent.css +1 -1
- package/dist/components/organisms/tabs/content/TabContent2.js +16 -0
- package/dist/components/organisms/tabs/edit-input/TabEditInput.css +1 -1
- package/dist/components/organisms/tabs/edit-input/TabEditInput2.js +45 -0
- package/dist/components/organisms/tabs/list/TabList.css +1 -1
- package/dist/components/organisms/tabs/list/TabList2.js +51 -0
- package/dist/enums/alert-mode.js +6 -4
- package/dist/enums/button-view.js +6 -4
- package/dist/enums/element-size.js +6 -4
- package/dist/enums/icon-name.js +6 -4
- package/dist/enums/loader-view.js +6 -4
- package/dist/enums/orientation-mode.js +6 -4
- package/dist/enums/semantic-color.js +6 -4
- package/dist/enums/tooltip-container.js +6 -4
- package/dist/hooks/use-auto-close/use-auto-close.js +17 -17
- package/dist/hooks/use-click-outside/use-click-outside.js +18 -18
- package/dist/hooks/use-container-dimensions/use-container-dimensions.js +15 -15
- package/dist/hooks/use-debounce/use-debounce.js +14 -14
- package/dist/hooks/use-element-ids/use-element-ids.js +11 -11
- package/dist/hooks/use-is-hovered/use-is-hovered.js +14 -14
- package/dist/hooks/use-is-mounted/use-is-mounted.js +14 -14
- package/dist/hooks/use-is-overflow/use-is-overflow.js +26 -26
- package/dist/hooks/use-key-press/use-key-press.js +17 -13
- package/dist/hooks/use-modal-focus-trap/use-modal-focus-trap.js +15 -19
- package/dist/hooks/use-remaining-timer/use-remaining-timer.js +35 -37
- package/dist/hooks/use-reset-form-input/use-reset-form-input.js +10 -10
- package/dist/hooks/use-theme/use-theme.js +6 -6
- package/dist/hooks/use-tooltip-position/use-tooltip-position.js +36 -30
- package/dist/hooks/use-window-dimensions/use-window-dimensions.js +18 -15
- package/dist/index.es.js +55 -112
- package/dist/styles/icons.css +1 -1
- package/dist/styles/main.css +1 -1
- package/dist/utils/get-class-name.js +13 -15
- package/dist/utils/handle-dropdown-list-key-press.js +26 -31
- package/dist/utils/move-focus-on-element-by-id.js +6 -6
- package/package.json +15 -17
- package/dist/components/atoms/button/Button.js +0 -66
- package/dist/components/atoms/button/icon-button/IconButton.js +0 -15
- package/dist/components/atoms/button/icon-button/index.js +0 -3
- package/dist/components/atoms/button/index.js +0 -3
- package/dist/components/atoms/button/inner-button/InnerButton.js +0 -28
- package/dist/components/atoms/button/inner-button/index.js +0 -3
- package/dist/components/atoms/button/primary-button/PrimaryButton.js +0 -18
- package/dist/components/atoms/button/primary-button/index.js +0 -3
- package/dist/components/atoms/button/secondary-button/SecondaryButton.js +0 -18
- package/dist/components/atoms/button/secondary-button/index.js +0 -3
- package/dist/components/atoms/editable-text/EditableText.js +0 -71
- package/dist/components/atoms/editable-text/index.js +0 -3
- package/dist/components/atoms/error-message/ErrorMessage.js +0 -30
- package/dist/components/atoms/error-message/index.js +0 -3
- package/dist/components/atoms/header/Header.js +0 -22
- package/dist/components/atoms/header/index.js +0 -3
- package/dist/components/atoms/icon/Icon.js +0 -31
- package/dist/components/atoms/icon/index.js +0 -3
- package/dist/components/atoms/image/Image.js +0 -24
- package/dist/components/atoms/image/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -10
- package/dist/components/atoms/input/index.js +0 -3
- package/dist/components/atoms/label/Label.js +0 -30
- package/dist/components/atoms/label/index.js +0 -3
- package/dist/components/atoms/link/Link.js +0 -39
- package/dist/components/atoms/link/index.js +0 -3
- package/dist/components/atoms/tooltip/Tooltip.js +0 -70
- package/dist/components/atoms/tooltip/index.js +0 -3
- package/dist/components/molecules/accordion/Accordion.js +0 -11
- package/dist/components/molecules/accordion/AccordionItem.js +0 -24
- package/dist/components/molecules/accordion/index.js +0 -3
- package/dist/components/molecules/alert/Alert.js +0 -59
- package/dist/components/molecules/alert/index.js +0 -3
- package/dist/components/molecules/breadcrumbs/Breadcrumbs.js +0 -31
- package/dist/components/molecules/breadcrumbs/index.js +0 -3
- package/dist/components/molecules/checkbox/Checkbox.js +0 -7
- package/dist/components/molecules/checkbox/index.js +0 -3
- package/dist/components/molecules/numeric-input/NumericInput.js +0 -7
- package/dist/components/molecules/numeric-input/index.js +0 -3
- package/dist/components/molecules/search/Search.js +0 -112
- package/dist/components/molecules/search/index.js +0 -3
- package/dist/components/molecules/select/Select.js +0 -64
- package/dist/components/molecules/select/combobox/Combobox.js +0 -46
- package/dist/components/molecules/select/combobox/index.js +0 -3
- package/dist/components/molecules/select/dropdown/Dropdown.js +0 -46
- package/dist/components/molecules/select/dropdown/index.js +0 -3
- package/dist/components/molecules/select/index.js +0 -3
- package/dist/components/molecules/select/option/Option.js +0 -38
- package/dist/components/molecules/select/option/index.js +0 -3
- package/dist/components/molecules/switch/Switch.js +0 -68
- package/dist/components/molecules/switch/index.js +0 -3
- package/dist/components/molecules/text-input/TextInput.js +0 -7
- package/dist/components/molecules/text-input/index.js +0 -3
- package/dist/components/organisms/dialog/Dialog.js +0 -32
- package/dist/components/organisms/dialog/index.js +0 -3
- package/dist/components/organisms/form/Form.js +0 -48
- package/dist/components/organisms/form/index.js +0 -3
- package/dist/components/organisms/grid/Grid.js +0 -60
- package/dist/components/organisms/grid/body/GridBody.js +0 -31
- package/dist/components/organisms/grid/checkbox/GridCheckbox.js +0 -52
- package/dist/components/organisms/grid/column-group/GridColumnGroup.js +0 -26
- package/dist/components/organisms/grid/grid-row/GridRow.js +0 -35
- package/dist/components/organisms/grid/grid-row/index.js +0 -3
- package/dist/components/organisms/grid/head/GridHead.js +0 -35
- package/dist/components/organisms/grid/index.js +0 -3
- package/dist/components/organisms/menu/Menu.js +0 -22
- package/dist/components/organisms/menu/index.js +0 -3
- package/dist/components/organisms/menu/leaf/MenuLeaf.js +0 -28
- package/dist/components/organisms/menu/list-item/MenuListItem.js +0 -35
- package/dist/components/organisms/menu/sub-menu/SubMenu.js +0 -67
- package/dist/components/organisms/menu/sub-menu/index.js +0 -3
- package/dist/components/organisms/tabs/Tabs.js +0 -80
- package/dist/components/organisms/tabs/button/TabButton.js +0 -111
- package/dist/components/organisms/tabs/content/TabContent.js +0 -19
- package/dist/components/organisms/tabs/edit-input/TabEditInput.js +0 -64
- package/dist/components/organisms/tabs/index.js +0 -3
- package/dist/components/organisms/tabs/list/TabList.js +0 -67
package/dist/enums/icon-name.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
var i = /* @__PURE__ */ ((o) => (o.Activity = "chop-icon__activity", o.Airplay = "chop-icon__airplay", o.AlertCircle = "chop-icon__alert-circle", o.AlertOctagon = "chop-icon__alert-octagon", o.AlertTriangle = "chop-icon__alert-triangle", o.AlignCenter = "chop-icon__align-center", o.AlignJustify = "chop-icon__align-justify", o.AlignLeft = "chop-icon__align-left", o.AlignRight = "chop-icon__align-right", o.Anchor = "chop-icon__anchor", o.Aperture = "chop-icon__aperture", o.Archive = "chop-icon__archive", o.ArrowDown = "chop-icon__arrow-down", o.ArrowDownCircle = "chop-icon__arrow-down-circle", o.ArrowDownLeft = "chop-icon__arrow-down-left", o.ArrowDownRight = "chop-icon__arrow-down-right", o.ArrowLeft = "chop-icon__arrow-left", o.ArrowLeftCircle = "chop-icon__arrow-left-circle", o.ArrowRight = "chop-icon__arrow-right", o.ArrowRightCircle = "chop-icon__arrow-right-circle", o.ArrowUp = "chop-icon__arrow-up", o.ArrowUpCircle = "chop-icon__arrow-up-circle", o.ArrowUpLeft = "chop-icon__arrow-up-left", o.ArrowUpRight = "chop-icon__arrow-up-right", o.AtSign = "chop-icon__at-sign", o.Award = "chop-icon__award", o.BarChart = "chop-icon__bar-chart", o.BarChart2 = "chop-icon__bar-chart-2", o.Battery = "chop-icon__battery", o.BatteryCharging = "chop-icon__battery-charging", o.Bell = "chop-icon__bell", o.BellOff = "chop-icon__bell-off", o.Bluetooth = "chop-icon__bluetooth", o.Bold = "chop-icon__bold", o.Book = "chop-icon__book", o.BookOpen = "chop-icon__book-open", o.Bookmark = "chop-icon__bookmark", o.Box = "chop-icon__box", o.Briefcase = "chop-icon__briefcase", o.Calendar = "chop-icon__calendar", o.Camera = "chop-icon__camera", o.CameraOff = "chop-icon__camera-off", o.Cast = "chop-icon__cast", o.Check = "chop-icon__check", o.CheckCircle = "chop-icon__check-circle", o.CheckSquare = "chop-icon__check-square", o.ChevronDown = "chop-icon__chevron-down", o.ChevronLeft = "chop-icon__chevron-left", o.ChevronRight = "chop-icon__chevron-right", o.ChevronUp = "chop-icon__chevron-up", o.ChevronsDown = "chop-icon__chevrons-down", o.ChevronsLeft = "chop-icon__chevrons-left", o.ChevronsRight = "chop-icon__chevrons-right", o.ChevronsUp = "chop-icon__chevrons-up", o.Chrome = "chop-icon__chrome", o.Circle = "chop-icon__circle", o.Clipboard = "chop-icon__clipboard", o.Clock = "chop-icon__clock", o.Cloud = "chop-icon__cloud", o.CloudDrizzle = "chop-icon__cloud-drizzle", o.CloudLightning = "chop-icon__cloud-lightning", o.CloudOff = "chop-icon__cloud-off", o.CloudRain = "chop-icon__cloud-rain", o.CloudSnow = "chop-icon__cloud-snow", o.Code = "chop-icon__code", o.Codepen = "chop-icon__codepen", o.Codesandbox = "chop-icon__codesandbox", o.Coffee = "chop-icon__coffee", o.Columns = "chop-icon__columns", o.Command = "chop-icon__command", o.Compass = "chop-icon__compass", o.Copy = "chop-icon__copy", o.CornerDownLeft = "chop-icon__corner-down-left", o.CornerDownRight = "chop-icon__corner-down-right", o.CornerLeftDown = "chop-icon__corner-left-down", o.CornerLeftUp = "chop-icon__corner-left-up", o.CornerRightDown = "chop-icon__corner-right-down", o.CornerRightUp = "chop-icon__corner-right-up", o.CornerUpLeft = "chop-icon__corner-up-left", o.CornerUpRight = "chop-icon__corner-up-right", o.Cpu = "chop-icon__cpu", o.CreditCard = "chop-icon__credit-card", o.Crop = "chop-icon__crop", o.Crosshair = "chop-icon__crosshair", o.Database = "chop-icon__database", o.Delete = "chop-icon__delete", o.Disc = "chop-icon__disc", o.DollarSign = "chop-icon__dollar-sign", o.Download = "chop-icon__download", o.DownloadCloud = "chop-icon__download-cloud", o.Droplet = "chop-icon__droplet", o.Edit = "chop-icon__edit", o.Edit2 = "chop-icon__edit-2", o.Edit3 = "chop-icon__edit-3", o.ExternalLink = "chop-icon__external-link", o.Eye = "chop-icon__eye", o.EyeOff = "chop-icon__eye-off", o.Facebook = "chop-icon__facebook", o.FastForward = "chop-icon__fast-forward", o.Feather = "chop-icon__feather", o.Figma = "chop-icon__figma", o.File = "chop-icon__file", o.FileMinus = "chop-icon__file-minus", o.FilePlus = "chop-icon__file-plus", o.FileText = "chop-icon__file-text", o.Film = "chop-icon__film", o.Filter = "chop-icon__filter", o.Flag = "chop-icon__flag", o.Folder = "chop-icon__folder", o.FolderMinus = "chop-icon__folder-minus", o.FolderPlus = "chop-icon__folder-plus", o.Framer = "chop-icon__framer", o.Frown = "chop-icon__frown", o.Gift = "chop-icon__gift", o.GitBranch = "chop-icon__git-branch", o.GitCommit = "chop-icon__git-commit", o.GitMerge = "chop-icon__git-merge", o.GitPullRequest = "chop-icon__git-pull-request", o.Github = "chop-icon__github", o.Gitlab = "chop-icon__gitlab", o.Globe = "chop-icon__globe", o.Grid = "chop-icon__grid", o.HardDrive = "chop-icon__hard-drive", o.Hash = "chop-icon__hash", o.Headphones = "chop-icon__headphones", o.Heart = "chop-icon__heart", o.HelpCircle = "chop-icon__help-circle", o.Hexagon = "chop-icon__hexagon", o.Home = "chop-icon__home", o.Image = "chop-icon__image", o.Inbox = "chop-icon__inbox", o.Info = "chop-icon__info", o.Instagram = "chop-icon__instagram", o.Italic = "chop-icon__italic", o.Key = "chop-icon__key", o.Layers = "chop-icon__layers", o.Layout = "chop-icon__layout", o.LifeBuoy = "chop-icon__life-buoy", o.Link = "chop-icon__link", o.Link2 = "chop-icon__link-2", o.Linkedin = "chop-icon__linkedin", o.List = "chop-icon__list", o.Loader = "chop-icon__loader", o.Lock = "chop-icon__lock", o.LogIn = "chop-icon__log-in", o.LogOut = "chop-icon__log-out", o.Mail = "chop-icon__mail", o.Map = "chop-icon__map", o.MapPin = "chop-icon__map-pin", o.Maximize = "chop-icon__maximize", o.Maximize2 = "chop-icon__maximize-2", o.Meh = "chop-icon__meh", o.Menu = "chop-icon__menu", o.MessageCircle = "chop-icon__message-circle", o.MessageSquare = "chop-icon__message-square", o.Mic = "chop-icon__mic", o.MicOff = "chop-icon__mic-off", o.Minimize = "chop-icon__minimize", o.Minimize2 = "chop-icon__minimize-2", o.Minus = "chop-icon__minus", o.MinusCircle = "chop-icon__minus-circle", o.MinusSquare = "chop-icon__minus-square", o.Monitor = "chop-icon__monitor", o.Moon = "chop-icon__moon", o.MoreHorizontal = "chop-icon__more-horizontal", o.MoreVertical = "chop-icon__more-vertical", o.MousePointer = "chop-icon__mouse-pointer", o.Move = "chop-icon__move", o.Music = "chop-icon__music", o.Navigation = "chop-icon__navigation", o.Navigation2 = "chop-icon__navigation-2", o.Octagon = "chop-icon__octagon", o.Package = "chop-icon__package", o.Paperclip = "chop-icon__paperclip", o.Pause = "chop-icon__pause", o.PauseCircle = "chop-icon__pause-circle", o.PenTool = "chop-icon__pen-tool", o.Percent = "chop-icon__percent", o.Phone = "chop-icon__phone", o.PhoneCall = "chop-icon__phone-call", o.PhoneForwarded = "chop-icon__phone-forwarded", o.PhoneIncoming = "chop-icon__phone-incoming", o.PhoneMissed = "chop-icon__phone-missed", o.PhoneOff = "chop-icon__phone-off", o.PhoneOutgoing = "chop-icon__phone-outgoing", o.PieChart = "chop-icon__pie-chart", o.Play = "chop-icon__play", o.PlayCircle = "chop-icon__play-circle", o.Plus = "chop-icon__plus", o.PlusCircle = "chop-icon__plus-circle", o.PlusSquare = "chop-icon__plus-square", o.Pocket = "chop-icon__pocket", o.Power = "chop-icon__power", o.Printer = "chop-icon__printer", o.Radio = "chop-icon__radio", o.RefreshCcw = "chop-icon__refresh-ccw", o.RefreshCw = "chop-icon__refresh-cw", o.Repeat = "chop-icon__repeat", o.Rewind = "chop-icon__rewind", o.RotateCcw = "chop-icon__rotate-ccw", o.RotateCw = "chop-icon__rotate-cw", o.Rss = "chop-icon__rss", o.Save = "chop-icon__save", o.Scissors = "chop-icon__scissors", o.Search = "chop-icon__search", o.Send = "chop-icon__send", o.Server = "chop-icon__server", o.Settings = "chop-icon__settings", o.Share = "chop-icon__share", o.Share2 = "chop-icon__share-2", o.Shield = "chop-icon__shield", o.ShieldOff = "chop-icon__shield-off", o.ShoppingBag = "chop-icon__shopping-bag", o.ShoppingCart = "chop-icon__shopping-cart", o.Shuffle = "chop-icon__shuffle", o.Sidebar = "chop-icon__sidebar", o.SkipBack = "chop-icon__skip-back", o.SkipForward = "chop-icon__skip-forward", o.Slack = "chop-icon__slack", o.Slash = "chop-icon__slash", o.Sliders = "chop-icon__sliders", o.Smartphone = "chop-icon__smartphone", o.Smile = "chop-icon__smile", o.Speaker = "chop-icon__speaker", o.Square = "chop-icon__square", o.Star = "chop-icon__star", o.StopCircle = "chop-icon__stop-circle", o.Sun = "chop-icon__sun", o.Sunrise = "chop-icon__sunrise", o.Sunset = "chop-icon__sunset", o.Tablet = "chop-icon__tablet", o.Tag = "chop-icon__tag", o.Target = "chop-icon__target", o.Terminal = "chop-icon__terminal", o.Thermometer = "chop-icon__thermometer", o.ThumbsDown = "chop-icon__thumbs-down", o.ThumbsUp = "chop-icon__thumbs-up", o.ToggleLeft = "chop-icon__toggle-left", o.ToggleRight = "chop-icon__toggle-right", o.Tool = "chop-icon__tool", o.Trash = "chop-icon__trash", o.Trash2 = "chop-icon__trash-2", o.Trello = "chop-icon__trello", o.TrendingDown = "chop-icon__trending-down", o.TrendingUp = "chop-icon__trending-up", o.Triangle = "chop-icon__triangle", o.Truck = "chop-icon__truck", o.Tv = "chop-icon__tv", o.Twitch = "chop-icon__twitch", o.Twitter = "chop-icon__twitter", o.Type = "chop-icon__type", o.Umbrella = "chop-icon__umbrella", o.Underline = "chop-icon__underline", o.Unlock = "chop-icon__unlock", o.Upload = "chop-icon__upload", o.UploadCloud = "chop-icon__upload-cloud", o.User = "chop-icon__user", o.UserCheck = "chop-icon__user-check", o.UserMinus = "chop-icon__user-minus", o.UserPlus = "chop-icon__user-plus", o.UserX = "chop-icon__user-x", o.Users = "chop-icon__users", o.Video = "chop-icon__video", o.VideoOff = "chop-icon__video-off", o.Voicemail = "chop-icon__voicemail", o.Volume = "chop-icon__volume", o.Volume1 = "chop-icon__volume-1", o.Volume2 = "chop-icon__volume-2", o.VolumeX = "chop-icon__volume-x", o.Watch = "chop-icon__watch", o.Wifi = "chop-icon__wifi", o.WifiOff = "chop-icon__wifi-off", o.Wind = "chop-icon__wind", o.X = "chop-icon__x", o.XCircle = "chop-icon__x-circle", o.XOctagon = "chop-icon__x-octagon", o.XSquare = "chop-icon__x-square", o.Youtube = "chop-icon__youtube", o.Zap = "chop-icon__zap", o.ZapOff = "chop-icon__zap-off", o.ZoomIn = "chop-icon__zoom-in", o.ZoomOut = "chop-icon__zoom-out", o))(i || {});
|
|
2
|
-
|
|
3
|
-
i as IconName
|
|
4
|
-
};
|
|
1
|
+
//#region src/enums/icon-name.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Activity = "chop-icon__activity", e.Airplay = "chop-icon__airplay", e.AlertCircle = "chop-icon__alert-circle", e.AlertOctagon = "chop-icon__alert-octagon", e.AlertTriangle = "chop-icon__alert-triangle", e.AlignCenter = "chop-icon__align-center", e.AlignJustify = "chop-icon__align-justify", e.AlignLeft = "chop-icon__align-left", e.AlignRight = "chop-icon__align-right", e.Anchor = "chop-icon__anchor", e.Aperture = "chop-icon__aperture", e.Archive = "chop-icon__archive", e.ArrowDown = "chop-icon__arrow-down", e.ArrowDownCircle = "chop-icon__arrow-down-circle", e.ArrowDownLeft = "chop-icon__arrow-down-left", e.ArrowDownRight = "chop-icon__arrow-down-right", e.ArrowLeft = "chop-icon__arrow-left", e.ArrowLeftCircle = "chop-icon__arrow-left-circle", e.ArrowRight = "chop-icon__arrow-right", e.ArrowRightCircle = "chop-icon__arrow-right-circle", e.ArrowUp = "chop-icon__arrow-up", e.ArrowUpCircle = "chop-icon__arrow-up-circle", e.ArrowUpLeft = "chop-icon__arrow-up-left", e.ArrowUpRight = "chop-icon__arrow-up-right", e.AtSign = "chop-icon__at-sign", e.Award = "chop-icon__award", e.BarChart = "chop-icon__bar-chart", e.BarChart2 = "chop-icon__bar-chart-2", e.Battery = "chop-icon__battery", e.BatteryCharging = "chop-icon__battery-charging", e.Bell = "chop-icon__bell", e.BellOff = "chop-icon__bell-off", e.Bluetooth = "chop-icon__bluetooth", e.Bold = "chop-icon__bold", e.Book = "chop-icon__book", e.BookOpen = "chop-icon__book-open", e.Bookmark = "chop-icon__bookmark", e.Box = "chop-icon__box", e.Briefcase = "chop-icon__briefcase", e.Calendar = "chop-icon__calendar", e.Camera = "chop-icon__camera", e.CameraOff = "chop-icon__camera-off", e.Cast = "chop-icon__cast", e.Check = "chop-icon__check", e.CheckCircle = "chop-icon__check-circle", e.CheckSquare = "chop-icon__check-square", e.ChevronDown = "chop-icon__chevron-down", e.ChevronLeft = "chop-icon__chevron-left", e.ChevronRight = "chop-icon__chevron-right", e.ChevronUp = "chop-icon__chevron-up", e.ChevronsDown = "chop-icon__chevrons-down", e.ChevronsLeft = "chop-icon__chevrons-left", e.ChevronsRight = "chop-icon__chevrons-right", e.ChevronsUp = "chop-icon__chevrons-up", e.Chrome = "chop-icon__chrome", e.Circle = "chop-icon__circle", e.Clipboard = "chop-icon__clipboard", e.Clock = "chop-icon__clock", e.Cloud = "chop-icon__cloud", e.CloudDrizzle = "chop-icon__cloud-drizzle", e.CloudLightning = "chop-icon__cloud-lightning", e.CloudOff = "chop-icon__cloud-off", e.CloudRain = "chop-icon__cloud-rain", e.CloudSnow = "chop-icon__cloud-snow", e.Code = "chop-icon__code", e.Codepen = "chop-icon__codepen", e.Codesandbox = "chop-icon__codesandbox", e.Coffee = "chop-icon__coffee", e.Columns = "chop-icon__columns", e.Command = "chop-icon__command", e.Compass = "chop-icon__compass", e.Copy = "chop-icon__copy", e.CornerDownLeft = "chop-icon__corner-down-left", e.CornerDownRight = "chop-icon__corner-down-right", e.CornerLeftDown = "chop-icon__corner-left-down", e.CornerLeftUp = "chop-icon__corner-left-up", e.CornerRightDown = "chop-icon__corner-right-down", e.CornerRightUp = "chop-icon__corner-right-up", e.CornerUpLeft = "chop-icon__corner-up-left", e.CornerUpRight = "chop-icon__corner-up-right", e.Cpu = "chop-icon__cpu", e.CreditCard = "chop-icon__credit-card", e.Crop = "chop-icon__crop", e.Crosshair = "chop-icon__crosshair", e.Database = "chop-icon__database", e.Delete = "chop-icon__delete", e.Disc = "chop-icon__disc", e.DollarSign = "chop-icon__dollar-sign", e.Download = "chop-icon__download", e.DownloadCloud = "chop-icon__download-cloud", e.Droplet = "chop-icon__droplet", e.Edit = "chop-icon__edit", e.Edit2 = "chop-icon__edit-2", e.Edit3 = "chop-icon__edit-3", e.ExternalLink = "chop-icon__external-link", e.Eye = "chop-icon__eye", e.EyeOff = "chop-icon__eye-off", e.Facebook = "chop-icon__facebook", e.FastForward = "chop-icon__fast-forward", e.Feather = "chop-icon__feather", e.Figma = "chop-icon__figma", e.File = "chop-icon__file", e.FileMinus = "chop-icon__file-minus", e.FilePlus = "chop-icon__file-plus", e.FileText = "chop-icon__file-text", e.Film = "chop-icon__film", e.Filter = "chop-icon__filter", e.Flag = "chop-icon__flag", e.Folder = "chop-icon__folder", e.FolderMinus = "chop-icon__folder-minus", e.FolderPlus = "chop-icon__folder-plus", e.Framer = "chop-icon__framer", e.Frown = "chop-icon__frown", e.Gift = "chop-icon__gift", e.GitBranch = "chop-icon__git-branch", e.GitCommit = "chop-icon__git-commit", e.GitMerge = "chop-icon__git-merge", e.GitPullRequest = "chop-icon__git-pull-request", e.Github = "chop-icon__github", e.Gitlab = "chop-icon__gitlab", e.Globe = "chop-icon__globe", e.Grid = "chop-icon__grid", e.HardDrive = "chop-icon__hard-drive", e.Hash = "chop-icon__hash", e.Headphones = "chop-icon__headphones", e.Heart = "chop-icon__heart", e.HelpCircle = "chop-icon__help-circle", e.Hexagon = "chop-icon__hexagon", e.Home = "chop-icon__home", e.Image = "chop-icon__image", e.Inbox = "chop-icon__inbox", e.Info = "chop-icon__info", e.Instagram = "chop-icon__instagram", e.Italic = "chop-icon__italic", e.Key = "chop-icon__key", e.Layers = "chop-icon__layers", e.Layout = "chop-icon__layout", e.LifeBuoy = "chop-icon__life-buoy", e.Link = "chop-icon__link", e.Link2 = "chop-icon__link-2", e.Linkedin = "chop-icon__linkedin", e.List = "chop-icon__list", e.Loader = "chop-icon__loader", e.Lock = "chop-icon__lock", e.LogIn = "chop-icon__log-in", e.LogOut = "chop-icon__log-out", e.Mail = "chop-icon__mail", e.Map = "chop-icon__map", e.MapPin = "chop-icon__map-pin", e.Maximize = "chop-icon__maximize", e.Maximize2 = "chop-icon__maximize-2", e.Meh = "chop-icon__meh", e.Menu = "chop-icon__menu", e.MessageCircle = "chop-icon__message-circle", e.MessageSquare = "chop-icon__message-square", e.Mic = "chop-icon__mic", e.MicOff = "chop-icon__mic-off", e.Minimize = "chop-icon__minimize", e.Minimize2 = "chop-icon__minimize-2", e.Minus = "chop-icon__minus", e.MinusCircle = "chop-icon__minus-circle", e.MinusSquare = "chop-icon__minus-square", e.Monitor = "chop-icon__monitor", e.Moon = "chop-icon__moon", e.MoreHorizontal = "chop-icon__more-horizontal", e.MoreVertical = "chop-icon__more-vertical", e.MousePointer = "chop-icon__mouse-pointer", e.Move = "chop-icon__move", e.Music = "chop-icon__music", e.Navigation = "chop-icon__navigation", e.Navigation2 = "chop-icon__navigation-2", e.Octagon = "chop-icon__octagon", e.Package = "chop-icon__package", e.Paperclip = "chop-icon__paperclip", e.Pause = "chop-icon__pause", e.PauseCircle = "chop-icon__pause-circle", e.PenTool = "chop-icon__pen-tool", e.Percent = "chop-icon__percent", e.Phone = "chop-icon__phone", e.PhoneCall = "chop-icon__phone-call", e.PhoneForwarded = "chop-icon__phone-forwarded", e.PhoneIncoming = "chop-icon__phone-incoming", e.PhoneMissed = "chop-icon__phone-missed", e.PhoneOff = "chop-icon__phone-off", e.PhoneOutgoing = "chop-icon__phone-outgoing", e.PieChart = "chop-icon__pie-chart", e.Play = "chop-icon__play", e.PlayCircle = "chop-icon__play-circle", e.Plus = "chop-icon__plus", e.PlusCircle = "chop-icon__plus-circle", e.PlusSquare = "chop-icon__plus-square", e.Pocket = "chop-icon__pocket", e.Power = "chop-icon__power", e.Printer = "chop-icon__printer", e.Radio = "chop-icon__radio", e.RefreshCcw = "chop-icon__refresh-ccw", e.RefreshCw = "chop-icon__refresh-cw", e.Repeat = "chop-icon__repeat", e.Rewind = "chop-icon__rewind", e.RotateCcw = "chop-icon__rotate-ccw", e.RotateCw = "chop-icon__rotate-cw", e.Rss = "chop-icon__rss", e.Save = "chop-icon__save", e.Scissors = "chop-icon__scissors", e.Search = "chop-icon__search", e.Send = "chop-icon__send", e.Server = "chop-icon__server", e.Settings = "chop-icon__settings", e.Share = "chop-icon__share", e.Share2 = "chop-icon__share-2", e.Shield = "chop-icon__shield", e.ShieldOff = "chop-icon__shield-off", e.ShoppingBag = "chop-icon__shopping-bag", e.ShoppingCart = "chop-icon__shopping-cart", e.Shuffle = "chop-icon__shuffle", e.Sidebar = "chop-icon__sidebar", e.SkipBack = "chop-icon__skip-back", e.SkipForward = "chop-icon__skip-forward", e.Slack = "chop-icon__slack", e.Slash = "chop-icon__slash", e.Sliders = "chop-icon__sliders", e.Smartphone = "chop-icon__smartphone", e.Smile = "chop-icon__smile", e.Speaker = "chop-icon__speaker", e.Square = "chop-icon__square", e.Star = "chop-icon__star", e.StopCircle = "chop-icon__stop-circle", e.Sun = "chop-icon__sun", e.Sunrise = "chop-icon__sunrise", e.Sunset = "chop-icon__sunset", e.Tablet = "chop-icon__tablet", e.Tag = "chop-icon__tag", e.Target = "chop-icon__target", e.Terminal = "chop-icon__terminal", e.Thermometer = "chop-icon__thermometer", e.ThumbsDown = "chop-icon__thumbs-down", e.ThumbsUp = "chop-icon__thumbs-up", e.ToggleLeft = "chop-icon__toggle-left", e.ToggleRight = "chop-icon__toggle-right", e.Tool = "chop-icon__tool", e.Trash = "chop-icon__trash", e.Trash2 = "chop-icon__trash-2", e.Trello = "chop-icon__trello", e.TrendingDown = "chop-icon__trending-down", e.TrendingUp = "chop-icon__trending-up", e.Triangle = "chop-icon__triangle", e.Truck = "chop-icon__truck", e.Tv = "chop-icon__tv", e.Twitch = "chop-icon__twitch", e.Twitter = "chop-icon__twitter", e.Type = "chop-icon__type", e.Umbrella = "chop-icon__umbrella", e.Underline = "chop-icon__underline", e.Unlock = "chop-icon__unlock", e.Upload = "chop-icon__upload", e.UploadCloud = "chop-icon__upload-cloud", e.User = "chop-icon__user", e.UserCheck = "chop-icon__user-check", e.UserMinus = "chop-icon__user-minus", e.UserPlus = "chop-icon__user-plus", e.UserX = "chop-icon__user-x", e.Users = "chop-icon__users", e.Video = "chop-icon__video", e.VideoOff = "chop-icon__video-off", e.Voicemail = "chop-icon__voicemail", e.Volume = "chop-icon__volume", e.Volume1 = "chop-icon__volume-1", e.Volume2 = "chop-icon__volume-2", e.VolumeX = "chop-icon__volume-x", e.Watch = "chop-icon__watch", e.Wifi = "chop-icon__wifi", e.WifiOff = "chop-icon__wifi-off", e.Wind = "chop-icon__wind", e.X = "chop-icon__x", e.XCircle = "chop-icon__x-circle", e.XOctagon = "chop-icon__x-octagon", e.XSquare = "chop-icon__x-square", e.Youtube = "chop-icon__youtube", e.Zap = "chop-icon__zap", e.ZapOff = "chop-icon__zap-off", e.ZoomIn = "chop-icon__zoom-in", e.ZoomOut = "chop-icon__zoom-out", e;
|
|
4
|
+
}({});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as IconName };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
//#region src/enums/loader-view.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Dots = "dots", e.Brackets = "brackets", e.Linear = "linear", e.Square = "square", e.Circle = "circle", e.Pulse = "pulse", e.Arrow = "arrow", e.Filler = "filler", e.Rotation = "rotation", e;
|
|
4
|
+
}({});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as LoaderView };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
//#region src/enums/orientation-mode.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Vertical = "vertical", e.Horizontal = "horizontal", e;
|
|
4
|
+
}({});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as OrientationMode };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
//#region src/enums/semantic-color.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Default = "default", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e;
|
|
4
|
+
}({});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as SemanticColor };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
//#region src/enums/tooltip-container.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e;
|
|
4
|
+
}({});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as TooltipContainer };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useEffect as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
i as useAutoClose
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
//#region src/hooks/use-auto-close/use-auto-close.ts
|
|
3
|
+
var t = ({ isOpened: t, onClose: n, autoClose: r = !0, autoCloseDelay: i = 3e3 }) => {
|
|
4
|
+
e(() => {
|
|
5
|
+
if (!t || !r) return;
|
|
6
|
+
let e = setTimeout(() => {
|
|
7
|
+
n();
|
|
8
|
+
}, i);
|
|
9
|
+
return () => clearTimeout(e);
|
|
10
|
+
}, [
|
|
11
|
+
t,
|
|
12
|
+
r,
|
|
13
|
+
i,
|
|
14
|
+
n
|
|
15
|
+
]);
|
|
18
16
|
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { t as useAutoClose };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useEffect as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
a as useClickOutside
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
//#region src/hooks/use-click-outside/use-click-outside.ts
|
|
3
|
+
var t = ({ ref: t, onClickOutsideHandler: n, dependentRef: r }) => {
|
|
4
|
+
e(() => {
|
|
5
|
+
let e = (e) => {
|
|
6
|
+
let i = t?.current && !t.current.contains(e.target), a = r?.current ? !r?.current?.contains(e.target) : !0;
|
|
7
|
+
i && a && n();
|
|
8
|
+
};
|
|
9
|
+
return document.addEventListener("mousedown", e), () => {
|
|
10
|
+
document.removeEventListener("mousedown", e);
|
|
11
|
+
};
|
|
12
|
+
}, [
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
n
|
|
16
|
+
]);
|
|
19
17
|
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { t as useClickOutside };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
h as useContainerDimensions
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-container-dimensions/use-container-dimensions.ts
|
|
3
|
+
var n = ({ ref: n, isVisible: r }) => {
|
|
4
|
+
let [i, a] = t({
|
|
5
|
+
width: 0,
|
|
6
|
+
height: 0
|
|
7
|
+
});
|
|
8
|
+
return e(() => {
|
|
9
|
+
n?.current && r && a({
|
|
10
|
+
width: n.current.offsetWidth,
|
|
11
|
+
height: n.current.offsetHeight
|
|
12
|
+
});
|
|
13
|
+
}, [n, r]), i;
|
|
16
14
|
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as useContainerDimensions };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
m as useDebounce
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-debounce/use-debounce.ts
|
|
3
|
+
var n = (n, r) => {
|
|
4
|
+
let [i, a] = t(n);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = setTimeout(() => {
|
|
7
|
+
a(n);
|
|
8
|
+
}, r);
|
|
9
|
+
return () => {
|
|
10
|
+
clearTimeout(e);
|
|
11
|
+
};
|
|
12
|
+
}, [n, r]), i;
|
|
15
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as useDebounce };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useId as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useId as e } from "react";
|
|
2
|
+
//#region src/hooks/use-element-ids/use-element-ids.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = e(), r = t ?? n;
|
|
5
|
+
return {
|
|
6
|
+
elementId: r,
|
|
7
|
+
errorId: `${r}_error`,
|
|
8
|
+
dropdownId: `${r}_dropdown`
|
|
9
|
+
};
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as useElementIds };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-is-hovered/use-is-hovered.ts
|
|
3
|
+
function n(n, r = !0) {
|
|
4
|
+
let [i, a] = t(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = n.current;
|
|
7
|
+
if (!e || !r) return;
|
|
8
|
+
let t = () => a(!0), i = () => a(!1);
|
|
9
|
+
return e.addEventListener("mouseenter", t), e.addEventListener("mouseleave", i), () => {
|
|
10
|
+
e.removeEventListener("mouseenter", t), e.removeEventListener("mouseleave", i);
|
|
11
|
+
};
|
|
12
|
+
}, [n, r]), i;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as useIsHovered };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
n as useIsMounted
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-is-mounted/use-is-mounted.ts
|
|
3
|
+
var n = (n, r = 300) => {
|
|
4
|
+
let [i, a] = t(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e;
|
|
7
|
+
return n ? a(!0) : e = setTimeout(() => {
|
|
8
|
+
a(!1);
|
|
9
|
+
}, r), () => {
|
|
10
|
+
e && clearTimeout(e);
|
|
11
|
+
};
|
|
12
|
+
}, [n, r]), i;
|
|
15
13
|
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as useIsMounted };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
v as useIsOverflow
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
//#region src/hooks/use-is-overflow/use-is-overflow.ts
|
|
3
|
+
var n = ({ ref: n, dimension: r, isMounted: i }) => {
|
|
4
|
+
let [a, o] = t(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = () => {
|
|
7
|
+
let { current: e } = n;
|
|
8
|
+
if (e) {
|
|
9
|
+
if (r === "width") {
|
|
10
|
+
let { scrollWidth: t = 0, clientWidth: n = 0 } = e;
|
|
11
|
+
o(t > n);
|
|
12
|
+
}
|
|
13
|
+
if (r === "height") {
|
|
14
|
+
let { scrollHeight: t = 0, clientHeight: n = 0 } = e;
|
|
15
|
+
o(t > n);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return i && e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
20
|
+
}, [
|
|
21
|
+
n,
|
|
22
|
+
r,
|
|
23
|
+
i
|
|
24
|
+
]), a;
|
|
27
25
|
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { n as useIsOverflow };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { useEffect as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
//#region src/hooks/use-key-press/use-key-press.ts
|
|
3
|
+
var t = ({ ref: t, keyCode: n, onKeyPress: r }) => {
|
|
4
|
+
e(() => {
|
|
5
|
+
let e = (e) => {
|
|
6
|
+
e?.code === n && t?.current && r();
|
|
7
|
+
};
|
|
8
|
+
return document.addEventListener("keydown", e, !1), () => {
|
|
9
|
+
document.removeEventListener("keydown", e, !1);
|
|
10
|
+
};
|
|
11
|
+
}, [
|
|
12
|
+
t,
|
|
13
|
+
n,
|
|
14
|
+
r
|
|
15
|
+
]);
|
|
14
16
|
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { t as useKeyPress };
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { useEffect as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
t.removeEventListener("keydown", c);
|
|
15
|
-
};
|
|
16
|
-
}, [n, r]);
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
u as useModalFocusTrap
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
//#region src/hooks/use-modal-focus-trap/use-modal-focus-trap.ts
|
|
3
|
+
var t = ({ modalRef: t, isOpened: n }) => {
|
|
4
|
+
e(() => {
|
|
5
|
+
let e = t.current;
|
|
6
|
+
if (!n || !e) return;
|
|
7
|
+
let r = Array.from(e.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])")), i = r[0], a = r.at(-1), o = (e) => {
|
|
8
|
+
e.key === "Tab" && (e.shiftKey && document.activeElement === i ? (e.preventDefault(), a.focus()) : !e.shiftKey && document.activeElement === a && (e.preventDefault(), i.focus()));
|
|
9
|
+
};
|
|
10
|
+
return e.addEventListener("keydown", o), () => {
|
|
11
|
+
e.removeEventListener("keydown", o);
|
|
12
|
+
};
|
|
13
|
+
}, [t, n]);
|
|
20
14
|
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as useModalFocusTrap };
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, [i, a, u, r, m]), g;
|
|
1
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
+
//#region src/hooks/use-remaining-timer/use-remaining-timer.ts
|
|
3
|
+
function r({ isOpened: r, isHovered: i, onClose: a, autoClose: o = !0, autoCloseDelay: s = 3e3 }) {
|
|
4
|
+
let [c, l] = n(100), u = t(0), d = t(0), f = t(0);
|
|
5
|
+
return e(() => {
|
|
6
|
+
if (!o) return;
|
|
7
|
+
if (!r) {
|
|
8
|
+
l(100), d.current = 0, f.current && cancelAnimationFrame(f.current);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (i) {
|
|
12
|
+
f.current && cancelAnimationFrame(f.current);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
u.current = Date.now() - d.current;
|
|
16
|
+
let e = () => {
|
|
17
|
+
let t = Date.now() - u.current;
|
|
18
|
+
if (d.current = t, l(Math.max(0, 100 - t / s * 100)), t >= s) {
|
|
19
|
+
a();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
f.current = requestAnimationFrame(e);
|
|
23
|
+
};
|
|
24
|
+
return f.current = requestAnimationFrame(e), () => {
|
|
25
|
+
f.current && cancelAnimationFrame(f.current);
|
|
26
|
+
};
|
|
27
|
+
}, [
|
|
28
|
+
r,
|
|
29
|
+
i,
|
|
30
|
+
a,
|
|
31
|
+
s,
|
|
32
|
+
o
|
|
33
|
+
]), c;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as useRemainingTimer };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
n as useResetFormInput
|
|
1
|
+
import { FormContext as e } from "../../components/contexts/form/FormContext.js";
|
|
2
|
+
import { useContext as t, useEffect as n } from "react";
|
|
3
|
+
//#region src/hooks/use-reset-form-input/use-reset-form-input.ts
|
|
4
|
+
var r = (r) => {
|
|
5
|
+
let { resetSignal: i } = t(e);
|
|
6
|
+
n(() => {
|
|
7
|
+
i && r();
|
|
8
|
+
}, [i, r]);
|
|
11
9
|
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as useResetFormInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
1
|
+
import { ThemeContext as e } from "../../components/contexts/theme/ThemeContext.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
//#region src/hooks/use-theme/use-theme.ts
|
|
4
|
+
var n = () => t(e);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as useTheme };
|