@arkyn/components 3.0.1-beta.17 → 3.0.1-beta.170
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 +41 -0
- package/package.json +458 -20
- package/styles.d.ts +3 -0
- package/dist/bundle.js +0 -4292
- package/dist/bundle.umd.cjs +0 -30
- package/dist/documentation/src/app.d.ts +0 -3
- package/dist/documentation/src/app.d.ts.map +0 -1
- package/dist/documentation/src/app.js +0 -55
- package/dist/documentation/src/components/examples.alert.d.ts +0 -3
- package/dist/documentation/src/components/examples.alert.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.alert.js +0 -7
- package/dist/documentation/src/components/examples.audioPlayer.d.ts +0 -3
- package/dist/documentation/src/components/examples.audioPlayer.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.audioPlayer.js +0 -8
- package/dist/documentation/src/components/examples.badge.d.ts +0 -3
- package/dist/documentation/src/components/examples.badge.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.badge.js +0 -9
- package/dist/documentation/src/components/examples.button.d.ts +0 -3
- package/dist/documentation/src/components/examples.button.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.button.js +0 -9
- package/dist/documentation/src/components/examples.cardTab.d.ts +0 -3
- package/dist/documentation/src/components/examples.cardTab.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.cardTab.js +0 -7
- package/dist/documentation/src/components/examples.checkbox.d.ts +0 -3
- package/dist/documentation/src/components/examples.checkbox.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.checkbox.js +0 -13
- package/dist/documentation/src/components/examples.currencyInput.d.ts +0 -3
- package/dist/documentation/src/components/examples.currencyInput.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.currencyInput.js +0 -9
- package/dist/documentation/src/components/examples.divider.d.ts +0 -3
- package/dist/documentation/src/components/examples.divider.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.divider.js +0 -7
- package/dist/documentation/src/components/examples.drawer.d.ts +0 -3
- package/dist/documentation/src/components/examples.drawer.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.drawer.js +0 -11
- package/dist/documentation/src/components/examples.iconButton.d.ts +0 -3
- package/dist/documentation/src/components/examples.iconButton.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.iconButton.js +0 -9
- package/dist/documentation/src/components/examples.input.d.ts +0 -3
- package/dist/documentation/src/components/examples.input.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.input.js +0 -9
- package/dist/documentation/src/components/examples.maskedInput.d.ts +0 -3
- package/dist/documentation/src/components/examples.maskedInput.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.maskedInput.js +0 -9
- package/dist/documentation/src/components/examples.modal.d.ts +0 -3
- package/dist/documentation/src/components/examples.modal.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.modal.js +0 -10
- package/dist/documentation/src/components/examples.multiSelect.d.ts +0 -3
- package/dist/documentation/src/components/examples.multiSelect.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.multiSelect.js +0 -92
- package/dist/documentation/src/components/examples.phoneInput.d.ts +0 -3
- package/dist/documentation/src/components/examples.phoneInput.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.phoneInput.js +0 -26
- package/dist/documentation/src/components/examples.radio.d.ts +0 -3
- package/dist/documentation/src/components/examples.radio.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.radio.js +0 -11
- package/dist/documentation/src/components/examples.slider.d.ts +0 -3
- package/dist/documentation/src/components/examples.slider.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.slider.js +0 -10
- package/dist/documentation/src/components/examples.switch.d.ts +0 -3
- package/dist/documentation/src/components/examples.switch.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.switch.js +0 -20
- package/dist/documentation/src/components/examples.tab.d.ts +0 -3
- package/dist/documentation/src/components/examples.tab.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.tab.js +0 -7
- package/dist/documentation/src/components/examples.texarea.d.ts +0 -3
- package/dist/documentation/src/components/examples.texarea.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.texarea.js +0 -34
- package/dist/documentation/src/components/examples.tooltip.d.ts +0 -3
- package/dist/documentation/src/components/examples.tooltip.d.ts.map +0 -1
- package/dist/documentation/src/components/examples.tooltip.js +0 -8
- package/dist/documentation/src/main.d.ts +0 -3
- package/dist/documentation/src/main.d.ts.map +0 -1
- package/dist/documentation/src/main.js +0 -7
- package/dist/documentation/src/ui/box.d.ts +0 -8
- package/dist/documentation/src/ui/box.d.ts.map +0 -1
- package/dist/documentation/src/ui/box.js +0 -5
- package/dist/documentation/src/ui/row.d.ts +0 -7
- package/dist/documentation/src/ui/row.d.ts.map +0 -1
- package/dist/documentation/src/ui/row.js +0 -5
- package/dist/documentation/vite.config.d.ts +0 -3
- package/dist/documentation/vite.config.d.ts.map +0 -1
- package/dist/documentation/vite.config.js +0 -12
- package/dist/src/components/alert/alertContainer/index.d.ts +0 -44
- package/dist/src/components/alert/alertContainer/index.d.ts.map +0 -1
- package/dist/src/components/alert/alertContainer/index.js +0 -71
- package/dist/src/components/alert/alertContent/index.d.ts +0 -45
- package/dist/src/components/alert/alertContent/index.d.ts.map +0 -1
- package/dist/src/components/alert/alertContent/index.js +0 -47
- package/dist/src/components/alert/alertDescription/index.d.ts +0 -49
- package/dist/src/components/alert/alertDescription/index.d.ts.map +0 -1
- package/dist/src/components/alert/alertDescription/index.js +0 -51
- package/dist/src/components/alert/alertIcon/index.d.ts +0 -52
- package/dist/src/components/alert/alertIcon/index.d.ts.map +0 -1
- package/dist/src/components/alert/alertIcon/index.js +0 -66
- package/dist/src/components/alert/alertTitle/index.d.ts +0 -46
- package/dist/src/components/alert/alertTitle/index.d.ts.map +0 -1
- package/dist/src/components/alert/alertTitle/index.js +0 -48
- package/dist/src/components/audioPlayer/index.d.ts +0 -60
- package/dist/src/components/audioPlayer/index.d.ts.map +0 -1
- package/dist/src/components/audioPlayer/index.js +0 -130
- package/dist/src/components/badge/index.d.ts +0 -51
- package/dist/src/components/badge/index.d.ts.map +0 -1
- package/dist/src/components/badge/index.js +0 -49
- package/dist/src/components/button/index.d.ts +0 -60
- package/dist/src/components/button/index.d.ts.map +0 -1
- package/dist/src/components/button/index.js +0 -61
- package/dist/src/components/cardTab/cardTabButton/index.d.ts +0 -72
- package/dist/src/components/cardTab/cardTabButton/index.d.ts.map +0 -1
- package/dist/src/components/cardTab/cardTabButton/index.js +0 -80
- package/dist/src/components/cardTab/cardTabContainer/index.d.ts +0 -83
- package/dist/src/components/cardTab/cardTabContainer/index.d.ts.map +0 -1
- package/dist/src/components/cardTab/cardTabContainer/index.js +0 -88
- package/dist/src/components/cardTab/cardTabContext.d.ts +0 -16
- package/dist/src/components/cardTab/cardTabContext.d.ts.map +0 -1
- package/dist/src/components/cardTab/cardTabContext.js +0 -10
- package/dist/src/components/checkbox/index.d.ts +0 -73
- package/dist/src/components/checkbox/index.d.ts.map +0 -1
- package/dist/src/components/checkbox/index.js +0 -86
- package/dist/src/components/currencyInput/index.d.ts +0 -98
- package/dist/src/components/currencyInput/index.d.ts.map +0 -1
- package/dist/src/components/currencyInput/index.js +0 -140
- package/dist/src/components/divider/index.d.ts +0 -45
- package/dist/src/components/divider/index.d.ts.map +0 -1
- package/dist/src/components/divider/index.js +0 -45
- package/dist/src/components/drawer/drawerContainer/index.d.ts +0 -71
- package/dist/src/components/drawer/drawerContainer/index.d.ts.map +0 -1
- package/dist/src/components/drawer/drawerContainer/index.js +0 -75
- package/dist/src/components/drawer/drawerContext.d.ts +0 -12
- package/dist/src/components/drawer/drawerContext.d.ts.map +0 -1
- package/dist/src/components/drawer/drawerContext.js +0 -10
- package/dist/src/components/drawer/drawerHeader/index.d.ts +0 -55
- package/dist/src/components/drawer/drawerHeader/index.d.ts.map +0 -1
- package/dist/src/components/drawer/drawerHeader/index.js +0 -58
- package/dist/src/components/fieldError/index.d.ts +0 -29
- package/dist/src/components/fieldError/index.d.ts.map +0 -1
- package/dist/src/components/fieldError/index.js +0 -33
- package/dist/src/components/fieldLabel/index.d.ts +0 -38
- package/dist/src/components/fieldLabel/index.d.ts.map +0 -1
- package/dist/src/components/fieldLabel/index.js +0 -39
- package/dist/src/components/fieldWrapper/index.d.ts +0 -41
- package/dist/src/components/fieldWrapper/index.d.ts.map +0 -1
- package/dist/src/components/fieldWrapper/index.js +0 -41
- package/dist/src/components/iconButton/index.d.ts +0 -44
- package/dist/src/components/iconButton/index.d.ts.map +0 -1
- package/dist/src/components/iconButton/index.js +0 -41
- package/dist/src/components/input/index.d.ts +0 -81
- package/dist/src/components/input/index.d.ts.map +0 -1
- package/dist/src/components/input/index.js +0 -112
- package/dist/src/components/maskedInput/index.d.ts +0 -103
- package/dist/src/components/maskedInput/index.d.ts.map +0 -1
- package/dist/src/components/maskedInput/index.js +0 -130
- package/dist/src/components/modal/modalContainer/index.d.ts +0 -78
- package/dist/src/components/modal/modalContainer/index.d.ts.map +0 -1
- package/dist/src/components/modal/modalContainer/index.js +0 -82
- package/dist/src/components/modal/modalContext.d.ts +0 -12
- package/dist/src/components/modal/modalContext.d.ts.map +0 -1
- package/dist/src/components/modal/modalContext.js +0 -10
- package/dist/src/components/modal/modalFooter/index.d.ts +0 -72
- package/dist/src/components/modal/modalFooter/index.d.ts.map +0 -1
- package/dist/src/components/modal/modalFooter/index.js +0 -72
- package/dist/src/components/modal/modalHeader/index.d.ts +0 -66
- package/dist/src/components/modal/modalHeader/index.d.ts.map +0 -1
- package/dist/src/components/modal/modalHeader/index.js +0 -69
- package/dist/src/components/multiSelect/index.d.ts +0 -125
- package/dist/src/components/multiSelect/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/index.js +0 -169
- package/dist/src/components/multiSelect/multiSelectChevron/index.d.ts +0 -11
- package/dist/src/components/multiSelect/multiSelectChevron/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectChevron/index.js +0 -13
- package/dist/src/components/multiSelect/multiSelectContainer/index.d.ts +0 -19
- package/dist/src/components/multiSelect/multiSelectContainer/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectContainer/index.js +0 -11
- package/dist/src/components/multiSelect/multiSelectContent/index.d.ts +0 -9
- package/dist/src/components/multiSelect/multiSelectContent/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectContent/index.js +0 -8
- package/dist/src/components/multiSelect/multiSelectMark/index.d.ts +0 -10
- package/dist/src/components/multiSelect/multiSelectMark/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectMark/index.js +0 -11
- package/dist/src/components/multiSelect/multiSelectOption/index.d.ts +0 -11
- package/dist/src/components/multiSelect/multiSelectOption/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectOption/index.js +0 -10
- package/dist/src/components/multiSelect/multiSelectOptionsContainer/index.d.ts +0 -12
- package/dist/src/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
- package/dist/src/components/multiSelect/multiSelectOverlay/index.d.ts +0 -8
- package/dist/src/components/multiSelect/multiSelectOverlay/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectOverlay/index.js +0 -9
- package/dist/src/components/multiSelect/multiSelectSpinner/index.d.ts +0 -8
- package/dist/src/components/multiSelect/multiSelectSpinner/index.d.ts.map +0 -1
- package/dist/src/components/multiSelect/multiSelectSpinner/index.js +0 -10
- package/dist/src/components/phoneInput/index.d.ts +0 -127
- package/dist/src/components/phoneInput/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/index.js +0 -202
- package/dist/src/components/phoneInput/phoneInputContainer/index.d.ts +0 -18
- package/dist/src/components/phoneInput/phoneInputContainer/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/phoneInputContainer/index.js +0 -11
- package/dist/src/components/phoneInput/phoneInputCountriesOverlay/index.d.ts +0 -8
- package/dist/src/components/phoneInput/phoneInputCountriesOverlay/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
- package/dist/src/components/phoneInput/phoneInputCountryOption/index.d.ts +0 -18
- package/dist/src/components/phoneInput/phoneInputCountryOption/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/phoneInputCountryOption/index.js +0 -10
- package/dist/src/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts +0 -12
- package/dist/src/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
- package/dist/src/components/phoneInput/phoneInputCountrySelector/index.d.ts +0 -17
- package/dist/src/components/phoneInput/phoneInputCountrySelector/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
- package/dist/src/components/phoneInput/phoneInputMask/index.d.ts +0 -21
- package/dist/src/components/phoneInput/phoneInputMask/index.d.ts.map +0 -1
- package/dist/src/components/phoneInput/phoneInputMask/index.js +0 -34
- package/dist/src/components/radio/radioBox/index.d.ts +0 -85
- package/dist/src/components/radio/radioBox/index.d.ts.map +0 -1
- package/dist/src/components/radio/radioBox/index.js +0 -90
- package/dist/src/components/radio/radioContext.d.ts +0 -18
- package/dist/src/components/radio/radioContext.d.ts.map +0 -1
- package/dist/src/components/radio/radioContext.js +0 -11
- package/dist/src/components/radio/radioGroup/index.d.ts +0 -92
- package/dist/src/components/radio/radioGroup/index.d.ts.map +0 -1
- package/dist/src/components/radio/radioGroup/index.js +0 -100
- package/dist/src/components/slider/index.d.ts +0 -57
- package/dist/src/components/slider/index.d.ts.map +0 -1
- package/dist/src/components/slider/index.js +0 -97
- package/dist/src/components/switch/index.d.ts +0 -94
- package/dist/src/components/switch/index.d.ts.map +0 -1
- package/dist/src/components/switch/index.js +0 -99
- package/dist/src/components/tab/tabButton/index.d.ts +0 -72
- package/dist/src/components/tab/tabButton/index.d.ts.map +0 -1
- package/dist/src/components/tab/tabButton/index.js +0 -80
- package/dist/src/components/tab/tabContainer/index.d.ts +0 -83
- package/dist/src/components/tab/tabContainer/index.d.ts.map +0 -1
- package/dist/src/components/tab/tabContainer/index.js +0 -88
- package/dist/src/components/tab/tabContext.d.ts +0 -16
- package/dist/src/components/tab/tabContext.d.ts.map +0 -1
- package/dist/src/components/tab/tabContext.js +0 -10
- package/dist/src/components/textarea/index.d.ts +0 -103
- package/dist/src/components/textarea/index.d.ts.map +0 -1
- package/dist/src/components/textarea/index.js +0 -127
- package/dist/src/components/tooltip/index.d.ts +0 -80
- package/dist/src/components/tooltip/index.d.ts.map +0 -1
- package/dist/src/components/tooltip/index.js +0 -135
- package/dist/src/hooks/useForm.d.ts +0 -52
- package/dist/src/hooks/useForm.d.ts.map +0 -1
- package/dist/src/hooks/useForm.js +0 -52
- package/dist/src/hooks/useScopedParams.d.ts +0 -89
- package/dist/src/hooks/useScopedParams.d.ts.map +0 -1
- package/dist/src/hooks/useScopedParams.js +0 -107
- package/dist/src/hooks/useScrollLock.d.ts +0 -39
- package/dist/src/hooks/useScrollLock.d.ts.map +0 -1
- package/dist/src/hooks/useScrollLock.js +0 -49
- package/dist/src/hooks/useSlider.d.ts +0 -31
- package/dist/src/hooks/useSlider.d.ts.map +0 -1
- package/dist/src/hooks/useSlider.js +0 -49
- package/dist/src/index.d.ts +0 -40
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -42
- package/dist/src/providers/formProvider.d.ts +0 -76
- package/dist/src/providers/formProvider.d.ts.map +0 -1
- package/dist/src/providers/formProvider.js +0 -69
- package/dist/src/services/iconRenderer.d.ts +0 -10
- package/dist/src/services/iconRenderer.d.ts.map +0 -1
- package/dist/src/services/iconRenderer.js +0 -13
- package/dist/src/services/maskCurrencyValues.d.ts +0 -4
- package/dist/src/services/maskCurrencyValues.d.ts.map +0 -1
- package/dist/src/services/maskCurrencyValues.js +0 -23
- package/dist/src/utils/phoneInputUtilities.d.ts +0 -1722
- package/dist/src/utils/phoneInputUtilities.d.ts.map +0 -1
- package/dist/src/utils/phoneInputUtilities.js +0 -99
- package/dist/style.css +0 -1
- package/dist/vite.config.d.ts +0 -3
- package/dist/vite.config.d.ts.map +0 -1
- package/dist/vite.config.js +0 -24
- package/dist/vitest.config.d.ts +0 -3
- package/dist/vitest.config.d.ts.map +0 -1
- package/dist/vitest.config.js +0 -4
- package/documentation/css/reset.css +0 -38
- package/documentation/css/variables.css +0 -41
- package/documentation/index.html +0 -13
- package/documentation/src/app.tsx +0 -93
- package/documentation/src/components/examples.alert.tsx +0 -49
- package/documentation/src/components/examples.audioPlayer.tsx +0 -16
- package/documentation/src/components/examples.badge.tsx +0 -38
- package/documentation/src/components/examples.button.tsx +0 -66
- package/documentation/src/components/examples.cardTab.tsx +0 -36
- package/documentation/src/components/examples.checkbox.tsx +0 -94
- package/documentation/src/components/examples.currencyInput.tsx +0 -263
- package/documentation/src/components/examples.divider.tsx +0 -12
- package/documentation/src/components/examples.drawer.tsx +0 -43
- package/documentation/src/components/examples.iconButton.tsx +0 -78
- package/documentation/src/components/examples.input.tsx +0 -256
- package/documentation/src/components/examples.maskedInput.tsx +0 -274
- package/documentation/src/components/examples.modal.tsx +0 -31
- package/documentation/src/components/examples.multiSelect.tsx +0 -320
- package/documentation/src/components/examples.phoneInput.tsx +0 -262
- package/documentation/src/components/examples.radio.tsx +0 -149
- package/documentation/src/components/examples.slider.tsx +0 -28
- package/documentation/src/components/examples.switch.tsx +0 -180
- package/documentation/src/components/examples.tab.tsx +0 -36
- package/documentation/src/components/examples.texarea.tsx +0 -188
- package/documentation/src/components/examples.tooltip.tsx +0 -45
- package/documentation/src/main.tsx +0 -12
- package/documentation/src/ui/box.tsx +0 -17
- package/documentation/src/ui/row.tsx +0 -11
- package/documentation/vite.config.ts +0 -13
- package/src/components/alert/alertContainer/index.tsx +0 -87
- package/src/components/alert/alertContainer/styles.css +0 -33
- package/src/components/alert/alertContent/index.tsx +0 -53
- package/src/components/alert/alertContent/styles.css +0 -5
- package/src/components/alert/alertDescription/index.tsx +0 -57
- package/src/components/alert/alertDescription/styles.css +0 -7
- package/src/components/alert/alertIcon/index.tsx +0 -79
- package/src/components/alert/alertIcon/styles.css +0 -23
- package/src/components/alert/alertTitle/index.tsx +0 -54
- package/src/components/alert/alertTitle/styles.css +0 -7
- package/src/components/audioPlayer/index.tsx +0 -187
- package/src/components/audioPlayer/styles.css +0 -50
- package/src/components/badge/index.tsx +0 -80
- package/src/components/badge/styles.css +0 -145
- package/src/components/button/index.tsx +0 -104
- package/src/components/button/styles.css +0 -208
- package/src/components/cardTab/cardTabButton/index.tsx +0 -114
- package/src/components/cardTab/cardTabButton/styles.css +0 -30
- package/src/components/cardTab/cardTabContainer/index.tsx +0 -121
- package/src/components/cardTab/cardTabContainer/styles.css +0 -9
- package/src/components/cardTab/cardTabContext.tsx +0 -30
- package/src/components/checkbox/index.tsx +0 -158
- package/src/components/checkbox/styles.css +0 -78
- package/src/components/currencyInput/index.tsx +0 -312
- package/src/components/currencyInput/style.css +0 -226
- package/src/components/divider/index.tsx +0 -58
- package/src/components/divider/styles.css +0 -17
- package/src/components/drawer/drawerContainer/index.tsx +0 -123
- package/src/components/drawer/drawerContainer/styles.css +0 -46
- package/src/components/drawer/drawerContext.tsx +0 -26
- package/src/components/drawer/drawerHeader/index.tsx +0 -88
- package/src/components/drawer/drawerHeader/styles.css +0 -38
- package/src/components/fieldError/index.tsx +0 -43
- package/src/components/fieldError/styles.css +0 -6
- package/src/components/fieldLabel/index.tsx +0 -52
- package/src/components/fieldLabel/styles.css +0 -15
- package/src/components/fieldWrapper/index.tsx +0 -54
- package/src/components/fieldWrapper/styles.css +0 -7
- package/src/components/iconButton/index.tsx +0 -83
- package/src/components/iconButton/styles.css +0 -166
- package/src/components/input/index.tsx +0 -233
- package/src/components/input/style.css +0 -226
- package/src/components/maskedInput/index.tsx +0 -260
- package/src/components/maskedInput/style.css +0 -226
- package/src/components/modal/modalContainer/index.tsx +0 -127
- package/src/components/modal/modalContainer/styles.css +0 -37
- package/src/components/modal/modalContext.tsx +0 -26
- package/src/components/modal/modalFooter/index.tsx +0 -80
- package/src/components/modal/modalFooter/styles.css +0 -27
- package/src/components/modal/modalHeader/index.tsx +0 -99
- package/src/components/modal/modalHeader/styles.css +0 -38
- package/src/components/multiSelect/index.tsx +0 -319
- package/src/components/multiSelect/multiSelectChevron/index.tsx +0 -26
- package/src/components/multiSelect/multiSelectChevron/styles.css +0 -7
- package/src/components/multiSelect/multiSelectContainer/index.tsx +0 -51
- package/src/components/multiSelect/multiSelectContainer/styles.css +0 -134
- package/src/components/multiSelect/multiSelectContent/index.tsx +0 -15
- package/src/components/multiSelect/multiSelectContent/styles.css +0 -24
- package/src/components/multiSelect/multiSelectMark/index.tsx +0 -32
- package/src/components/multiSelect/multiSelectMark/styles.css +0 -44
- package/src/components/multiSelect/multiSelectOption/index.tsx +0 -25
- package/src/components/multiSelect/multiSelectOption/styles.css +0 -37
- package/src/components/multiSelect/multiSelectOptionsContainer/index.tsx +0 -81
- package/src/components/multiSelect/multiSelectOptionsContainer/styles.css +0 -45
- package/src/components/multiSelect/multiSelectOverlay/index.tsx +0 -14
- package/src/components/multiSelect/multiSelectOverlay/styles.css +0 -8
- package/src/components/multiSelect/multiSelectSpinner/index.tsx +0 -22
- package/src/components/multiSelect/multiSelectSpinner/styles.css +0 -12
- package/src/components/phoneInput/index.tsx +0 -332
- package/src/components/phoneInput/phoneInputContainer/index.tsx +0 -46
- package/src/components/phoneInput/phoneInputContainer/styles.css +0 -59
- package/src/components/phoneInput/phoneInputCountriesOverlay/index.tsx +0 -16
- package/src/components/phoneInput/phoneInputCountriesOverlay/styles.css +0 -8
- package/src/components/phoneInput/phoneInputCountryOption/index.tsx +0 -35
- package/src/components/phoneInput/phoneInputCountryOption/styles.css +0 -50
- package/src/components/phoneInput/phoneInputCountryOptionsContainer/index.tsx +0 -77
- package/src/components/phoneInput/phoneInputCountryOptionsContainer/styles.css +0 -59
- package/src/components/phoneInput/phoneInputCountrySelector/index.tsx +0 -37
- package/src/components/phoneInput/phoneInputCountrySelector/styles.css +0 -26
- package/src/components/phoneInput/phoneInputMask/index.tsx +0 -105
- package/src/components/phoneInput/phoneInputMask/style.css +0 -36
- package/src/components/radio/radioBox/index.tsx +0 -124
- package/src/components/radio/radioBox/styles.css +0 -95
- package/src/components/radio/radioContext.tsx +0 -34
- package/src/components/radio/radioGroup/index.tsx +0 -150
- package/src/components/radio/radioGroup/styles.css +0 -5
- package/src/components/slider/index.tsx +0 -132
- package/src/components/slider/styles.css +0 -45
- package/src/components/switch/index.tsx +0 -156
- package/src/components/switch/styles.css +0 -90
- package/src/components/tab/tabButton/index.tsx +0 -114
- package/src/components/tab/tabButton/styles.css +0 -41
- package/src/components/tab/tabContainer/index.tsx +0 -121
- package/src/components/tab/tabContainer/styles.css +0 -11
- package/src/components/tab/tabContext.tsx +0 -28
- package/src/components/textarea/index.tsx +0 -193
- package/src/components/textarea/styles.css +0 -93
- package/src/components/tooltip/index.tsx +0 -172
- package/src/components/tooltip/styles.css +0 -112
- package/src/hooks/useForm.ts +0 -55
- package/src/hooks/useScopedParams.ts +0 -111
- package/src/hooks/useScrollLock.ts +0 -52
- package/src/hooks/useSlider.ts +0 -52
- package/src/index.ts +0 -44
- package/src/providers/formProvider.tsx +0 -88
- package/src/services/iconRenderer.tsx +0 -23
- package/src/services/maskCurrencyValues.ts +0 -54
- package/src/utils/phoneInputUtilities.ts +0 -138
- package/tsconfig.json +0 -35
- package/variables.css +0 -41
- package/vite.config.ts +0 -24
- package/vitest.config.ts +0 -5
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useId, useRef, useState } from "react";
|
|
3
|
-
import "./styles.css";
|
|
4
|
-
import { FieldWrapper } from "../fieldWrapper";
|
|
5
|
-
import { FieldLabel } from "../fieldLabel";
|
|
6
|
-
/**
|
|
7
|
-
* Switch component - used for creating toggle switches with on/off states
|
|
8
|
-
*
|
|
9
|
-
* @param props - Switch component properties
|
|
10
|
-
* @param props.name - Required field name for form handling and input identification
|
|
11
|
-
* @param props.label - Optional label text to display next to the switch
|
|
12
|
-
* @param props.size - Size variant of the switch. Default: "lg"
|
|
13
|
-
* @param props.defaultChecked - Default checked state for uncontrolled usage. Default: false
|
|
14
|
-
* @param props.checked - Controlled checked state of the switch
|
|
15
|
-
* @param props.value - Value to be used when switch is checked. Default: "checked"
|
|
16
|
-
* @param props.unCheckedValue - Value to be used when switch is unchecked. Default: ""
|
|
17
|
-
* @param props.onCheck - Callback function called when switch state changes, receives the current value
|
|
18
|
-
*
|
|
19
|
-
* **...Other valid HTML properties for button element (except children, onChange, defaultValue, onCheck, value)**
|
|
20
|
-
*
|
|
21
|
-
* @returns Switch JSX element wrapped in FieldWrapper with optional label
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* // Basic switch
|
|
26
|
-
* <Switch name="notifications" label="Enable notifications" />
|
|
27
|
-
*
|
|
28
|
-
* // Switch with custom values
|
|
29
|
-
* <Switch
|
|
30
|
-
* name="theme"
|
|
31
|
-
* label="Dark mode"
|
|
32
|
-
* value="dark"
|
|
33
|
-
* unCheckedValue="light"
|
|
34
|
-
* onCheck={(value) => console.log('Theme:', value)}
|
|
35
|
-
* />
|
|
36
|
-
*
|
|
37
|
-
* // Controlled switch with callback
|
|
38
|
-
* <Switch
|
|
39
|
-
* name="autoSave"
|
|
40
|
-
* label="Auto-save documents"
|
|
41
|
-
* checked={isAutoSaveEnabled}
|
|
42
|
-
* onCheck={(value) => setIsAutoSaveEnabled(!!value)}
|
|
43
|
-
* size="md"
|
|
44
|
-
* />
|
|
45
|
-
*
|
|
46
|
-
* // Small switch with default checked state
|
|
47
|
-
* <Switch
|
|
48
|
-
* name="marketing"
|
|
49
|
-
* label="Marketing emails"
|
|
50
|
-
* size="sm"
|
|
51
|
-
* defaultChecked={true}
|
|
52
|
-
* value="subscribed"
|
|
53
|
-
* unCheckedValue="unsubscribed"
|
|
54
|
-
* />
|
|
55
|
-
*
|
|
56
|
-
* // Switch with custom styling and disabled state
|
|
57
|
-
* <Switch
|
|
58
|
-
* name="premium"
|
|
59
|
-
* label="Premium features"
|
|
60
|
-
* className="premium-switch"
|
|
61
|
-
* disabled={!isPremiumUser}
|
|
62
|
-
* onCheck={(value) => handlePremiumToggle(value)}
|
|
63
|
-
* />
|
|
64
|
-
*
|
|
65
|
-
* // Large switch for accessibility
|
|
66
|
-
* <Switch
|
|
67
|
-
* name="accessibility"
|
|
68
|
-
* label="High contrast mode"
|
|
69
|
-
* size="lg"
|
|
70
|
-
* checked={isHighContrast}
|
|
71
|
-
* onCheck={(value) => setIsHighContrast(!!value)}
|
|
72
|
-
* value="enabled"
|
|
73
|
-
* unCheckedValue="disabled"
|
|
74
|
-
* />
|
|
75
|
-
*
|
|
76
|
-
* // Switch without label for inline usage
|
|
77
|
-
* <Switch
|
|
78
|
-
* name="inline_toggle"
|
|
79
|
-
* value="on"
|
|
80
|
-
* unCheckedValue="off"
|
|
81
|
-
* onCheck={(value) => console.log('Toggle state:', value)}
|
|
82
|
-
* />
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
function Switch(props) {
|
|
86
|
-
const { label, size = "lg", defaultChecked = false, checked: baseChecked = null, value, unCheckedValue = "", name, className: baseClassName = "", onCheck, id, ...rest } = props;
|
|
87
|
-
const inputRef = useRef(null);
|
|
88
|
-
const inputId = id || useId();
|
|
89
|
-
const [isChecked, setIsChecked] = useState(defaultChecked);
|
|
90
|
-
const currentChecked = typeof baseChecked === "boolean" ? baseChecked : isChecked;
|
|
91
|
-
function handleCheck() {
|
|
92
|
-
setIsChecked(!isChecked);
|
|
93
|
-
onCheck && onCheck(!currentChecked ? value || "checked" : unCheckedValue);
|
|
94
|
-
}
|
|
95
|
-
const checkedClass = currentChecked ? "checkedTrue" : "checkedFalse";
|
|
96
|
-
const className = `arkynSwitch ${checkedClass} ${size} ${baseClassName}`;
|
|
97
|
-
return (_jsxs(FieldWrapper, { children: [label && _jsx(FieldLabel, { children: label }), _jsx("button", { type: "button", onClick: handleCheck, className: className, ...rest, children: _jsx("input", { id: inputId, type: "hidden", name: name, ref: inputRef, onClick: handleCheck, value: currentChecked ? value || "checked" : unCheckedValue }) })] }));
|
|
98
|
-
}
|
|
99
|
-
export { Switch };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import "./styles.css";
|
|
3
|
-
type TabButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "value" | "type"> & {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
value: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* TabButton component - used as interactive buttons within a TabContainer for tab navigation
|
|
9
|
-
*
|
|
10
|
-
* @param props - TabButton component properties
|
|
11
|
-
* @param props.children - Content to display inside the tab button (required)
|
|
12
|
-
* @param props.value - Unique identifier for the tab button (required)
|
|
13
|
-
* @param props.disabled - Whether the button is disabled. Can be overridden by TabContainer's disabled state
|
|
14
|
-
*
|
|
15
|
-
* **...Other valid HTML button properties except children, value, and type**
|
|
16
|
-
*
|
|
17
|
-
* @returns TabButton JSX element
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* // Basic tab buttons within TabContainer
|
|
22
|
-
* <TabContainer>
|
|
23
|
-
* <TabButton value="home">Home</TabButton>
|
|
24
|
-
* <TabButton value="about">About</TabButton>
|
|
25
|
-
* <TabButton value="contact">Contact</TabButton>
|
|
26
|
-
* </TabContainer>
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* // Tab button with click handler
|
|
32
|
-
* <TabContainer onChange={(value) => console.log('Tab changed:', value)}>
|
|
33
|
-
* <TabButton
|
|
34
|
-
* value="profile"
|
|
35
|
-
* onClick={() => console.log('Profile tab clicked')}
|
|
36
|
-
* >
|
|
37
|
-
* Profile
|
|
38
|
-
* </TabButton>
|
|
39
|
-
* <TabButton value="settings">Settings</TabButton>
|
|
40
|
-
* </TabContainer>
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```tsx
|
|
45
|
-
* // Disabled tab button
|
|
46
|
-
* <TabContainer>
|
|
47
|
-
* <TabButton value="available">Available</TabButton>
|
|
48
|
-
* <TabButton value="coming-soon" disabled>
|
|
49
|
-
* Coming Soon
|
|
50
|
-
* </TabButton>
|
|
51
|
-
* </TabContainer>
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```tsx
|
|
56
|
-
* // Tab buttons with custom styling and default value
|
|
57
|
-
* <TabContainer defaultValue="dashboard">
|
|
58
|
-
* <TabButton
|
|
59
|
-
* value="dashboard"
|
|
60
|
-
* className="custom-tab"
|
|
61
|
-
* aria-label="Dashboard tab"
|
|
62
|
-
* >
|
|
63
|
-
* Dashboard
|
|
64
|
-
* </TabButton>
|
|
65
|
-
* <TabButton value="analytics">Analytics</TabButton>
|
|
66
|
-
* <TabButton value="reports">Reports</TabButton>
|
|
67
|
-
* </TabContainer>
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
declare function TabButton(props: TabButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
-
export { TabButton };
|
|
72
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tab/tabButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,cAAc,CAAC;AAEtB,KAAK,cAAc,GAAG,IAAI,CACxB,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,OAAO,GAAG,MAAM,CAC9B,GAAG;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH,iBAAS,SAAS,CAAC,KAAK,EAAE,cAAc,2CAkCvC;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTab } from "../tabContext";
|
|
3
|
-
import "./styles.css";
|
|
4
|
-
/**
|
|
5
|
-
* TabButton component - used as interactive buttons within a TabContainer for tab navigation
|
|
6
|
-
*
|
|
7
|
-
* @param props - TabButton component properties
|
|
8
|
-
* @param props.children - Content to display inside the tab button (required)
|
|
9
|
-
* @param props.value - Unique identifier for the tab button (required)
|
|
10
|
-
* @param props.disabled - Whether the button is disabled. Can be overridden by TabContainer's disabled state
|
|
11
|
-
*
|
|
12
|
-
* **...Other valid HTML button properties except children, value, and type**
|
|
13
|
-
*
|
|
14
|
-
* @returns TabButton JSX element
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* // Basic tab buttons within TabContainer
|
|
19
|
-
* <TabContainer>
|
|
20
|
-
* <TabButton value="home">Home</TabButton>
|
|
21
|
-
* <TabButton value="about">About</TabButton>
|
|
22
|
-
* <TabButton value="contact">Contact</TabButton>
|
|
23
|
-
* </TabContainer>
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* // Tab button with click handler
|
|
29
|
-
* <TabContainer onChange={(value) => console.log('Tab changed:', value)}>
|
|
30
|
-
* <TabButton
|
|
31
|
-
* value="profile"
|
|
32
|
-
* onClick={() => console.log('Profile tab clicked')}
|
|
33
|
-
* >
|
|
34
|
-
* Profile
|
|
35
|
-
* </TabButton>
|
|
36
|
-
* <TabButton value="settings">Settings</TabButton>
|
|
37
|
-
* </TabContainer>
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```tsx
|
|
42
|
-
* // Disabled tab button
|
|
43
|
-
* <TabContainer>
|
|
44
|
-
* <TabButton value="available">Available</TabButton>
|
|
45
|
-
* <TabButton value="coming-soon" disabled>
|
|
46
|
-
* Coming Soon
|
|
47
|
-
* </TabButton>
|
|
48
|
-
* </TabContainer>
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```tsx
|
|
53
|
-
* // Tab buttons with custom styling and default value
|
|
54
|
-
* <TabContainer defaultValue="dashboard">
|
|
55
|
-
* <TabButton
|
|
56
|
-
* value="dashboard"
|
|
57
|
-
* className="custom-tab"
|
|
58
|
-
* aria-label="Dashboard tab"
|
|
59
|
-
* >
|
|
60
|
-
* Dashboard
|
|
61
|
-
* </TabButton>
|
|
62
|
-
* <TabButton value="analytics">Analytics</TabButton>
|
|
63
|
-
* <TabButton value="reports">Reports</TabButton>
|
|
64
|
-
* </TabContainer>
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
function TabButton(props) {
|
|
68
|
-
const { children, disabled: rawDisabled = false, className: baseClassName = "", onClick, value, ...rest } = props;
|
|
69
|
-
const { disabled, currentTab, changeCurrentTab } = useTab();
|
|
70
|
-
const isDisabled = disabled || rawDisabled;
|
|
71
|
-
const disabledClass = isDisabled ? "isDisabled" : "";
|
|
72
|
-
const activeClass = currentTab === value && value ? "isActive" : "";
|
|
73
|
-
const className = `arkynTabButton ${disabledClass} ${activeClass} ${baseClassName}`;
|
|
74
|
-
function handleClick(event) {
|
|
75
|
-
changeCurrentTab(value);
|
|
76
|
-
onClick && onClick(event);
|
|
77
|
-
}
|
|
78
|
-
return (_jsx("button", { onClick: handleClick, className: className.trim(), ...rest, disabled: isDisabled, type: "button", children: children }));
|
|
79
|
-
}
|
|
80
|
-
export { TabButton };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import "./styles.css";
|
|
3
|
-
type TabContainerProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "children" | "ref"> & {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
onChange?: (index: string) => void;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* TabContainer component - used as a wrapper for TabButton components to create tabbed navigation
|
|
11
|
-
*
|
|
12
|
-
* @param props - TabContainer component properties
|
|
13
|
-
* @param props.children - TabButton components and other content (required)
|
|
14
|
-
* @param props.disabled - Whether all tab buttons are disabled. Default: false
|
|
15
|
-
* @param props.defaultValue - Initial tab value to be selected
|
|
16
|
-
* @param props.onChange - Callback function called when tab changes, receives the tab value
|
|
17
|
-
*
|
|
18
|
-
* **...Other valid HTML nav properties except onClick, children, and ref**
|
|
19
|
-
*
|
|
20
|
-
* @returns TabContainer JSX element
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* // Basic tab container
|
|
25
|
-
* <TabContainer>
|
|
26
|
-
* <TabButton value="home">Home</TabButton>
|
|
27
|
-
* <TabButton value="about">About</TabButton>
|
|
28
|
-
* <TabButton value="contact">Contact</TabButton>
|
|
29
|
-
* </TabContainer>
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```tsx
|
|
34
|
-
* // Tab container with default value and change handler
|
|
35
|
-
* <TabContainer
|
|
36
|
-
* defaultValue="dashboard"
|
|
37
|
-
* onChange={(value) => console.log('Active tab:', value)}
|
|
38
|
-
* >
|
|
39
|
-
* <TabButton value="dashboard">Dashboard</TabButton>
|
|
40
|
-
* <TabButton value="analytics">Analytics</TabButton>
|
|
41
|
-
* <TabButton value="settings">Settings</TabButton>
|
|
42
|
-
* </TabContainer>
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```tsx
|
|
47
|
-
* // Disabled all tabs
|
|
48
|
-
* <TabContainer disabled>
|
|
49
|
-
* <TabButton value="tab1">Tab 1</TabButton>
|
|
50
|
-
* <TabButton value="tab2">Tab 2</TabButton>
|
|
51
|
-
* </TabContainer>
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```tsx
|
|
56
|
-
* // Tab container with custom styling and state management
|
|
57
|
-
* function MyTabs() {
|
|
58
|
-
* const [activeTab, setActiveTab] = useState('profile');
|
|
59
|
-
*
|
|
60
|
-
* return (
|
|
61
|
-
* <div>
|
|
62
|
-
* <TabContainer
|
|
63
|
-
* defaultValue={activeTab}
|
|
64
|
-
* onChange={setActiveTab}
|
|
65
|
-
* className="custom-tabs"
|
|
66
|
-
* role="tablist"
|
|
67
|
-
* >
|
|
68
|
-
* <TabButton value="profile">Profile</TabButton>
|
|
69
|
-
* <TabButton value="account">Account</TabButton>
|
|
70
|
-
* <TabButton value="notifications">Notifications</TabButton>
|
|
71
|
-
* </TabContainer>
|
|
72
|
-
*
|
|
73
|
-
* {activeTab === 'profile' && <ProfileContent />}
|
|
74
|
-
* {activeTab === 'account' && <AccountContent />}
|
|
75
|
-
* {activeTab === 'notifications' && <NotificationsContent />}
|
|
76
|
-
* </div>
|
|
77
|
-
* );
|
|
78
|
-
* }
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
declare function TabContainer(props: TabContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
82
|
-
export { TabContainer };
|
|
83
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tab/tabContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAG5D,OAAO,cAAc,CAAC;AAEtB,KAAK,iBAAiB,GAAG,IAAI,CAC3B,cAAc,CAAC,WAAW,CAAC,EAC3B,SAAS,GAAG,UAAU,GAAG,KAAK,CAC/B,GAAG;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AAEH,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA8B7C;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { TabProvider } from "../tabContext";
|
|
4
|
-
import "./styles.css";
|
|
5
|
-
/**
|
|
6
|
-
* TabContainer component - used as a wrapper for TabButton components to create tabbed navigation
|
|
7
|
-
*
|
|
8
|
-
* @param props - TabContainer component properties
|
|
9
|
-
* @param props.children - TabButton components and other content (required)
|
|
10
|
-
* @param props.disabled - Whether all tab buttons are disabled. Default: false
|
|
11
|
-
* @param props.defaultValue - Initial tab value to be selected
|
|
12
|
-
* @param props.onChange - Callback function called when tab changes, receives the tab value
|
|
13
|
-
*
|
|
14
|
-
* **...Other valid HTML nav properties except onClick, children, and ref**
|
|
15
|
-
*
|
|
16
|
-
* @returns TabContainer JSX element
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* // Basic tab container
|
|
21
|
-
* <TabContainer>
|
|
22
|
-
* <TabButton value="home">Home</TabButton>
|
|
23
|
-
* <TabButton value="about">About</TabButton>
|
|
24
|
-
* <TabButton value="contact">Contact</TabButton>
|
|
25
|
-
* </TabContainer>
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```tsx
|
|
30
|
-
* // Tab container with default value and change handler
|
|
31
|
-
* <TabContainer
|
|
32
|
-
* defaultValue="dashboard"
|
|
33
|
-
* onChange={(value) => console.log('Active tab:', value)}
|
|
34
|
-
* >
|
|
35
|
-
* <TabButton value="dashboard">Dashboard</TabButton>
|
|
36
|
-
* <TabButton value="analytics">Analytics</TabButton>
|
|
37
|
-
* <TabButton value="settings">Settings</TabButton>
|
|
38
|
-
* </TabContainer>
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```tsx
|
|
43
|
-
* // Disabled all tabs
|
|
44
|
-
* <TabContainer disabled>
|
|
45
|
-
* <TabButton value="tab1">Tab 1</TabButton>
|
|
46
|
-
* <TabButton value="tab2">Tab 2</TabButton>
|
|
47
|
-
* </TabContainer>
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```tsx
|
|
52
|
-
* // Tab container with custom styling and state management
|
|
53
|
-
* function MyTabs() {
|
|
54
|
-
* const [activeTab, setActiveTab] = useState('profile');
|
|
55
|
-
*
|
|
56
|
-
* return (
|
|
57
|
-
* <div>
|
|
58
|
-
* <TabContainer
|
|
59
|
-
* defaultValue={activeTab}
|
|
60
|
-
* onChange={setActiveTab}
|
|
61
|
-
* className="custom-tabs"
|
|
62
|
-
* role="tablist"
|
|
63
|
-
* >
|
|
64
|
-
* <TabButton value="profile">Profile</TabButton>
|
|
65
|
-
* <TabButton value="account">Account</TabButton>
|
|
66
|
-
* <TabButton value="notifications">Notifications</TabButton>
|
|
67
|
-
* </TabContainer>
|
|
68
|
-
*
|
|
69
|
-
* {activeTab === 'profile' && <ProfileContent />}
|
|
70
|
-
* {activeTab === 'account' && <AccountContent />}
|
|
71
|
-
* {activeTab === 'notifications' && <NotificationsContent />}
|
|
72
|
-
* </div>
|
|
73
|
-
* );
|
|
74
|
-
* }
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
function TabContainer(props) {
|
|
78
|
-
const { children, onChange, defaultValue, disabled = false, className: baseClassName, ...rest } = props;
|
|
79
|
-
const [currentTab, setCurrentTab] = useState(defaultValue || "");
|
|
80
|
-
const className = `arkynTabContainer ${baseClassName || ""}`;
|
|
81
|
-
function changeCurrentTab(value) {
|
|
82
|
-
setCurrentTab(value);
|
|
83
|
-
if (onChange)
|
|
84
|
-
onChange(value);
|
|
85
|
-
}
|
|
86
|
-
return (_jsx(TabProvider, { disabled: disabled, currentTab: currentTab, changeCurrentTab: changeCurrentTab, children: _jsx("nav", { className: className.trim(), ...rest, children: children }) }));
|
|
87
|
-
}
|
|
88
|
-
export { TabContainer };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
type TabContextProps = {
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
currentTab: string;
|
|
5
|
-
changeCurrentTab: (tab: string) => void;
|
|
6
|
-
};
|
|
7
|
-
type TabProviderProps = {
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
currentTab: string;
|
|
11
|
-
changeCurrentTab: (tab: string) => void;
|
|
12
|
-
};
|
|
13
|
-
declare function useTab(): TabContextProps;
|
|
14
|
-
declare function TabProvider(props: TabProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export { TabProvider, useTab };
|
|
16
|
-
//# sourceMappingURL=tabContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabContext.d.ts","sourceRoot":"","sources":["../../../../src/components/tab/tabContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAE7D,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAIF,iBAAS,MAAM,oBAEd;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAI3C;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
3
|
-
const TabContext = createContext({});
|
|
4
|
-
function useTab() {
|
|
5
|
-
return useContext(TabContext);
|
|
6
|
-
}
|
|
7
|
-
function TabProvider(props) {
|
|
8
|
-
return (_jsx(TabContext.Provider, { value: props, children: props.children }));
|
|
9
|
-
}
|
|
10
|
-
export { TabProvider, useTab };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes } from "react";
|
|
2
|
-
import "./styles.css";
|
|
3
|
-
type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "name"> & {
|
|
4
|
-
name: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
showAsterisk?: boolean;
|
|
7
|
-
errorMessage?: string;
|
|
8
|
-
size?: "md" | "lg";
|
|
9
|
-
variant?: "solid" | "outline";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Textarea component - used for multi-line text input with customizable styling and validation
|
|
13
|
-
*
|
|
14
|
-
* @param props - Textarea component properties
|
|
15
|
-
* @param props.name - Required field name for form handling and textarea identification
|
|
16
|
-
* @param props.label - Optional label text to display above the textarea
|
|
17
|
-
* @param props.showAsterisk - Whether to show asterisk on label for required fields
|
|
18
|
-
* @param props.errorMessage - Error message to display below the textarea
|
|
19
|
-
* @param props.size - Size variant of the textarea. Default: "md"
|
|
20
|
-
* @param props.variant - Visual variant of the textarea. Default: "solid"
|
|
21
|
-
*
|
|
22
|
-
* **...Other valid HTML properties for textarea element (except name)**
|
|
23
|
-
*
|
|
24
|
-
* @returns Textarea JSX element wrapped in FieldWrapper with optional label and error message
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* // Basic textarea
|
|
29
|
-
* <Textarea name="description" placeholder="Enter description..." />
|
|
30
|
-
*
|
|
31
|
-
* // Textarea with label and validation
|
|
32
|
-
* <Textarea
|
|
33
|
-
* name="bio"
|
|
34
|
-
* label="Biography"
|
|
35
|
-
* showAsterisk
|
|
36
|
-
* placeholder="Tell us about yourself"
|
|
37
|
-
* errorMessage="Biography is required"
|
|
38
|
-
* />
|
|
39
|
-
*
|
|
40
|
-
* // Large textarea with outline variant
|
|
41
|
-
* <Textarea
|
|
42
|
-
* name="comments"
|
|
43
|
-
* label="Comments"
|
|
44
|
-
* size="lg"
|
|
45
|
-
* variant="outline"
|
|
46
|
-
* placeholder="Enter your comments here..."
|
|
47
|
-
* rows={6}
|
|
48
|
-
* />
|
|
49
|
-
*
|
|
50
|
-
* // Textarea with character limit and custom styling
|
|
51
|
-
* <Textarea
|
|
52
|
-
* name="feedback"
|
|
53
|
-
* label="Feedback"
|
|
54
|
-
* placeholder="Share your feedback (max 500 characters)"
|
|
55
|
-
* maxLength={500}
|
|
56
|
-
* rows={4}
|
|
57
|
-
* className="feedback-textarea"
|
|
58
|
-
* />
|
|
59
|
-
*
|
|
60
|
-
* // Read-only textarea for display
|
|
61
|
-
* <Textarea
|
|
62
|
-
* name="terms"
|
|
63
|
-
* label="Terms and Conditions"
|
|
64
|
-
* value={termsContent}
|
|
65
|
-
* readOnly
|
|
66
|
-
* rows={10}
|
|
67
|
-
* variant="outline"
|
|
68
|
-
* />
|
|
69
|
-
*
|
|
70
|
-
* // Disabled textarea
|
|
71
|
-
* <Textarea
|
|
72
|
-
* name="disabled_field"
|
|
73
|
-
* label="Disabled Field"
|
|
74
|
-
* value="This field is disabled"
|
|
75
|
-
* disabled
|
|
76
|
-
* placeholder="Cannot edit this field"
|
|
77
|
-
* />
|
|
78
|
-
*
|
|
79
|
-
* // Textarea with controlled value and change handler
|
|
80
|
-
* <Textarea
|
|
81
|
-
* name="message"
|
|
82
|
-
* label="Message"
|
|
83
|
-
* value={message}
|
|
84
|
-
* onChange={(e) => setMessage(e.target.value)}
|
|
85
|
-
* placeholder="Type your message..."
|
|
86
|
-
* rows={5}
|
|
87
|
-
* showAsterisk
|
|
88
|
-
* />
|
|
89
|
-
*
|
|
90
|
-
* // Textarea with resize control
|
|
91
|
-
* <Textarea
|
|
92
|
-
* name="notes"
|
|
93
|
-
* label="Notes"
|
|
94
|
-
* placeholder="Enter your notes..."
|
|
95
|
-
* style={{ resize: 'vertical' }}
|
|
96
|
-
* rows={3}
|
|
97
|
-
* cols={50}
|
|
98
|
-
* />
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
declare function Textarea(props: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
102
|
-
export { Textarea };
|
|
103
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/textarea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAIvB,MAAM,OAAO,CAAC;AAMf,OAAO,cAAc,CAAC;AAEtB,KAAK,aAAa,GAAG,IAAI,CACvB,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,MAAM,CACP,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AAEH,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAuErC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|