@kilnonedre/foundation 0.0.4 → 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,9 +285,15 @@ 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
- declare const DropdownCascader: (props: ConfigDropdownCascaderSingleProp) => react_jsx_runtime.JSX.Element;
296
+ declare const DropdownCascaderSingle: (props: ConfigDropdownCascaderSingleProp) => react_jsx_runtime.JSX.Element;
291
297
 
292
298
  interface ConfigProp$6<T extends FieldValues, TName extends FieldPath<T> = FieldPath<T>> {
293
299
  id: string;
@@ -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, DropdownCascader, DropdownCascaderMulti, 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)) {
@@ -2444,7 +2442,7 @@ var DropdownCascaderMulti = ({
2444
2442
  import * as React2 from "react";
2445
2443
  import { ChevronDown as ChevronDown2 } from "lucide-react";
2446
2444
  import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
2447
- var DropdownCascader = (props) => {
2445
+ var DropdownCascaderSingle = (props) => {
2448
2446
  const optionMap = React2.useMemo(
2449
2447
  () => getOptionMap(props.options),
2450
2448
  [props.options]
@@ -3358,8 +3356,8 @@ export {
3358
3356
  DataTable,
3359
3357
  Dialog2 as Dialog,
3360
3358
  DisplayTable,
3361
- DropdownCascader,
3362
3359
  DropdownCascaderMulti,
3360
+ DropdownCascaderSingle,
3363
3361
  EnumApprovalStatus,
3364
3362
  EnumApprovalStatusLabel,
3365
3363
  EnumApprovalView,
@@ -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.4",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "description": "Kilnonedre frontend foundation package",
6
6
  "type": "module",