@cimplify/sdk 0.11.0 → 0.12.0
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/dist/react.d.mts +8 -2
- package/dist/react.d.ts +8 -2
- package/dist/react.js +417 -291
- package/dist/react.mjs +417 -291
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/registry/bookings-page.json +1 -1
- package/registry/category-filter.json +1 -1
- package/registry/date-slot-picker.json +1 -1
- package/registry/discount-input.json +1 -1
- package/registry/order-history-page.json +1 -1
- package/registry/product-image-gallery.json +1 -1
- package/registry/search-input.json +1 -1
- package/registry/search-page.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/staff-picker.json +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -965,6 +965,7 @@ interface SearchInputProps {
|
|
|
965
965
|
* SearchInput — search bar with debounced results dropdown.
|
|
966
966
|
*
|
|
967
967
|
* Wraps `useSearch` with a controlled input and optional inline results list.
|
|
968
|
+
* Uses Base UI Field.Root + Input for accessible form semantics.
|
|
968
969
|
*/
|
|
969
970
|
declare function SearchInput({ placeholder, searchOptions, onResultClick, renderResult, showResults, className, classNames, }: SearchInputProps): React.ReactElement;
|
|
970
971
|
|
|
@@ -991,6 +992,8 @@ interface CategoryFilterProps {
|
|
|
991
992
|
*
|
|
992
993
|
* Fetches categories via `useCategories` and renders selectable buttons.
|
|
993
994
|
* The parent controls selection state via `selectedId` + `onSelect`.
|
|
995
|
+
*
|
|
996
|
+
* Built on Base UI Tabs for accessible keyboard navigation and ARIA roles.
|
|
994
997
|
*/
|
|
995
998
|
declare function CategoryFilter({ selectedId, onSelect, allLabel, showCounts, className, classNames, }: CategoryFilterProps): React.ReactElement;
|
|
996
999
|
|
|
@@ -1019,8 +1022,8 @@ interface DiscountInputProps {
|
|
|
1019
1022
|
/**
|
|
1020
1023
|
* DiscountInput — discount code input with inline validation.
|
|
1021
1024
|
*
|
|
1022
|
-
* Wraps `useValidateDiscount` with a
|
|
1023
|
-
* Shows validation result inline (success with amount, or error).
|
|
1025
|
+
* Wraps `useValidateDiscount` with a Base UI Field + Input and apply button.
|
|
1026
|
+
* Shows validation result inline (success with amount, or error via Field.Error).
|
|
1024
1027
|
*/
|
|
1025
1028
|
declare function DiscountInput({ orderSubtotal, locationId, onApply, onClear, placeholder, className, classNames, }: DiscountInputProps): React.ReactElement;
|
|
1026
1029
|
|
|
@@ -1710,6 +1713,9 @@ interface SearchPageProps {
|
|
|
1710
1713
|
* SearchPage — dedicated search page with input and results grid.
|
|
1711
1714
|
*
|
|
1712
1715
|
* Uses `useSearch` for debounced full-text search.
|
|
1716
|
+
* The search input uses Base UI's `Input` primitive, which provides
|
|
1717
|
+
* automatic `data-filled`, `data-focused`, `data-dirty`, and
|
|
1718
|
+
* `data-touched` attributes for styling hooks.
|
|
1713
1719
|
*/
|
|
1714
1720
|
declare function SearchPage({ title, placeholder, onProductClick, renderCard, renderImage, columns, className, classNames, }: SearchPageProps): React.ReactElement;
|
|
1715
1721
|
|
package/dist/react.d.ts
CHANGED
|
@@ -965,6 +965,7 @@ interface SearchInputProps {
|
|
|
965
965
|
* SearchInput — search bar with debounced results dropdown.
|
|
966
966
|
*
|
|
967
967
|
* Wraps `useSearch` with a controlled input and optional inline results list.
|
|
968
|
+
* Uses Base UI Field.Root + Input for accessible form semantics.
|
|
968
969
|
*/
|
|
969
970
|
declare function SearchInput({ placeholder, searchOptions, onResultClick, renderResult, showResults, className, classNames, }: SearchInputProps): React.ReactElement;
|
|
970
971
|
|
|
@@ -991,6 +992,8 @@ interface CategoryFilterProps {
|
|
|
991
992
|
*
|
|
992
993
|
* Fetches categories via `useCategories` and renders selectable buttons.
|
|
993
994
|
* The parent controls selection state via `selectedId` + `onSelect`.
|
|
995
|
+
*
|
|
996
|
+
* Built on Base UI Tabs for accessible keyboard navigation and ARIA roles.
|
|
994
997
|
*/
|
|
995
998
|
declare function CategoryFilter({ selectedId, onSelect, allLabel, showCounts, className, classNames, }: CategoryFilterProps): React.ReactElement;
|
|
996
999
|
|
|
@@ -1019,8 +1022,8 @@ interface DiscountInputProps {
|
|
|
1019
1022
|
/**
|
|
1020
1023
|
* DiscountInput — discount code input with inline validation.
|
|
1021
1024
|
*
|
|
1022
|
-
* Wraps `useValidateDiscount` with a
|
|
1023
|
-
* Shows validation result inline (success with amount, or error).
|
|
1025
|
+
* Wraps `useValidateDiscount` with a Base UI Field + Input and apply button.
|
|
1026
|
+
* Shows validation result inline (success with amount, or error via Field.Error).
|
|
1024
1027
|
*/
|
|
1025
1028
|
declare function DiscountInput({ orderSubtotal, locationId, onApply, onClear, placeholder, className, classNames, }: DiscountInputProps): React.ReactElement;
|
|
1026
1029
|
|
|
@@ -1710,6 +1713,9 @@ interface SearchPageProps {
|
|
|
1710
1713
|
* SearchPage — dedicated search page with input and results grid.
|
|
1711
1714
|
*
|
|
1712
1715
|
* Uses `useSearch` for debounced full-text search.
|
|
1716
|
+
* The search input uses Base UI's `Input` primitive, which provides
|
|
1717
|
+
* automatic `data-filled`, `data-focused`, `data-dirty`, and
|
|
1718
|
+
* `data-touched` attributes for styling hooks.
|
|
1713
1719
|
*/
|
|
1714
1720
|
declare function SearchPage({ title, placeholder, onProductClick, renderCard, renderImage, columns, className, classNames, }: SearchPageProps): React.ReactElement;
|
|
1715
1721
|
|