powell-react 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.storybook/main.ts +28 -0
- package/.storybook/preview.scss +13 -0
- package/.storybook/preview.tsx +24 -0
- package/README.md +0 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/types/src/components/Button/Button.d.ts +6 -0
- package/dist/cjs/types/src/components/Button/index.d.ts +1 -0
- package/dist/cjs/types/src/components/index.d.ts +1 -0
- package/dist/cjs/types/src/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/api/PowellProvider.d.ts +5 -0
- package/dist/cjs/types/src/powell/api/configService.d.ts +2 -0
- package/dist/cjs/types/src/powell/api/forms.d.ts +73 -0
- package/dist/cjs/types/src/powell/api/index.d.ts +5 -0
- package/dist/cjs/types/src/powell/api/powellDefaults.d.ts +2 -0
- package/dist/cjs/types/src/powell/api/primereact.d.ts +968 -0
- package/dist/cjs/types/src/powell/components/AutoComplete/AutoComplete.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/AutoComplete/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Button/Button.d.ts +22 -0
- package/dist/cjs/types/src/powell/components/Button/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/CascadeSelect/CascadeSelect.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/CascadeSelect/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/Checkbox/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Chips/Chips.d.ts +23 -0
- package/dist/cjs/types/src/powell/components/Chips/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/ColorPicker/ColorPicker.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/ColorPicker/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Dropdown/Dropdown.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/Dropdown/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Editor/Editor.d.ts +23 -0
- package/dist/cjs/types/src/powell/components/Editor/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/FormContainer/FormContainer.d.ts +7 -0
- package/dist/cjs/types/src/powell/components/FormContainer/FormContext.d.ts +4 -0
- package/dist/cjs/types/src/powell/components/FormContainer/index.d.ts +2 -0
- package/dist/cjs/types/src/powell/components/InputMask/InputMask.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/InputMask/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/InputNumber/InputNumber.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/InputNumber/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/InputOtp/InputOtp.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/InputOtp/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/InputPassword/InputPassword.d.ts +23 -0
- package/dist/cjs/types/src/powell/components/InputPassword/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/InputSwitch/InputSwitch.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/InputSwitch/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/InputText/InputText.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/InputText/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/InputTextarea/InputTextarea.d.ts +23 -0
- package/dist/cjs/types/src/powell/components/InputTextarea/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Knob/Knob.d.ts +20 -0
- package/dist/cjs/types/src/powell/components/Knob/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/ListBox/ListBox.d.ts +20 -0
- package/dist/cjs/types/src/powell/components/ListBox/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Mention/Mention.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/Mention/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/MultiSelect/MultiSelect.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/MultiSelect/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +20 -0
- package/dist/cjs/types/src/powell/components/MultiStateCheckbox/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/RadioGroup/RadioGroup.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/RadioGroup/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Rating/Rating.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/Rating/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/SelectButton/SelectButton.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/SelectButton/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/Slider/Slider.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/Slider/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/ToggleButton/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/TreeSelect/TreeSelect.d.ts +24 -0
- package/dist/cjs/types/src/powell/components/TreeSelect/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
- package/dist/cjs/types/src/powell/components/TriStateCheckbox/index.d.ts +1 -0
- package/dist/cjs/types/src/powell/hooks/index.d.ts +3 -0
- package/dist/cjs/types/src/powell/hooks/useApplyConfig.d.ts +17 -0
- package/dist/cjs/types/src/powell/hooks/useFormContext.d.ts +2 -0
- package/dist/cjs/types/src/powell/hooks/usePowellConfig.d.ts +2 -0
- package/dist/cjs/types/src/powell/index.d.ts +29 -0
- package/dist/cjs/types/src/powell/models/common.d.ts +7 -0
- package/dist/cjs/types/src/powell/models/config.d.ts +13 -0
- package/dist/cjs/types/src/powell/models/forms.d.ts +28 -0
- package/dist/cjs/types/src/powell/models/index.d.ts +3 -0
- package/dist/cjs/types/src/powell/utils/globalState.d.ts +19 -0
- package/dist/cjs/types/src/powell/utils/index.d.ts +2 -0
- package/dist/cjs/types/src/powell/utils/utilsService.d.ts +8 -0
- package/dist/cjs/types/vite.config.d.ts +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types/src/components/Button/Button.d.ts +6 -0
- package/dist/esm/types/src/components/Button/index.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +1 -0
- package/dist/esm/types/src/index.d.ts +1 -0
- package/dist/esm/types/src/powell/api/PowellProvider.d.ts +5 -0
- package/dist/esm/types/src/powell/api/configService.d.ts +2 -0
- package/dist/esm/types/src/powell/api/forms.d.ts +73 -0
- package/dist/esm/types/src/powell/api/index.d.ts +5 -0
- package/dist/esm/types/src/powell/api/powellDefaults.d.ts +2 -0
- package/dist/esm/types/src/powell/api/primereact.d.ts +968 -0
- package/dist/esm/types/src/powell/components/AutoComplete/AutoComplete.d.ts +24 -0
- package/dist/esm/types/src/powell/components/AutoComplete/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Button/Button.d.ts +22 -0
- package/dist/esm/types/src/powell/components/Button/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/CascadeSelect/CascadeSelect.d.ts +24 -0
- package/dist/esm/types/src/powell/components/CascadeSelect/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/esm/types/src/powell/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Chips/Chips.d.ts +23 -0
- package/dist/esm/types/src/powell/components/Chips/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/ColorPicker/ColorPicker.d.ts +24 -0
- package/dist/esm/types/src/powell/components/ColorPicker/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Dropdown/Dropdown.d.ts +24 -0
- package/dist/esm/types/src/powell/components/Dropdown/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Editor/Editor.d.ts +23 -0
- package/dist/esm/types/src/powell/components/Editor/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/FormContainer/FormContainer.d.ts +7 -0
- package/dist/esm/types/src/powell/components/FormContainer/FormContext.d.ts +4 -0
- package/dist/esm/types/src/powell/components/FormContainer/index.d.ts +2 -0
- package/dist/esm/types/src/powell/components/InputMask/InputMask.d.ts +24 -0
- package/dist/esm/types/src/powell/components/InputMask/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/InputNumber/InputNumber.d.ts +24 -0
- package/dist/esm/types/src/powell/components/InputNumber/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/InputOtp/InputOtp.d.ts +21 -0
- package/dist/esm/types/src/powell/components/InputOtp/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/InputPassword/InputPassword.d.ts +23 -0
- package/dist/esm/types/src/powell/components/InputPassword/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/InputSwitch/InputSwitch.d.ts +21 -0
- package/dist/esm/types/src/powell/components/InputSwitch/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/InputText/InputText.d.ts +24 -0
- package/dist/esm/types/src/powell/components/InputText/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/InputTextarea/InputTextarea.d.ts +23 -0
- package/dist/esm/types/src/powell/components/InputTextarea/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Knob/Knob.d.ts +20 -0
- package/dist/esm/types/src/powell/components/Knob/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/ListBox/ListBox.d.ts +20 -0
- package/dist/esm/types/src/powell/components/ListBox/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Mention/Mention.d.ts +24 -0
- package/dist/esm/types/src/powell/components/Mention/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/MultiSelect/MultiSelect.d.ts +24 -0
- package/dist/esm/types/src/powell/components/MultiSelect/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +20 -0
- package/dist/esm/types/src/powell/components/MultiStateCheckbox/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/RadioGroup/RadioGroup.d.ts +24 -0
- package/dist/esm/types/src/powell/components/RadioGroup/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Rating/Rating.d.ts +21 -0
- package/dist/esm/types/src/powell/components/Rating/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/SelectButton/SelectButton.d.ts +21 -0
- package/dist/esm/types/src/powell/components/SelectButton/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/Slider/Slider.d.ts +21 -0
- package/dist/esm/types/src/powell/components/Slider/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/esm/types/src/powell/components/ToggleButton/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/TreeSelect/TreeSelect.d.ts +24 -0
- package/dist/esm/types/src/powell/components/TreeSelect/index.d.ts +1 -0
- package/dist/esm/types/src/powell/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
- package/dist/esm/types/src/powell/components/TriStateCheckbox/index.d.ts +1 -0
- package/dist/esm/types/src/powell/hooks/index.d.ts +3 -0
- package/dist/esm/types/src/powell/hooks/useApplyConfig.d.ts +17 -0
- package/dist/esm/types/src/powell/hooks/useFormContext.d.ts +2 -0
- package/dist/esm/types/src/powell/hooks/usePowellConfig.d.ts +2 -0
- package/dist/esm/types/src/powell/index.d.ts +29 -0
- package/dist/esm/types/src/powell/models/common.d.ts +7 -0
- package/dist/esm/types/src/powell/models/config.d.ts +13 -0
- package/dist/esm/types/src/powell/models/forms.d.ts +28 -0
- package/dist/esm/types/src/powell/models/index.d.ts +3 -0
- package/dist/esm/types/src/powell/utils/globalState.d.ts +19 -0
- package/dist/esm/types/src/powell/utils/index.d.ts +2 -0
- package/dist/esm/types/src/powell/utils/utilsService.d.ts +8 -0
- package/dist/esm/types/vite.config.d.ts +2 -0
- package/package.json +70 -0
- package/rollup.config.mjs +95 -0
- package/src/components/Button/Button.scss +43 -0
- package/src/components/Button/Button.stories.tsx +13 -0
- package/src/components/Button/Button.tsx +19 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/powell/api/PowellProvider.tsx +37 -0
- package/src/powell/api/configService.ts +4 -0
- package/src/powell/api/forms.ts +145 -0
- package/src/powell/api/index.ts +5 -0
- package/src/powell/api/powellDefaults.ts +11 -0
- package/src/powell/api/primereact.ts +1945 -0
- package/src/powell/components/AutoComplete/AutoComplete.scss +126 -0
- package/src/powell/components/AutoComplete/AutoComplete.tsx +190 -0
- package/src/powell/components/AutoComplete/index.ts +1 -0
- package/src/powell/components/Button/Button.tsx +90 -0
- package/src/powell/components/Button/index.ts +1 -0
- package/src/powell/components/CascadeSelect/CascadeSelect.scss +126 -0
- package/src/powell/components/CascadeSelect/CascadeSelect.tsx +190 -0
- package/src/powell/components/CascadeSelect/index.ts +1 -0
- package/src/powell/components/Checkbox/Checkbox.scss +32 -0
- package/src/powell/components/Checkbox/Checkbox.tsx +147 -0
- package/src/powell/components/Checkbox/index.ts +1 -0
- package/src/powell/components/Chips/Chips.scss +126 -0
- package/src/powell/components/Chips/Chips.tsx +190 -0
- package/src/powell/components/Chips/index.ts +1 -0
- package/src/powell/components/ColorPicker/ColorPicker.scss +126 -0
- package/src/powell/components/ColorPicker/ColorPicker.tsx +186 -0
- package/src/powell/components/ColorPicker/index.ts +1 -0
- package/src/powell/components/Dropdown/Dropdown.scss +126 -0
- package/src/powell/components/Dropdown/Dropdown.tsx +190 -0
- package/src/powell/components/Dropdown/index.ts +1 -0
- package/src/powell/components/Editor/Editor.scss +126 -0
- package/src/powell/components/Editor/Editor.tsx +183 -0
- package/src/powell/components/Editor/index.ts +1 -0
- package/src/powell/components/FormContainer/FormContainer.tsx +49 -0
- package/src/powell/components/FormContainer/FormContext.tsx +18 -0
- package/src/powell/components/FormContainer/index.ts +2 -0
- package/src/powell/components/InputMask/InputMask.scss +126 -0
- package/src/powell/components/InputMask/InputMask.tsx +190 -0
- package/src/powell/components/InputMask/index.ts +1 -0
- package/src/powell/components/InputNumber/InputNumber.scss +126 -0
- package/src/powell/components/InputNumber/InputNumber.tsx +190 -0
- package/src/powell/components/InputNumber/index.ts +1 -0
- package/src/powell/components/InputOtp/InputOtp.scss +126 -0
- package/src/powell/components/InputOtp/InputOtp.tsx +154 -0
- package/src/powell/components/InputOtp/index.ts +1 -0
- package/src/powell/components/InputPassword/InputPassword.scss +126 -0
- package/src/powell/components/InputPassword/InputPassword.tsx +189 -0
- package/src/powell/components/InputPassword/index.ts +1 -0
- package/src/powell/components/InputSwitch/InputSwitch.scss +32 -0
- package/src/powell/components/InputSwitch/InputSwitch.tsx +144 -0
- package/src/powell/components/InputSwitch/index.ts +1 -0
- package/src/powell/components/InputText/InputText.scss +126 -0
- package/src/powell/components/InputText/InputText.tsx +190 -0
- package/src/powell/components/InputText/index.ts +1 -0
- package/src/powell/components/InputTextarea/InputTextarea.scss +126 -0
- package/src/powell/components/InputTextarea/InputTextarea.tsx +187 -0
- package/src/powell/components/InputTextarea/index.ts +1 -0
- package/src/powell/components/Knob/Knob.scss +32 -0
- package/src/powell/components/Knob/Knob.tsx +134 -0
- package/src/powell/components/Knob/index.ts +1 -0
- package/src/powell/components/ListBox/ListBox.scss +32 -0
- package/src/powell/components/ListBox/ListBox.tsx +135 -0
- package/src/powell/components/ListBox/index.ts +1 -0
- package/src/powell/components/Mention/Mention.scss +126 -0
- package/src/powell/components/Mention/Mention.tsx +186 -0
- package/src/powell/components/Mention/index.ts +1 -0
- package/src/powell/components/MultiSelect/MultiSelect.scss +126 -0
- package/src/powell/components/MultiSelect/MultiSelect.tsx +190 -0
- package/src/powell/components/MultiSelect/index.ts +1 -0
- package/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.scss +32 -0
- package/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.tsx +143 -0
- package/src/powell/components/MultiStateCheckbox/index.ts +1 -0
- package/src/powell/components/RadioGroup/RadioGroup.scss +32 -0
- package/src/powell/components/RadioGroup/RadioGroup.tsx +167 -0
- package/src/powell/components/RadioGroup/index.ts +1 -0
- package/src/powell/components/Rating/Rating.scss +32 -0
- package/src/powell/components/Rating/Rating.tsx +135 -0
- package/src/powell/components/Rating/index.ts +1 -0
- package/src/powell/components/SelectButton/SelectButton.scss +32 -0
- package/src/powell/components/SelectButton/SelectButton.tsx +144 -0
- package/src/powell/components/SelectButton/index.ts +1 -0
- package/src/powell/components/Slider/Slider.scss +32 -0
- package/src/powell/components/Slider/Slider.tsx +135 -0
- package/src/powell/components/Slider/index.ts +1 -0
- package/src/powell/components/ToggleButton/ToggleButton.scss +32 -0
- package/src/powell/components/ToggleButton/ToggleButton.tsx +144 -0
- package/src/powell/components/ToggleButton/index.ts +1 -0
- package/src/powell/components/TreeSelect/TreeSelect.scss +126 -0
- package/src/powell/components/TreeSelect/TreeSelect.tsx +190 -0
- package/src/powell/components/TreeSelect/index.ts +1 -0
- package/src/powell/components/TriStateCheckbox/TriStateCheckbox.scss +32 -0
- package/src/powell/components/TriStateCheckbox/TriStateCheckbox.tsx +144 -0
- package/src/powell/components/TriStateCheckbox/index.ts +1 -0
- package/src/powell/hooks/index.ts +3 -0
- package/src/powell/hooks/useApplyConfig.ts +36 -0
- package/src/powell/hooks/useFormContext.ts +14 -0
- package/src/powell/hooks/usePowellConfig.ts +64 -0
- package/src/powell/index.ts +29 -0
- package/src/powell/models/common.ts +7 -0
- package/src/powell/models/config.ts +85 -0
- package/src/powell/models/forms.ts +33 -0
- package/src/powell/models/index.ts +3 -0
- package/src/powell/styles/common.scss +9 -0
- package/src/powell/styles/mixins.scss +0 -0
- package/src/powell/themes/arya-blue.css +1 -0
- package/src/powell/themes/arya-green.css +1 -0
- package/src/powell/themes/arya-orange.css +1 -0
- package/src/powell/themes/arya-purple.css +1 -0
- package/src/powell/themes/bootstrap4-dark-blue.css +1 -0
- package/src/powell/themes/bootstrap4-dark-purple.css +1 -0
- package/src/powell/themes/bootstrap4-light-blue.css +1 -0
- package/src/powell/themes/bootstrap4-light-purple.css +1 -0
- package/src/powell/themes/fluent-light.css +1 -0
- package/src/powell/themes/lara-dark-amber.css +1 -0
- package/src/powell/themes/lara-dark-blue.css +1 -0
- package/src/powell/themes/lara-dark-cyan.css +1 -0
- package/src/powell/themes/lara-dark-green.css +1 -0
- package/src/powell/themes/lara-dark-indigo.css +1 -0
- package/src/powell/themes/lara-dark-pink.css +1 -0
- package/src/powell/themes/lara-dark-purple.css +1 -0
- package/src/powell/themes/lara-dark-teal.css +1 -0
- package/src/powell/themes/lara-light-amber.css +1 -0
- package/src/powell/themes/lara-light-blue.css +1 -0
- package/src/powell/themes/lara-light-cyan.css +1 -0
- package/src/powell/themes/lara-light-green.css +1 -0
- package/src/powell/themes/lara-light-indigo.css +1 -0
- package/src/powell/themes/lara-light-pink.css +1 -0
- package/src/powell/themes/lara-light-purple.css +1 -0
- package/src/powell/themes/lara-light-teal.css +1 -0
- package/src/powell/themes/luna-amber.css +1 -0
- package/src/powell/themes/luna-blue.css +1 -0
- package/src/powell/themes/luna-green.css +1 -0
- package/src/powell/themes/luna-pink.css +1 -0
- package/src/powell/themes/md-dark-deeppurple.css +1 -0
- package/src/powell/themes/md-dark-indigo.css +1 -0
- package/src/powell/themes/md-light-deeppurple.css +1 -0
- package/src/powell/themes/md-light-indigo.css +1 -0
- package/src/powell/themes/mdc-dark-deeppurple.css +1 -0
- package/src/powell/themes/mdc-dark-indigo.css +1 -0
- package/src/powell/themes/mdc-light-deeppurple.css +1 -0
- package/src/powell/themes/mdc-light-indigo.css +1 -0
- package/src/powell/themes/mira.css +1 -0
- package/src/powell/themes/nano.css +1 -0
- package/src/powell/themes/nova-accent.css +1 -0
- package/src/powell/themes/nova-alt.css +1 -0
- package/src/powell/themes/nova.css +1 -0
- package/src/powell/themes/rhea.css +1 -0
- package/src/powell/themes/saga-blue.css +1 -0
- package/src/powell/themes/saga-green.css +1 -0
- package/src/powell/themes/saga-orange.css +1 -0
- package/src/powell/themes/saga-purple.css +1 -0
- package/src/powell/themes/soho-dark.css +1 -0
- package/src/powell/themes/soho-light.css +1 -0
- package/src/powell/themes/tailwind-light.css +1 -0
- package/src/powell/themes/vela-blue.css +1 -0
- package/src/powell/themes/vela-green.css +1 -0
- package/src/powell/themes/vela-orange.css +1 -0
- package/src/powell/themes/vela-purple.css +1 -0
- package/src/powell/themes/viva-dark.css +1 -0
- package/src/powell/themes/viva-light.css +1 -0
- package/src/powell/utils/globalState.ts +96 -0
- package/src/powell/utils/index.ts +2 -0
- package/src/powell/utils/utilsService.tsx +55 -0
- package/src/stories/Button.stories.tsx +16 -0
- package/tsconfig.json +55 -0
- package/vite.config.ts +14 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
import { mergeConfig } from 'vite';
|
2
|
+
import svgr from 'vite-plugin-svgr';
|
3
|
+
import type { StorybookConfig } from '@storybook/react-vite';
|
4
|
+
|
5
|
+
const config: StorybookConfig = {
|
6
|
+
'stories': ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
7
|
+
|
8
|
+
'addons': [
|
9
|
+
'@storybook/addon-links',
|
10
|
+
'@storybook/addon-essentials',
|
11
|
+
'@chromatic-com/storybook',
|
12
|
+
'@storybook/addon-interactions'
|
13
|
+
],
|
14
|
+
|
15
|
+
'framework': {
|
16
|
+
'name': '@storybook/react-vite',
|
17
|
+
'options': {},
|
18
|
+
},
|
19
|
+
'docs': {},
|
20
|
+
'typescript': {
|
21
|
+
'reactDocgen': 'react-docgen-typescript'
|
22
|
+
},
|
23
|
+
'core': {
|
24
|
+
'disableTelemetry': true
|
25
|
+
},
|
26
|
+
};
|
27
|
+
|
28
|
+
export default config;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { Preview } from "@storybook/react";
|
2
|
+
import { PowellProvider } from "@powell/api";
|
3
|
+
|
4
|
+
const preview: Preview = {
|
5
|
+
decorators: [
|
6
|
+
(Story) => (
|
7
|
+
<PowellProvider>
|
8
|
+
<Story />
|
9
|
+
</PowellProvider>
|
10
|
+
),
|
11
|
+
],
|
12
|
+
parameters: {
|
13
|
+
controls: {
|
14
|
+
matchers: {
|
15
|
+
color: /(background|color)$/i,
|
16
|
+
date: /Date$/i,
|
17
|
+
},
|
18
|
+
},
|
19
|
+
},
|
20
|
+
|
21
|
+
tags: ["autodocs", "autodocs"]
|
22
|
+
};
|
23
|
+
|
24
|
+
export default preview;
|
package/README.md
ADDED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var t=require("react");"function"==typeof SuppressedError&&SuppressedError;!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}('.button{background-color:#4caf50;border:none;box-shadow:0 8px 16px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);color:#fff;cursor:pointer;font-size:28px;overflow:hidden;padding:20px;position:relative;text-align:center;text-decoration:none;-webkit-transition-duration:.4s;transition-duration:.4s;width:200px}.button:after{background:#f1f1f1;content:"";display:block;margin-left:-20px!important;margin-top:-120%;opacity:0;padding-left:350%;padding-top:300%;position:absolute;transition:all .8s}.button:active:after{margin:0;opacity:1;padding:0;transition:0s}.button--dsiabled{background-color:grey;opacity:.5}');exports.Button=e=>{var{onClick:n,disabled:o,className:r,children:i}=e,a=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}(e,["onClick","disabled","className","children"]);return t.createElement("button",Object.assign({type:"button",className:`button ${r} ${o&&"button--dsiabled"}`,onClick:n,disabled:o},a),i)};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Button';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Button';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './components';
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { ArrayHelpers, ComponentDecorator, CompositeComponent, connect, ErrorMessage, ErrorMessageProps, FastField, FastFieldAttributes, FastFieldConfig, FastFieldProps, Field, FieldArray, FieldArrayConfig, FieldArrayRenderProps, FieldAttributes, FieldConfig, FieldHelperProps, FieldHookConfig, FieldInputProps, FieldMetaProps, FieldProps, FieldValidator, Form, Formik, FormikBag, FormikComputedProps, FormikConfig, FormikConsumer, FormikContext, FormikContextType, FormikErrors, FormikFormProps, FormikHandlers, FormikHelpers, FormikProps, FormikProvider, FormikRegistration, FormikSharedConfig, FormikState, FormikTouched, FormikValues, GenericFieldHTMLAttributes, getActiveElement, getIn, InferableComponentDecorator, InjectedFormikProps, insert, isEmptyArray, isEmptyChildren, isFunction, isInputEvent, isInteger, isNaN, isObject, isPromise, isString, move, prepareDataForValidation, replace, setIn, setNestedObjectValues, SharedRenderProps, swap, useField, useFormik, useFormikContext, validateYupSchema, withFormik, WithFormikConfig, yupToFormErrors } from 'formik';
|
2
|
+
import * as Yup from 'yup';
|
3
|
+
export { ErrorMessage as $ErrorMessage };
|
4
|
+
export type { ErrorMessageProps as $ErrorMessageProps };
|
5
|
+
export type { FieldProps as $FieldProps };
|
6
|
+
export { Field as $Field };
|
7
|
+
export { FieldArray as $FieldArray };
|
8
|
+
export { Form as $Form };
|
9
|
+
export type { ArrayHelpers as $ArrayHelpers };
|
10
|
+
export type { FieldArrayConfig as $FieldArrayConfig };
|
11
|
+
export type { FastFieldConfig as $FastFieldConfig };
|
12
|
+
export type { FastFieldProps as $FastFieldProps };
|
13
|
+
export { FastField as $FastField };
|
14
|
+
export type { FastFieldAttributes as $FastFieldAttributes };
|
15
|
+
export type { FieldConfig as $FieldConfig };
|
16
|
+
export type { FieldAttributes as $FieldAttributes };
|
17
|
+
export type { FieldHookConfig as $FieldHookConfig };
|
18
|
+
export type { FieldInputProps as $FieldInputProps };
|
19
|
+
export type { FieldMetaProps as $FieldMetaProps };
|
20
|
+
export type { FieldHelperProps as $FieldHelperProps };
|
21
|
+
export type { FieldValidator as $FieldValidator };
|
22
|
+
export type { FieldArrayRenderProps as $FieldArrayRenderProps };
|
23
|
+
export { useField as $useField };
|
24
|
+
export type { FormikProps as $FormikProps };
|
25
|
+
export type { FormikComputedProps as $FormikComputedProps };
|
26
|
+
export type { FormikFormProps as $FormikFormProps };
|
27
|
+
export { Formik as $Formik };
|
28
|
+
export type { FormikConfig as $FormikConfig };
|
29
|
+
export type { FormikSharedConfig as $FormikSharedConfig };
|
30
|
+
export type { FormikBag as $FormikBag };
|
31
|
+
export { FormikConsumer as $FormikConsumer };
|
32
|
+
export type { FormikErrors as $FormikErrors };
|
33
|
+
export { FormikContext as $FormikContext };
|
34
|
+
export type { FormikContextType as $FormikContextType };
|
35
|
+
export type { FormikHandlers as $FormikHandlers };
|
36
|
+
export type { FormikHelpers as $FormikHelpers };
|
37
|
+
export { FormikProvider as $FormikProvider };
|
38
|
+
export type { FormikRegistration as $FormikRegistration };
|
39
|
+
export type { FormikState as $FormikState };
|
40
|
+
export type { FormikTouched as $FormikTouched };
|
41
|
+
export type { FormikValues as $FormikValues };
|
42
|
+
export { useFormikContext as $useFormikContext };
|
43
|
+
export type { WithFormikConfig as $WithFormikConfig };
|
44
|
+
export type { GenericFieldHTMLAttributes as $GenericFieldHTMLAttributes };
|
45
|
+
export type { SharedRenderProps as $SharedRenderProps };
|
46
|
+
export { connect as $connect };
|
47
|
+
export { getIn as $getIn };
|
48
|
+
export { isEmptyArray as $isEmptyArray };
|
49
|
+
export { useFormik as $useFormik };
|
50
|
+
export { withFormik as $withFormik };
|
51
|
+
export type { ComponentDecorator as $ComponentDecorator };
|
52
|
+
export type { InferableComponentDecorator as $InferableComponentDecorator };
|
53
|
+
export { insert as $insert };
|
54
|
+
export type { CompositeComponent as $CompositeComponent };
|
55
|
+
export { isEmptyChildren as $isEmptyChildren };
|
56
|
+
export { isInputEvent as $isInputEvent };
|
57
|
+
export { isNaN as $isNaN };
|
58
|
+
export type { InjectedFormikProps as $InjectedFormikProps };
|
59
|
+
export { isFunction as $isFunction };
|
60
|
+
export { move as $move };
|
61
|
+
export { isInteger as $isInteger };
|
62
|
+
export { isObject as $isObject };
|
63
|
+
export { isPromise as $isPromise };
|
64
|
+
export { isString as $isString };
|
65
|
+
export { swap as $swap };
|
66
|
+
export { replace as $replace };
|
67
|
+
export { setIn as $setIn };
|
68
|
+
export { prepareDataForValidation as $prepareDataForValidation };
|
69
|
+
export { setNestedObjectValues as $setNestedObjectValues };
|
70
|
+
export { validateYupSchema as $validateYupSchema };
|
71
|
+
export { yupToFormErrors as $yupToFormErrors };
|
72
|
+
export { getActiveElement as $getActiveElement };
|
73
|
+
export { Yup as $Yup };
|