1.0.8 โ€ข Published 7 months ago

@isettingkit/business-rules v1.0.8

Weekly downloads
-
License
-
Repository
github
Last release
7 months ago

isettingkit

isettingkit is a modular UI toolkit designed to streamline the creation and management of business rule-driven interfaces. It offers a suite of reusable components, utilities, and type definitions to facilitate the development of dynamic, rule-based forms and configurations.

๐Ÿ“ Project Structure

The src directory is organized into the following primary modules:

1. businessRules

Contains components and utilities for managing business rules:

Cards/: Components like BusinessRuleCard for visual representation of individual rules.

Form/: Components such as RulesForm to create and edit business rules.

Modal/: Modal components for rule creation and editing workflows.

BusinessRuleView.tsx: A comprehensive view component to display business rules.

2. Filter

Provides components to filter and search through business rules:

FilterModal/: Modal components for applying filters.

FilterTag/: Tag components representing active filters.

FormFilter/: Form components to define filter criteria.

3. types

Defines TypeScript interfaces and types to ensure type safety across components:

businessRules/: Types related to business rule components.

Filter/: Types associated with filtering functionalities.

๐Ÿš€ Getting Started

Installation Install the package using npm:

npm install @isettingkit/business-rules

Usage Import and use the components in your project:

import { BusinessRuleCard, RulesForm } from '@isettingkit/business-rules';
function App() {
return (
<div>
<BusinessRuleCard rule={ruleData} />
<RulesForm onSubmit={handleSubmit} />
</div>
);
}

Theming

isettingkit utilizes styled-components for styling. Ensure your application is wrapped with a ThemeProvider and the appropriate theme is provided.

๐Ÿ“š Documentation

Each component is fully typed with TypeScript. Refer to the types directory for detailed type definitions:

IBusinessRuleCard: Props for BusinessRuleCard component.

IRulesForm: Props for RulesForm component.

IFilterTag: Props for FilterTag component.

๐Ÿ›  Development

To contribute or run the library locally:

Clone the repository:

git clone https://github.com/selsa-inube/isettingkit.git

Navigate to the project directory:

cd isettingkit

Install dependencies:

npm install

Run the development server:

npm run storybook

๐Ÿงช Testing

The project uses Storybook for component development and visualization. Run Storybook to view and test components in isolation.

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

8 months ago

0.1.40

8 months ago

0.1.38

10 months ago

0.1.39

10 months ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.32

1 year ago

0.1.33

1 year ago

0.1.34

11 months ago

0.1.35

11 months ago

0.1.36

11 months ago

0.1.37

10 months ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.2.2

8 months ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago