@kilnonedre/foundation 0.0.5 → 0.0.6

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/index.d.ts CHANGED
@@ -285,6 +285,12 @@ interface ConfigDropdownCascaderSingleProp {
285
285
  }) => void;
286
286
  }
287
287
 
288
+ declare const getOptionMap: (options: Array<ConfigCascaderOption>) => Map<string, {
289
+ option: ConfigCascaderOption;
290
+ path: Array<ConfigCascaderOption>;
291
+ }>;
292
+ declare const renderCascaderNodes: (nodes: Array<ConfigCascaderOption>, parentPath: Array<ConfigCascaderOption>, selectedValues: string[], onSelect: (_node: ConfigCascaderOption) => void) => React.ReactNode;
293
+
288
294
  declare const DropdownCascaderMulti: ({ value, ...props }: ConfigDropdownCascaderMultiProp) => react_jsx_runtime.JSX.Element;
289
295
 
290
296
  declare const DropdownCascaderSingle: (props: ConfigDropdownCascaderSingleProp) => react_jsx_runtime.JSX.Element;
@@ -456,4 +462,4 @@ declare const zCoerceNumberOptional: (label: string, min?: number, max?: number)
456
462
  declare const zDecimal: (label: string, min?: number, max?: number) => z.ZodString;
457
463
  declare const zDecimalOptional: (label: string, min?: number, max?: number) => z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
458
464
 
459
- export { Badge, Button, CheckboxSingleList, type CommonObject, type CommonOption, DataTable, Dialog, DisplayTable, DropdownCascaderMulti, DropdownCascaderSingle, EnumApprovalStatus, EnumApprovalStatusLabel, EnumApprovalView, EnumApprovalViewLabel, EnumEntityStatus, EnumEntityStatusLabel, EnumFormMode, EnumFormModeLabel, EnumGenderType, EnumGenderTypeLabel, EnumMapProvider, EnumMapProviderLabel, EnumOrderStatus, EnumOrderStatusLabel, EnumPublishMethod, EnumPublishMethodLabel, EnumSemanticColor, EnumSemanticColorLabel, EnumStorageMethod, EnumStorageMethodLabel, EnumVariant, EnumVariantLabel, FieldController, FieldGroup, FieldPlain, FieldText, FormSelect, FormTimePicker, MediaUploader, Provider, type SemanticColorToken, TableFormDialog, TablePagination, Text, type UUID, boolToText, cn, emptyToUndefined, enumApprovalStatusOptions, enumApprovalViewOptions, enumEntityStatusOptions, enumFormModeOptions, enumGenderTypeOptions, enumMapProviderOptions, enumOrderStatusOptions, enumPublishMethodOptions, enumSemanticColorOptions, enumStorageMethodOptions, enumToOptions, enumValues, enumVariantOptions, formatDateTime, formatDecimal, genUuid, getSemanticColor, getSuccessMessage, isEmpty, isFormData, isValidEmail, isValidURL, renderBody, renderConfirmFooter, renderFooter, renderInput, renderPasswordInput, renderTextarea, zBool, zCoerceNumber, zCoerceNumberOptional, zDate, zDateOptional, zDecimal, zDecimalOptional, zEmail, zEnumNullable, zEnumNullableOptional, zEnumNullableRequired, zEnumOptional, zEnumRequired, zId, zIdCard, zIdCardOptional, zIds, zImageId, zImageIdRequired, zImageIds, zImageIdsOptional, zNumber, zNumberOptional, zPhone, zTextOptional, zTextRequired, zTexts };
465
+ export { Badge, Button, CheckboxSingleList, type CommonObject, type CommonOption, type ConfigCascaderOption, type ConfigDropdownCascaderMultiProp, type ConfigDropdownCascaderSingleProp, DataTable, Dialog, DisplayTable, DropdownCascaderMulti, DropdownCascaderSingle, EnumApprovalStatus, EnumApprovalStatusLabel, EnumApprovalView, EnumApprovalViewLabel, EnumEntityStatus, EnumEntityStatusLabel, EnumFormMode, EnumFormModeLabel, EnumGenderType, EnumGenderTypeLabel, EnumMapProvider, EnumMapProviderLabel, EnumOrderStatus, EnumOrderStatusLabel, EnumPublishMethod, EnumPublishMethodLabel, EnumSemanticColor, EnumSemanticColorLabel, EnumStorageMethod, EnumStorageMethodLabel, EnumVariant, EnumVariantLabel, FieldController, FieldGroup, FieldPlain, FieldText, FormSelect, FormTimePicker, MediaUploader, Provider, type SemanticColorToken, TableFormDialog, TablePagination, Text, type UUID, boolToText, cn, emptyToUndefined, enumApprovalStatusOptions, enumApprovalViewOptions, enumEntityStatusOptions, enumFormModeOptions, enumGenderTypeOptions, enumMapProviderOptions, enumOrderStatusOptions, enumPublishMethodOptions, enumSemanticColorOptions, enumStorageMethodOptions, enumToOptions, enumValues, enumVariantOptions, formatDateTime, formatDecimal, genUuid, getOptionMap, getSemanticColor, getSuccessMessage, isEmpty, isFormData, isValidEmail, isValidURL, renderBody, renderCascaderNodes, renderConfirmFooter, renderFooter, renderInput, renderPasswordInput, renderTextarea, zBool, zCoerceNumber, zCoerceNumberOptional, zDate, zDateOptional, zDecimal, zDecimalOptional, zEmail, zEnumNullable, zEnumNullableOptional, zEnumNullableRequired, zEnumOptional, zEnumRequired, zId, zIdCard, zIdCardOptional, zIds, zImageId, zImageIdRequired, zImageIds, zImageIdsOptional, zNumber, zNumberOptional, zPhone, zTextOptional, zTextRequired, zTexts };
package/dist/index.js CHANGED
@@ -2264,10 +2264,6 @@ var DisplayTable = (props) => {
2264
2264
  ] }) });
2265
2265
  };
2266
2266
 
2267
- // src/components/dropdown-cascader/dropdown-cascader-multi.tsx
2268
- import * as React from "react";
2269
- import { ChevronDown, X } from "lucide-react";
2270
-
2271
2267
  // src/components/dropdown-cascader/dropdown-cascader-base.tsx
2272
2268
  import { Check } from "lucide-react";
2273
2269
  import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
@@ -2341,6 +2337,8 @@ var renderCascaderNodes = (nodes, parentPath, selectedValues, onSelect) => {
2341
2337
  };
2342
2338
 
2343
2339
  // src/components/dropdown-cascader/dropdown-cascader-multi.tsx
2340
+ import * as React from "react";
2341
+ import { ChevronDown, X } from "lucide-react";
2344
2342
  import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
2345
2343
  var toggle = (list, value) => {
2346
2344
  if (list.includes(value)) {
@@ -3412,6 +3410,7 @@ export {
3412
3410
  formatDateTime,
3413
3411
  formatDecimal,
3414
3412
  genUuid,
3413
+ getOptionMap,
3415
3414
  getSemanticColor,
3416
3415
  getSuccessMessage,
3417
3416
  isEmpty,
@@ -3419,6 +3418,7 @@ export {
3419
3418
  isValidEmail,
3420
3419
  isValidURL,
3421
3420
  renderBody,
3421
+ renderCascaderNodes,
3422
3422
  renderConfirmFooter,
3423
3423
  renderFooter,
3424
3424
  renderInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kilnonedre/foundation",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "description": "Kilnonedre frontend foundation package",
6
6
  "type": "module",