=== Kashi ===
Contributors: sepantapouya
Tags: persian, rtl, jalali, elementor, woocommerce
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Stable tag: 2.26.0
License: MIT
License URI: https://opensource.org/licenses/MIT

Persian (Farsi) RTL design system: date pickers, national ID, mobile, card and IBAN fields and 100+ components as blocks, shortcodes and Elementor widgets.

== Description ==

Kashi (کاشی) is a Persian, right-to-left design system. This plugin brings every Kashi web component to WordPress without writing code:

* **Every component, three ways.** Each of the 120+ Kashi components (Jalali date picker, national ID, mobile, card number with bank logo, IBAN/Sheba, postal code, province and city pickers, tabs, dialogs, charts, data tables, OTP, countdown…) is a **block** in the editor with its options in the sidebar and a live preview, a **shortcode** such as `[kashi-date-picker label="تاریخ تحویل" holidays]`, and an **Elementor widget** in a “Kashi” category.
* **Always complete.** The plugin is generated from the list of Kashi components, so every new Kashi release brings its new components to WordPress automatically.
* **Forms with server-side checks.** Persian fields for **Contact Form 7** (`[kashi_national_id* nid "کد ملی"]`, `[kashi_mobile*]`, `[kashi_card]`, `[kashi_iban]`, `[kashi_postal_code]`, `[kashi_date]`, `[kashi_province]`, `[kashi_city]`…) and **Elementor Pro forms**. Values are checked on the server with the same rules as in the browser (check digits, Luhn, IBAN, Jalali dates).
* **WooCommerce.** Optional national ID at checkout, Kashi mobile and postal code fields checked on the server, a searchable city list for the chosen province, and Persian (Jalali) dates on the orders screen. Each one is a switch in Settings → Kashi.
* **Light, dark and your brand.** Pick light, dark or the visitor's device setting, your brand color (or Elementor's primary global color), and the Kashi font, Vazirmatn or your theme's font.
* **Light on pages.** CSS and JavaScript load only on pages that show a Kashi component, and the code of each component downloads only when it is on the page. Everything ships inside the plugin; nothing is loaded from another site.

Documentation: https://kashi.sepantapouya.com/docs/wordpress/

== Installation ==

1. In WordPress, go to Plugins → Add New, search for “Kashi”, install and activate. Or upload `kashi.zip` from Plugins → Add New → Upload Plugin.
2. Settings → Kashi: choose the theme, brand color and font, and turn on the WooCommerce fields you want.
3. Add a component: in the block editor open the inserter and look for the “Kashi” category; in Elementor search the panel for “Kashi”; anywhere else paste a shortcode. Settings → Kashi lists every component with its shortcode.

== Frequently Asked Questions ==

= Does it work with my theme? =

Kashi components keep their styles to themselves and never restyle your theme, so they work with block themes, classic themes and Hello Elementor alike. RTL is built in.

= How do I pass a list (table rows, chart data, select options)? =

In the block sidebar or the Elementor panel, open “Content and data” and write a JSON object under “JavaScript properties”, for example `{"options":[{"value":"1","label":"یک"}]}`. Shortcodes cannot contain square brackets, so use a block or a widget for lists.

= Which checkout does WooCommerce use? =

The classic checkout (`[woocommerce_checkout]`) gets Kashi fields. The Checkout block gets the national ID as an extra field and the same server-side checks of mobile and postal code.

= Is any data sent elsewhere? =

No. The plugin makes no external requests and stores only its settings and, if you turn it on, the national ID of an order.

== Screenshots ==

1. Kashi blocks in the editor with their options in the sidebar.
2. Kashi widgets in Elementor.
3. A Contact Form 7 form with Kashi fields and server-side errors.
4. Settings → Kashi.

== Changelog ==

= 2.26.0 =
* First release: every Kashi component as a block, shortcode and Elementor widget; Contact Form 7 and Elementor Pro form fields; WooCommerce checkout fields and Jalali order dates.
