eco-vue-js 0.25.0 → 0.25.2

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.
@@ -1,6 +1,8 @@
1
1
  type __VLS_Props = {
2
2
  /** Text copied to the clipboard on click. */
3
3
  value: string;
4
+ /** Lays the button out as a regular block instead of sizing it to one line of the surrounding text. */
5
+ noInline?: boolean;
4
6
  };
5
7
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
8
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonCopy.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonCopy.vue"],"names":[],"mappings":"AAoBA;AA2CA,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAyEF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"WButtonCopy.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonCopy.vue"],"names":[],"mappings":"AA0BA;AAmDA,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,uGAAuG;IACvG,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAyFF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,21 +1,26 @@
1
1
  import WTooltip_default from "../Tooltip/WTooltip.vue.js";
2
2
  import { useCopy } from "../../utils/useCopy.js";
3
- import { createBlock, createElementBlock, createVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toRef, unref, withModifiers } from "vue";
3
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toRef, unref, withModifiers } from "vue";
4
4
  //#region src/components/Button/WButtonCopy.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = { class: "select-none relative inline-grid items-center justify-center min-w-[1.25em]" };
6
+ var _hoisted_2 = { class: "w-hover-circle relative" };
5
7
  var WButtonCopy_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
6
8
  __name: "WButtonCopy",
7
- props: { value: {} },
9
+ props: {
10
+ value: {},
11
+ noInline: { type: Boolean }
12
+ },
8
13
  setup(__props) {
9
14
  const { doCopy, iconCopy, copied } = useCopy(toRef(__props, "value"));
10
15
  return (_ctx, _cache) => {
11
- return openBlock(), createElementBlock("button", {
12
- class: "text-description w-hover-circle relative inline-block cursor-pointer select-none",
16
+ return openBlock(), createElementBlock("span", _hoisted_1, [!__props.noInline ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode("\xA0")], 64)) : createCommentVNode("", true), createElementVNode("button", {
17
+ class: normalizeClass(["text-description inline-block p-2 -m-2 w-hover-circle-trigger cursor-pointer", __props.noInline ? void 0 : "absolute"]),
13
18
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(doCopy)(), ["stop"]))
14
- }, [(openBlock(), createBlock(resolveDynamicComponent(unref(iconCopy)), { class: normalizeClass(["square-[1.25em] mt-[-0.125em]", { "tone-primary text-tone": unref(copied) }]) }, null, 8, ["class"])), createVNode(WTooltip_default, {
19
+ }, [createElementVNode("div", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(unref(iconCopy)), { class: normalizeClass(["square-[1.25em]", { "tone-primary text-tone": unref(copied) }]) }, null, 8, ["class"]))]), createVNode(WTooltip_default, {
15
20
  class: "pointer-events-none",
16
21
  text: "Copy",
17
22
  "no-touch": ""
18
- })]);
23
+ })], 2)]);
19
24
  };
20
25
  }
21
26
  });
@@ -4,6 +4,10 @@ type __VLS_Props = {
4
4
  text?: string;
5
5
  /** Color scheme of the chip. */
6
6
  semanticType?: SemanticType;
7
+ /** Renders a rounded pill with a tinted background and colored text instead of a filled box. */
8
+ soft?: boolean;
9
+ /** Icon shown before the label. */
10
+ icon?: SVGComponent;
7
11
  /** Shows a placeholder instead of the chip. When unset, inherits the skeleton state provided by a parent. */
8
12
  skeleton?: boolean;
9
13
  };
@@ -14,6 +18,7 @@ type __VLS_Slots = {
14
18
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
19
  text: string;
16
20
  skeleton: boolean;
21
+ icon: SVGComponent;
17
22
  semanticType: SemanticType;
18
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"WChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/WChip.vue"],"names":[],"mappings":"AAgBA;AAmDA,OAAO,EAAC,YAAY,EAAyB,MAAM,sBAAsB,CAAA;AAGzE,KAAK,WAAW,GAAG;IACf,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAUJ,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AAgEF,QAAA,MAAM,UAAU;UAlFL,MAAM;cAIF,OAAO;kBAFH,YAAY;6EAmF7B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WChip.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Chip/WChip.vue"],"names":[],"mappings":"AAwBA;AAmEA,OAAO,EAAC,YAAY,EAAqD,MAAM,sBAAsB,CAAA;AAGrG,KAAK,WAAW,GAAG;IACf,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,gGAAgG;IAChG,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mCAAmC;IACnC,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAWJ,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAC;AA6EF,QAAA,MAAM,UAAU;UApGL,MAAM;cAQF,OAAO;UAFX,YAAY;kBAJJ,YAAY;6EAqG7B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,13 +1,15 @@
1
- import { SemanticType, useSemanticTypeChipMap } from "../../utils/SemanticType.js";
1
+ import { SemanticType, useSemanticTypeChipMap, useSemanticTypeChipSoftMap } from "../../utils/SemanticType.js";
2
2
  import WSkeleton_default from "../Skeleton/WSkeleton.vue.js";
3
3
  import { useComponentStatesSkeleton } from "../../utils/useComponentStates.js";
4
- import { createBlock, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref } from "vue";
4
+ import { createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref } from "vue";
5
5
  //#region src/components/Chip/WChip.vue?vue&type=script&setup=true&lang.ts
6
6
  var WChip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
7
7
  __name: "WChip",
8
8
  props: {
9
9
  text: { default: void 0 },
10
10
  semanticType: { default: SemanticType.SECONDARY },
11
+ soft: { type: Boolean },
12
+ icon: { default: void 0 },
11
13
  skeleton: {
12
14
  type: Boolean,
13
15
  default: void 0
@@ -16,14 +18,18 @@ var WChip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
16
18
  setup(__props) {
17
19
  const { isSkeleton } = useComponentStatesSkeleton(__props);
18
20
  const semanticTypeChipMap = useSemanticTypeChipMap();
21
+ const semanticTypeChipSoftMap = useSemanticTypeChipSoftMap();
19
22
  return (_ctx, _cache) => {
20
23
  return unref(isSkeleton) ? (openBlock(), createBlock(WSkeleton_default, {
21
24
  key: 0,
22
25
  class: "w-skeleton-h-5 max-w-28"
23
26
  })) : (openBlock(), createElementBlock("div", {
24
27
  key: 1,
25
- class: normalizeClass(["w-max rounded-md px-2 py-0.5 text-xs font-semibold", unref(semanticTypeChipMap)[__props.semanticType]])
26
- }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])], 2));
28
+ class: normalizeClass(["w-max", __props.soft ? ["inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", unref(semanticTypeChipSoftMap)[__props.semanticType]] : ["rounded-md px-2 py-0.5 text-xs font-semibold", unref(semanticTypeChipMap)[__props.semanticType]]])
29
+ }, [__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
30
+ key: 0,
31
+ class: "square-[1em] shrink-0"
32
+ })) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])], 2));
27
33
  };
28
34
  }
29
35
  });
@@ -45,7 +45,7 @@ var WMenuItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
45
45
  "hover:text-tone cursor-pointer": !__props.disabled && !__props.loading,
46
46
  "cursor-not-allowed opacity-50": __props.disabled,
47
47
  "text-tone": __props.active && !__props.disabled,
48
- "text-description": !__props.active && !toned.value || __props.disabled,
48
+ "text-accent": !__props.active && !toned.value || __props.disabled,
49
49
  "cursor-progress": __props.loading
50
50
  }],
51
51
  disabled: __props.disabled,
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SemanticType, patchSemanticType, setSemanticTypeBackgroundMap, setSemanticTypeBorderComponentMap, setSemanticTypeBorderMap, setSemanticTypeButtonBackgroundMap, setSemanticTypeChipMap, setSemanticTypeTextMap, useSemanticTypeBackgroundMap, useSemanticTypeBorderComponentMap, useSemanticTypeBorderMap, useSemanticTypeButtonBackgroundMap, useSemanticTypeChipMap, useSemanticTypeTextMap } from "./utils/SemanticType.js";
1
+ import { SemanticType, patchSemanticType, setSemanticTypeBackgroundMap, setSemanticTypeBorderComponentMap, setSemanticTypeBorderMap, setSemanticTypeButtonBackgroundMap, setSemanticTypeChipMap, setSemanticTypeChipSoftMap, setSemanticTypeTextMap, useSemanticTypeBackgroundMap, useSemanticTypeBorderComponentMap, useSemanticTypeBorderMap, useSemanticTypeButtonBackgroundMap, useSemanticTypeChipMap, useSemanticTypeChipSoftMap, useSemanticTypeTextMap } from "./utils/SemanticType.js";
2
2
  import { getIntl, getLocale, setLocale } from "./utils/locale.js";
3
3
  import { BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, ListMode, Theme, WrapSelectionType, dateFormatterCsv, debounce, genId, get, getAllScrollParents, getAnchorNode, getDefaultFieldConfigMap, getHasScrollbar, getIsClientSide, getOffsetTop, getPropValue, getScrollParent, isAnchorConnected, isClientSide, isEqualArr, isEqualArrObj, isEqualObj, isId, isIdArray, isIndex, isPage, numberCompactFormatter, numberFormatCsv, numberFormatter, parseBoolean, parseId, parseIdList, parseIndex, parseInteger, parseIntegerList, parseJson, parseSliceIndexes, parseString, parseStringList, percentCompactFormatter, percentFormatter, scrollInParent, set, throttle, toKebabCase, unwrapSlots, wBaseZIndex } from "./utils/utils.js";
4
4
  import WCounter_default from "./components/Counter/WCounter.vue.js";
@@ -368,4 +368,4 @@ var main_default = { install: (app) => {
368
368
  app.component("WUniformErrorMessage", WUniformErrorMessage_default);
369
369
  } };
370
370
  //#endregion
371
- export { ApiClientInstance, ApiError, ApiErrorCancel, BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, DOMListenerContainer, HorizontalAlign, IconAdd_default as IconAdd, IconAddCircle_default as IconAddCircle, IconAddSquare_default as IconAddSquare, IconAlarm_default as IconAlarm, IconArchiveBook_default as IconArchiveBook, IconArrow_default as IconArrow, IconBack_default as IconBack, IconBold_default as IconBold, IconBroom_default as IconBroom, IconCactus_default as IconCactus, IconCancel_default as IconCancel, IconCandle_default as IconCandle, IconCelery_default as IconCelery, IconChart_default as IconChart, IconCheck_default as IconCheck, IconCheckCircle_default as IconCheckCircle, IconCheckSecret_default as IconCheckSecret, IconClose_default as IconClose, IconCloseCircle_default as IconCloseCircle, IconCloud_default as IconCloud, IconCloudSun_default as IconCloudSun, IconCloudSunPartial_default as IconCloudSunPartial, IconCodeBlock_default as IconCodeBlock, IconCodeInline_default as IconCodeInline, IconCopy_default as IconCopy, IconCopySuccess_default as IconCopySuccess, IconCopyright_default as IconCopyright, IconDanger_default as IconDanger, IconDojo_default as IconDojo, IconDrag_default as IconDrag, IconDrop_default as IconDrop, IconEdit_default as IconEdit, IconEditCircle_default as IconEditCircle, IconEditSquare_default as IconEditSquare, IconElement_default as IconElement, IconExport_default as IconExport, IconEye_default as IconEye, IconEyeSlash_default as IconEyeSlash, IconFern_default as IconFern, IconFilter_default as IconFilter, IconFilterRemove_default as IconFilterRemove, IconFinding_default as IconFinding, IconFolder_default as IconFolder, IconFolderAdd_default as IconFolderAdd, IconFolderCross_default as IconFolderCross, IconGrid_default as IconGrid, IconHeading_default as IconHeading, IconHealth_default as IconHealth, IconHealthcare_default as IconHealthcare, IconInfo_default as IconInfo, IconItalic_default as IconItalic, IconJira_default as IconJira, IconKey_default as IconKey, IconKeySquare_default as IconKeySquare, IconLayer_default as IconLayer, IconLink_default as IconLink, IconLinkBold_default as IconLinkBold, IconLinkOutline_default as IconLinkOutline, IconLinkedIn_default as IconLinkedIn, IconList_default as IconList, IconListBullet_default as IconListBullet, IconListCheckbox_default as IconListCheckbox, IconListDecrease_default as IconListDecrease, IconListIncrease_default as IconListIncrease, IconListNumbered_default as IconListNumbered, IconListSettings_default as IconListSettings, IconLock_default as IconLock, IconLockOff_default as IconLockOff, IconLogout_default as IconLogout, IconMarkdown_default as IconMarkdown, IconMenu_default as IconMenu, IconMinusCircle_default as IconMinusCircle, IconMonstera_default as IconMonstera, IconMoon_default as IconMoon, IconMore_default as IconMore, IconNegate_default as IconNegate, IconNegativeInfo_default as IconNegativeInfo, IconNote_default as IconNote, IconNotification_default as IconNotification, IconPalette_default as IconPalette, IconPaste_default as IconPaste, IconPlant_default as IconPlant, IconProfile_default as IconProfile, IconQuote_default as IconQuote, IconRadar_default as IconRadar, IconRange_default as IconRange, IconRedo_default as IconRedo, IconRefresh_default as IconRefresh, IconRuler_default as IconRuler, IconSave_default as IconSave, IconSearch_default as IconSearch, IconSettings_default as IconSettings, IconShift_default as IconShift, IconSlash_default as IconSlash, IconSnowflake_default as IconSnowflake, IconSort_default as IconSort, IconSpinner_default as IconSpinner, IconSprig_default as IconSprig, IconStar_default as IconStar, IconStrikethrough_default as IconStrikethrough, IconSuccess_default as IconSuccess, IconSummary_default as IconSummary, IconSun_default as IconSun, IconTable_default as IconTable, IconTableCollapsed_default as IconTableCollapsed, IconTag_default as IconTag, IconTask_default as IconTask, IconThermometer_default as IconThermometer, IconTime_default as IconTime, IconTo_default as IconTo, IconTrash_default as IconTrash, IconUnderline_default as IconUnderline, IconUndo_default as IconUndo, IconUpload_default as IconUpload, IconUser_default as IconUser, IconVersionControl_default as IconVersionControl, IconWarn_default as IconWarn, IconWeight_default as IconWeight, IconWind_default as IconWind, ListMode, Modal, Month, Notify, NotifyChannel, NotifyType, Order, PAGE_LENGTH, SemanticType, Theme, WActionsBar_default as WActionsBar, WActionsBarFilter_default as WActionsBarFilter, WBorderSvg_default as WBorderSvg, WBottomSheet_default as WBottomSheet, WButton_default as WButton, WButtonAction_default as WButtonAction, WButtonCopy_default as WButtonCopy, WButtonDropdown_default as WButtonDropdown, WButtonGroup_default as WButtonGroup, WButtonInput_default as WButtonInput, WButtonMore_default as WButtonMore, WButtonMoreItem_default as WButtonMoreItem, WButtonSelection_default as WButtonSelection, WButtonSelectionAction_default as WButtonSelectionAction, WButtonSelectionState_default as WButtonSelectionState, WButtonTab_default as WButtonTab, WButtonUnselect_default as WButtonUnselect, WChartHeatmap_default as WChartHeatmap, WChartLine_default as WChartLine, WChartLinear_default as WChartLinear, WCheckbox_default as WCheckbox, WCheckboxGroup_default as WCheckboxGroup, WCheckboxGroupMultiple_default as WCheckboxGroupMultiple, WChip_default as WChip, WClickOutside_default as WClickOutside, WCounter_default as WCounter, WDatePicker_default as WDatePicker, WDatePickerSingle_default as WDatePickerSingle, WDismissable_default as WDismissable, WDragContainer_default as WDragContainer, WDropdown_default as WDropdown, WDropdownAdaptive_default as WDropdownAdaptive, WDropdownMenu_default as WDropdownMenu, WDropdownTip_default as WDropdownTip, WEmptyComponent_default as WEmptyComponent, WExpansion_default as WExpansion, WExpansionItem_default as WExpansionItem, WFieldWrapper_default as WFieldWrapper, WFilePicker_default as WFilePicker, WHeaderBar_default as WHeaderBar, WHeaderBarSearch_default as WHeaderBarSearch, WImageViewer_default as WImageViewer, WInfiniteList_default as WInfiniteList, WInfiniteListScrollingElement_default as WInfiniteListScrollingElement, WInfiniteListWrapper_default as WInfiniteListWrapper, WInfoCard_default as WInfoCard, WInfoCardNegative_default as WInfoCardNegative, WInput_default as WInput, WInputAsync_default as WInputAsync, WInputDate_default as WInputDate, WInputOptions_default as WInputOptions, WInputSuggest_default as WInputSuggest, WInputToolbarButton_default as WInputToolbarButton, WLink_default as WLink, WLinkArrow_default as WLinkArrow, WList_default as WList, WListCardField_default as WListCardField, WListFilter_default as WListFilter, WListHeader_default as WListHeader, WListHeaderItem_default as WListHeaderItem, WMenuItem_default as WMenuItem, WModal_default as WModal, WModalExport_default as WModalExport, WModalImport_default as WModalImport, WModalStepper_default as WModalStepper, WModalWrapper_default as WModalWrapper, WNavBar_default as WNavBar, WNavItem_default as WNavItem, WNavItemExpand_default as WNavItemExpand, WNavItemTransition_default as WNavItemTransition, WNotify_default as WNotify, WNotifyCenter_default as WNotifyCenter, WNotifyCenterButton_default as WNotifyCenterButton, WNumberFormatter_default as WNumberFormatter, WPage_default as WPage, WPageBreadcrumbs_default as WPageBreadcrumbs, WPageNumerator_default as WPageNumerator, WPageTitle_default as WPageTitle, WProgress_default as WProgress, WProgressBar_default as WProgressBar, WProgressStriped_default as WProgressStriped, WRouterLink_default as WRouterLink, WSelect_default as WSelect, WSelectAsync_default as WSelectAsync, WSelectAsyncList_default as WSelectAsyncList, WSelectAsyncSingle_default as WSelectAsyncSingle, WSelectSingle_default as WSelectSingle, WSelectStringified_default as WSelectStringified, WShine_default as WShine, WShineEffect_default as WShineEffect, WSkeleton_default as WSkeleton, WSlider_default as WSlider, WSliderRange_default as WSliderRange, WSpinner_default as WSpinner, WStatusIcon_default as WStatusIcon, WTabs_default as WTabs, WTabsColumns_default as WTabsColumns, WTabsItem_default as WTabsItem, WTextOverflow_default as WTextOverflow, WToggle_default as WToggle, WToggleTheme_default as WToggleTheme, WTooltip_default as WTooltip, WTooltipContainer_default as WTooltipContainer, WUniform_default as WUniform, WUniformErrorMessage_default as WUniformErrorMessage, WeekDay, WrapSelectionType, addDay, addMonth, addNotify, addYear, appendScrollbarStyles, buildCsvContent, checkPermissionPaste, closeNotifyCenter, createDefaultQuery, createPointAnchor, createRestModelApi, createUseQueryParams, dateFormat, dateFormatter, dateFormatterCsv, dateInputFormat, dateRegexp, dateToQueryString, datetimeFormat, debounce, main_default as default, doCopy, durationFormat, encodeOrdering, encodeQueryParam, encodeQueryParams, encodeRouteParams, escapeCsvValue, genId, get, getAllScrollParents, getAnchorNode, getDefaultFieldConfigMap, getDurationRound, getHasScrollbar, getIntl, getIsClientSide, getIsMobile, getIsTablet, getIsTouchDevice, getLocale, getMatchingCollectionIds, getOffsetTop, getPosition, getPropValue, getQueryClient, getQueryItem, getRouteTitle, getRouteTitleShort, getScrollParent, getScrollbarWidth, getStartOfDay, getStartOfMonth, getStartOfNextDay, getStartOfWeek, getText, getURLParams, handleApiError, initNotify, isAnchorConnected, isClientSide, isDragging, isEqualArr, isEqualArrObj, isEqualObj, isId, isIdArray, isIndex, isNotifyCenterOpen, isNotifyPending, isPage, isQueryModelId, isRequestResponse, isSameDate, isSameMonth, isSameWeek, isSameYear, makeQueryPaginated, monthShortFormatter, normalizeQueryParams, normalizeQueryParamsValue, notifyCenterActionCount, notifyCenterPendingCount, numberCompactFormatter, numberFormatCsv, numberFormatter, paginateList, parseBoolean, parseDateInput, parseDateQuery, parseId, parseIdList, parseIndex, parseInteger, parseIntegerList, parseJson, parseOrdering, parseSliceIndexes, parseString, parseStringList, patchSemanticType, percentCompactFormatter, percentFormatter, preventDragFile, removeQueryItem, removeQueryItems, scrollInParent, set, setIsTouchDeviceInit, setListItem, setLocale, setQueryClient, setQueryItem, setQueryItems, setSemanticTypeBackgroundMap, setSemanticTypeBorderComponentMap, setSemanticTypeBorderMap, setSemanticTypeButtonBackgroundMap, setSemanticTypeChipMap, setSemanticTypeTextMap, setTexts, snapshotQueries, supportsPassive, throttle, timeFormat, toKebabCase, todayFormat, unwrapSlots, updateExpirationDate, updateQueryItems, useClearValue, useComponentStates, useComponentStatesButton, useComponentStatesSkeleton, useCopy, useDocumentTitle, useIsMobile, useLayerBusy, useLayerChanges, useNotifyCenter, useOverlay, useOverlayClose, useOverlayFrame, useOverlayFrameOptions, useProvideDisabled, useProvideReadonly, useProvideSkeleton, useQueryParamsId, useQueryParamsIdString, useQueryParamsList, useQueryParamsListBulk, useQueryParamsListBulkString, useQueryParamsPage, useRouteTitle, useRouteTitles, useSelected, useSelection, useSelectionHash, useSemanticTypeBackgroundMap, useSemanticTypeBorderComponentMap, useSemanticTypeBorderMap, useSemanticTypeButtonBackgroundMap, useSemanticTypeChipMap, useSemanticTypeTextMap, useTabActiveListener, validateForbiddenRegexp, validateRequired, validateRequiredSymbols, wBaseZIndex, weekdayNarrowFormatter, weekdayShortFormatter, wrapUseQueryPaginated };
371
+ export { ApiClientInstance, ApiError, ApiErrorCancel, BASE_ZINDEX_ACTIONS_BAR, BASE_ZINDEX_BOTTOM_SHEET, BASE_ZINDEX_DROPDOWN, BASE_ZINDEX_HEADER_BAR, BASE_ZINDEX_LIST_HEADER, BASE_ZINDEX_MODAL, BASE_ZINDEX_NAV_BAR, DOMListenerContainer, HorizontalAlign, IconAdd_default as IconAdd, IconAddCircle_default as IconAddCircle, IconAddSquare_default as IconAddSquare, IconAlarm_default as IconAlarm, IconArchiveBook_default as IconArchiveBook, IconArrow_default as IconArrow, IconBack_default as IconBack, IconBold_default as IconBold, IconBroom_default as IconBroom, IconCactus_default as IconCactus, IconCancel_default as IconCancel, IconCandle_default as IconCandle, IconCelery_default as IconCelery, IconChart_default as IconChart, IconCheck_default as IconCheck, IconCheckCircle_default as IconCheckCircle, IconCheckSecret_default as IconCheckSecret, IconClose_default as IconClose, IconCloseCircle_default as IconCloseCircle, IconCloud_default as IconCloud, IconCloudSun_default as IconCloudSun, IconCloudSunPartial_default as IconCloudSunPartial, IconCodeBlock_default as IconCodeBlock, IconCodeInline_default as IconCodeInline, IconCopy_default as IconCopy, IconCopySuccess_default as IconCopySuccess, IconCopyright_default as IconCopyright, IconDanger_default as IconDanger, IconDojo_default as IconDojo, IconDrag_default as IconDrag, IconDrop_default as IconDrop, IconEdit_default as IconEdit, IconEditCircle_default as IconEditCircle, IconEditSquare_default as IconEditSquare, IconElement_default as IconElement, IconExport_default as IconExport, IconEye_default as IconEye, IconEyeSlash_default as IconEyeSlash, IconFern_default as IconFern, IconFilter_default as IconFilter, IconFilterRemove_default as IconFilterRemove, IconFinding_default as IconFinding, IconFolder_default as IconFolder, IconFolderAdd_default as IconFolderAdd, IconFolderCross_default as IconFolderCross, IconGrid_default as IconGrid, IconHeading_default as IconHeading, IconHealth_default as IconHealth, IconHealthcare_default as IconHealthcare, IconInfo_default as IconInfo, IconItalic_default as IconItalic, IconJira_default as IconJira, IconKey_default as IconKey, IconKeySquare_default as IconKeySquare, IconLayer_default as IconLayer, IconLink_default as IconLink, IconLinkBold_default as IconLinkBold, IconLinkOutline_default as IconLinkOutline, IconLinkedIn_default as IconLinkedIn, IconList_default as IconList, IconListBullet_default as IconListBullet, IconListCheckbox_default as IconListCheckbox, IconListDecrease_default as IconListDecrease, IconListIncrease_default as IconListIncrease, IconListNumbered_default as IconListNumbered, IconListSettings_default as IconListSettings, IconLock_default as IconLock, IconLockOff_default as IconLockOff, IconLogout_default as IconLogout, IconMarkdown_default as IconMarkdown, IconMenu_default as IconMenu, IconMinusCircle_default as IconMinusCircle, IconMonstera_default as IconMonstera, IconMoon_default as IconMoon, IconMore_default as IconMore, IconNegate_default as IconNegate, IconNegativeInfo_default as IconNegativeInfo, IconNote_default as IconNote, IconNotification_default as IconNotification, IconPalette_default as IconPalette, IconPaste_default as IconPaste, IconPlant_default as IconPlant, IconProfile_default as IconProfile, IconQuote_default as IconQuote, IconRadar_default as IconRadar, IconRange_default as IconRange, IconRedo_default as IconRedo, IconRefresh_default as IconRefresh, IconRuler_default as IconRuler, IconSave_default as IconSave, IconSearch_default as IconSearch, IconSettings_default as IconSettings, IconShift_default as IconShift, IconSlash_default as IconSlash, IconSnowflake_default as IconSnowflake, IconSort_default as IconSort, IconSpinner_default as IconSpinner, IconSprig_default as IconSprig, IconStar_default as IconStar, IconStrikethrough_default as IconStrikethrough, IconSuccess_default as IconSuccess, IconSummary_default as IconSummary, IconSun_default as IconSun, IconTable_default as IconTable, IconTableCollapsed_default as IconTableCollapsed, IconTag_default as IconTag, IconTask_default as IconTask, IconThermometer_default as IconThermometer, IconTime_default as IconTime, IconTo_default as IconTo, IconTrash_default as IconTrash, IconUnderline_default as IconUnderline, IconUndo_default as IconUndo, IconUpload_default as IconUpload, IconUser_default as IconUser, IconVersionControl_default as IconVersionControl, IconWarn_default as IconWarn, IconWeight_default as IconWeight, IconWind_default as IconWind, ListMode, Modal, Month, Notify, NotifyChannel, NotifyType, Order, PAGE_LENGTH, SemanticType, Theme, WActionsBar_default as WActionsBar, WActionsBarFilter_default as WActionsBarFilter, WBorderSvg_default as WBorderSvg, WBottomSheet_default as WBottomSheet, WButton_default as WButton, WButtonAction_default as WButtonAction, WButtonCopy_default as WButtonCopy, WButtonDropdown_default as WButtonDropdown, WButtonGroup_default as WButtonGroup, WButtonInput_default as WButtonInput, WButtonMore_default as WButtonMore, WButtonMoreItem_default as WButtonMoreItem, WButtonSelection_default as WButtonSelection, WButtonSelectionAction_default as WButtonSelectionAction, WButtonSelectionState_default as WButtonSelectionState, WButtonTab_default as WButtonTab, WButtonUnselect_default as WButtonUnselect, WChartHeatmap_default as WChartHeatmap, WChartLine_default as WChartLine, WChartLinear_default as WChartLinear, WCheckbox_default as WCheckbox, WCheckboxGroup_default as WCheckboxGroup, WCheckboxGroupMultiple_default as WCheckboxGroupMultiple, WChip_default as WChip, WClickOutside_default as WClickOutside, WCounter_default as WCounter, WDatePicker_default as WDatePicker, WDatePickerSingle_default as WDatePickerSingle, WDismissable_default as WDismissable, WDragContainer_default as WDragContainer, WDropdown_default as WDropdown, WDropdownAdaptive_default as WDropdownAdaptive, WDropdownMenu_default as WDropdownMenu, WDropdownTip_default as WDropdownTip, WEmptyComponent_default as WEmptyComponent, WExpansion_default as WExpansion, WExpansionItem_default as WExpansionItem, WFieldWrapper_default as WFieldWrapper, WFilePicker_default as WFilePicker, WHeaderBar_default as WHeaderBar, WHeaderBarSearch_default as WHeaderBarSearch, WImageViewer_default as WImageViewer, WInfiniteList_default as WInfiniteList, WInfiniteListScrollingElement_default as WInfiniteListScrollingElement, WInfiniteListWrapper_default as WInfiniteListWrapper, WInfoCard_default as WInfoCard, WInfoCardNegative_default as WInfoCardNegative, WInput_default as WInput, WInputAsync_default as WInputAsync, WInputDate_default as WInputDate, WInputOptions_default as WInputOptions, WInputSuggest_default as WInputSuggest, WInputToolbarButton_default as WInputToolbarButton, WLink_default as WLink, WLinkArrow_default as WLinkArrow, WList_default as WList, WListCardField_default as WListCardField, WListFilter_default as WListFilter, WListHeader_default as WListHeader, WListHeaderItem_default as WListHeaderItem, WMenuItem_default as WMenuItem, WModal_default as WModal, WModalExport_default as WModalExport, WModalImport_default as WModalImport, WModalStepper_default as WModalStepper, WModalWrapper_default as WModalWrapper, WNavBar_default as WNavBar, WNavItem_default as WNavItem, WNavItemExpand_default as WNavItemExpand, WNavItemTransition_default as WNavItemTransition, WNotify_default as WNotify, WNotifyCenter_default as WNotifyCenter, WNotifyCenterButton_default as WNotifyCenterButton, WNumberFormatter_default as WNumberFormatter, WPage_default as WPage, WPageBreadcrumbs_default as WPageBreadcrumbs, WPageNumerator_default as WPageNumerator, WPageTitle_default as WPageTitle, WProgress_default as WProgress, WProgressBar_default as WProgressBar, WProgressStriped_default as WProgressStriped, WRouterLink_default as WRouterLink, WSelect_default as WSelect, WSelectAsync_default as WSelectAsync, WSelectAsyncList_default as WSelectAsyncList, WSelectAsyncSingle_default as WSelectAsyncSingle, WSelectSingle_default as WSelectSingle, WSelectStringified_default as WSelectStringified, WShine_default as WShine, WShineEffect_default as WShineEffect, WSkeleton_default as WSkeleton, WSlider_default as WSlider, WSliderRange_default as WSliderRange, WSpinner_default as WSpinner, WStatusIcon_default as WStatusIcon, WTabs_default as WTabs, WTabsColumns_default as WTabsColumns, WTabsItem_default as WTabsItem, WTextOverflow_default as WTextOverflow, WToggle_default as WToggle, WToggleTheme_default as WToggleTheme, WTooltip_default as WTooltip, WTooltipContainer_default as WTooltipContainer, WUniform_default as WUniform, WUniformErrorMessage_default as WUniformErrorMessage, WeekDay, WrapSelectionType, addDay, addMonth, addNotify, addYear, appendScrollbarStyles, buildCsvContent, checkPermissionPaste, closeNotifyCenter, createDefaultQuery, createPointAnchor, createRestModelApi, createUseQueryParams, dateFormat, dateFormatter, dateFormatterCsv, dateInputFormat, dateRegexp, dateToQueryString, datetimeFormat, debounce, main_default as default, doCopy, durationFormat, encodeOrdering, encodeQueryParam, encodeQueryParams, encodeRouteParams, escapeCsvValue, genId, get, getAllScrollParents, getAnchorNode, getDefaultFieldConfigMap, getDurationRound, getHasScrollbar, getIntl, getIsClientSide, getIsMobile, getIsTablet, getIsTouchDevice, getLocale, getMatchingCollectionIds, getOffsetTop, getPosition, getPropValue, getQueryClient, getQueryItem, getRouteTitle, getRouteTitleShort, getScrollParent, getScrollbarWidth, getStartOfDay, getStartOfMonth, getStartOfNextDay, getStartOfWeek, getText, getURLParams, handleApiError, initNotify, isAnchorConnected, isClientSide, isDragging, isEqualArr, isEqualArrObj, isEqualObj, isId, isIdArray, isIndex, isNotifyCenterOpen, isNotifyPending, isPage, isQueryModelId, isRequestResponse, isSameDate, isSameMonth, isSameWeek, isSameYear, makeQueryPaginated, monthShortFormatter, normalizeQueryParams, normalizeQueryParamsValue, notifyCenterActionCount, notifyCenterPendingCount, numberCompactFormatter, numberFormatCsv, numberFormatter, paginateList, parseBoolean, parseDateInput, parseDateQuery, parseId, parseIdList, parseIndex, parseInteger, parseIntegerList, parseJson, parseOrdering, parseSliceIndexes, parseString, parseStringList, patchSemanticType, percentCompactFormatter, percentFormatter, preventDragFile, removeQueryItem, removeQueryItems, scrollInParent, set, setIsTouchDeviceInit, setListItem, setLocale, setQueryClient, setQueryItem, setQueryItems, setSemanticTypeBackgroundMap, setSemanticTypeBorderComponentMap, setSemanticTypeBorderMap, setSemanticTypeButtonBackgroundMap, setSemanticTypeChipMap, setSemanticTypeChipSoftMap, setSemanticTypeTextMap, setTexts, snapshotQueries, supportsPassive, throttle, timeFormat, toKebabCase, todayFormat, unwrapSlots, updateExpirationDate, updateQueryItems, useClearValue, useComponentStates, useComponentStatesButton, useComponentStatesSkeleton, useCopy, useDocumentTitle, useIsMobile, useLayerBusy, useLayerChanges, useNotifyCenter, useOverlay, useOverlayClose, useOverlayFrame, useOverlayFrameOptions, useProvideDisabled, useProvideReadonly, useProvideSkeleton, useQueryParamsId, useQueryParamsIdString, useQueryParamsList, useQueryParamsListBulk, useQueryParamsListBulkString, useQueryParamsPage, useRouteTitle, useRouteTitles, useSelected, useSelection, useSelectionHash, useSemanticTypeBackgroundMap, useSemanticTypeBorderComponentMap, useSemanticTypeBorderMap, useSemanticTypeButtonBackgroundMap, useSemanticTypeChipMap, useSemanticTypeChipSoftMap, useSemanticTypeTextMap, useTabActiveListener, validateForbiddenRegexp, validateRequired, validateRequiredSymbols, wBaseZIndex, weekdayNarrowFormatter, weekdayShortFormatter, wrapUseQueryPaginated };
@@ -25,6 +25,15 @@ export declare const useSemanticTypeChipMap: () => {
25
25
  info: string;
26
26
  };
27
27
  export declare const setSemanticTypeChipMap: (value: Partial<Record<SemanticType, string>>) => void;
28
+ export declare const useSemanticTypeChipSoftMap: () => {
29
+ primary: string;
30
+ secondary: string;
31
+ negative: string;
32
+ positive: string;
33
+ warning: string;
34
+ info: string;
35
+ };
36
+ export declare const setSemanticTypeChipSoftMap: (value: Partial<Record<SemanticType, string>>) => void;
28
37
  export declare const useSemanticTypeBorderMap: () => {
29
38
  primary: string;
30
39
  secondary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SemanticType.d.ts","sourceRoot":"","sources":["../../../src/utils/SemanticType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,KAAK,EAAW,MAAM,KAAK,CAAA;AAExC,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAWD,eAAO,MAAM,4BAA4B;;;;;;;CAExC,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAExF,CAAA;AAOD,eAAO,MAAM,sBAAsB;;;;;;;CAElC,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAElF,CAAA;AAWD,eAAO,MAAM,wBAAwB;;;;;;;CAEpC,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAEpF,CAAA;AAWD,eAAO,MAAM,sBAAsB;;;;;;;CAElC,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAElF,CAAA;AAWD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;CAE7C,CAAA;AAED,eAAO,MAAM,iCAAiC,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,SAE5F,CAAA;AAWD,eAAO,MAAM,kCAAkC;;;;;;;CAE9C,CAAA;AAED,eAAO,MAAM,kCAAkC,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAE9F,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,SAG3D,CAAA"}
1
+ {"version":3,"file":"SemanticType.d.ts","sourceRoot":"","sources":["../../../src/utils/SemanticType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,KAAK,EAAW,MAAM,KAAK,CAAA;AAExC,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAWD,eAAO,MAAM,4BAA4B;;;;;;;CAExC,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAExF,CAAA;AAOD,eAAO,MAAM,sBAAsB;;;;;;;CAElC,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAElF,CAAA;AAWD,eAAO,MAAM,0BAA0B;;;;;;;CAEtC,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAEtF,CAAA;AAWD,eAAO,MAAM,wBAAwB;;;;;;;CAEpC,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAEpF,CAAA;AAWD,eAAO,MAAM,sBAAsB;;;;;;;CAElC,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAElF,CAAA;AAWD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;CAE7C,CAAA;AAED,eAAO,MAAM,iCAAiC,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,SAE5F,CAAA;AAWD,eAAO,MAAM,kCAAkC;;;;;;;CAE9C,CAAA;AAED,eAAO,MAAM,kCAAkC,GAAI,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAE9F,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,SAG3D,CAAA"}
@@ -33,6 +33,20 @@ var useSemanticTypeChipMap = () => {
33
33
  var setSemanticTypeChipMap = (value) => {
34
34
  Object.assign(semanticTypeChipMap, value);
35
35
  };
36
+ var semanticTypeChipSoftMap = reactive({
37
+ ["primary"]: "tone-primary bg-tone-soft text-tone",
38
+ ["secondary"]: "bg-surface-muted text-accent",
39
+ ["negative"]: "tone-negative bg-tone-soft text-tone",
40
+ ["positive"]: "tone-positive bg-tone-soft text-tone",
41
+ ["warning"]: "tone-warning bg-tone-soft text-tone",
42
+ ["info"]: "tone-info bg-tone-soft text-tone"
43
+ });
44
+ var useSemanticTypeChipSoftMap = () => {
45
+ return semanticTypeChipSoftMap;
46
+ };
47
+ var setSemanticTypeChipSoftMap = (value) => {
48
+ Object.assign(semanticTypeChipSoftMap, value);
49
+ };
36
50
  var semanticTypeBorderMap = reactive({
37
51
  ["primary"]: "tone-primary border-solid border-tone-fill",
38
52
  ["secondary"]: "border-solid border-line",
@@ -94,4 +108,4 @@ var patchSemanticType = (key, value) => {
94
108
  SemanticType[value] = key;
95
109
  };
96
110
  //#endregion
97
- export { SemanticType, patchSemanticType, setSemanticTypeBackgroundMap, setSemanticTypeBorderComponentMap, setSemanticTypeBorderMap, setSemanticTypeButtonBackgroundMap, setSemanticTypeChipMap, setSemanticTypeTextMap, useSemanticTypeBackgroundMap, useSemanticTypeBorderComponentMap, useSemanticTypeBorderMap, useSemanticTypeButtonBackgroundMap, useSemanticTypeChipMap, useSemanticTypeTextMap };
111
+ export { SemanticType, patchSemanticType, setSemanticTypeBackgroundMap, setSemanticTypeBorderComponentMap, setSemanticTypeBorderMap, setSemanticTypeButtonBackgroundMap, setSemanticTypeChipMap, setSemanticTypeChipSoftMap, setSemanticTypeTextMap, useSemanticTypeBackgroundMap, useSemanticTypeBorderComponentMap, useSemanticTypeBorderMap, useSemanticTypeButtonBackgroundMap, useSemanticTypeChipMap, useSemanticTypeChipSoftMap, useSemanticTypeTextMap };
@@ -100,7 +100,7 @@ const save = () => {
100
100
 
101
101
  ## Small buttons
102
102
 
103
- `WButtonCopy` copies `value` to the clipboard. Its icon turns into a check for a moment after copying.
103
+ `WButtonCopy` copies `value` to the clipboard. Its icon turns into a check for a moment after copying. By default it takes up one line of the surrounding text, so it sits inside a sentence without changing the line height; `noInline` lays it out as a regular block instead.
104
104
 
105
105
  `WButtonInput` is a square icon button as tall as an input (`--w-input-height`), with the input's border and corners, to sit next to an input or in its `right` slot. `tooltipText` names it, `loading` swaps the icon for a spinner, and `to` makes it a router link.
106
106
 
@@ -206,6 +206,7 @@ import WButtonCopy from 'eco-vue-js/dist/components/Button/WButtonCopy.vue'
206
206
  | Prop | Type | Default | Description |
207
207
  | --- | --- | --- | --- |
208
208
  | `value` | `string` | **required** | Text copied to the clipboard on click. |
209
+ | `noInline` | `boolean` | — | Lays the button out as a regular block instead of sizing it to one line of the surrounding text. |
209
210
 
210
211
  ### WButtonInput
211
212
 
@@ -1,8 +1,8 @@
1
1
  # Chip
2
2
 
3
- `WChip` is a short label in a colored box, such as a tag on a card or the status of a row. The `text` prop is the label; the default slot replaces it, e.g. to add an icon.
3
+ `WChip` is a short label in a colored box, such as a tag on a card or the status of a row. The `text` prop is the label and `icon` puts an icon before it; the default slot replaces the label.
4
4
 
5
- The color comes from `semanticType`. The classes behind each type are set once per app with `setSemanticTypeChipMap` from `eco-vue-js/dist/utils/SemanticType` — [WCounter](./counter.md) reads the same map. `skeleton` shows a placeholder the size of a chip, and a form or an area can set it for everything inside — see [Conventions](../guide/conventions.md).
5
+ The color comes from `semanticType`. The classes behind each type are set once per app with `setSemanticTypeChipMap` from `eco-vue-js/dist/utils/SemanticType` — [WCounter](./counter.md) reads the same map. `soft` turns the box into a rounded pill with a tinted background and colored text, for a status that sits on its own rather than inside a dense row; its classes come from `setSemanticTypeChipSoftMap`. `skeleton` shows a placeholder the size of a chip, and a form or an area can set it for everything inside — see [Conventions](../guide/conventions.md).
6
6
 
7
7
  ```vue
8
8
  <template>
@@ -17,10 +17,28 @@ The color comes from `semanticType`. The classes behind each type are set once p
17
17
  </div>
18
18
 
19
19
  <div class="flex flex-wrap items-center gap-2">
20
- <WChip :semantic-type="SemanticType.POSITIVE">
21
- <IconCheck class="square-3.5" />
22
- Watered
23
- </WChip>
20
+ <WChip
21
+ v-for="type in semanticTypes"
22
+ :key="type"
23
+ :text="type"
24
+ :semantic-type="type"
25
+ soft
26
+ />
27
+ </div>
28
+
29
+ <div class="flex flex-wrap items-center gap-2">
30
+ <WChip
31
+ text="Watered"
32
+ :semantic-type="SemanticType.POSITIVE"
33
+ :icon="IconCheck"
34
+ />
35
+
36
+ <WChip
37
+ text="Watered"
38
+ :semantic-type="SemanticType.POSITIVE"
39
+ :icon="IconCheck"
40
+ soft
41
+ />
24
42
 
25
43
  <WChip
26
44
  text="Gardener"
@@ -66,6 +84,8 @@ import WChip from 'eco-vue-js/dist/components/Chip/WChip.vue'
66
84
  | --- | --- | --- | --- |
67
85
  | `text` | `string` | — | Label of the chip. The default slot replaces it. |
68
86
  | `semanticType` | `SemanticType` | `SemanticType.SECONDARY` | Color scheme of the chip. |
87
+ | `soft` | `boolean` | — | Renders a rounded pill with a tinted background and colored text instead of a filled box. |
88
+ | `icon` | `SVGComponent` | — | Icon shown before the label. |
69
89
  | `skeleton` | `boolean` | — | Shows a placeholder instead of the chip. When unset, inherits the skeleton state provided by a parent. |
70
90
 
71
91
  #### Slots
@@ -212,7 +212,7 @@ To make a theme from a description — "a warm, rounded theme for a finance dash
212
212
 
213
213
  | Key | Default | Controls |
214
214
  | --- | --- | --- |
215
- | `color-primary` | `oklch(55% 0.17 286.8)` | Fills, links, focus and selection |
215
+ | `color-primary` | `oklch(62% 0.17 286.8)` | Fills, links, focus and selection |
216
216
  | `color-primary-dark` | `primary` | The same in dark mode |
217
217
  | `color-primary-light` | `primary` 10% over `default` | List headers and the backdrop in light mode |
218
218
  | `color-primary-darkest` | `primary-dark` 20% over `default-dark` | The same in dark mode |
@@ -220,10 +220,10 @@ To make a theme from a description — "a warm, rounded theme for a finance dash
220
220
  | `color-default` | `#ffffff` | Page and card background in light mode |
221
221
  | `color-default-dark` | `oklch(21% 0.006 285.885)`, zinc's 900 | Page and card background in dark mode |
222
222
  | `color-black-default` | `#333333` | Main text in light mode |
223
- | `color-negative` | `oklch(57% 0.2 24.1)` | Errors and destructive actions |
224
- | `color-positive` | `oklch(54% 0.148 150)` | Success |
225
- | `color-warning` | `oklch(82% 0.16 85)` | Warnings; black text on the fill |
226
- | `color-info` | `oklch(55% 0.16 262.6)` | Information |
223
+ | `color-negative` | `oklch(64% 0.2 24.1)` | Errors and destructive actions |
224
+ | `color-positive` | `oklch(69% 0.148 150)` | Success |
225
+ | `color-warning` | `oklch(85% 0.16 85)` | Warnings; black text on the fill |
226
+ | `color-info` | `oklch(63% 0.16 262.6)` | Information |
227
227
  | `color-*-dark` | the light value | Each status color in dark mode |
228
228
  | `color-data-*` | Tailwind's hues at mid lightness: white text on all but orange and amber; gray is the scale's 500 | [Data palette](#data-palette) |
229
229
  | `role-*`, `role-*-dark` | see [Roles](#roles) | One role, per mode |
package/docs/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # eco-vue-js
2
2
 
3
- > Vue 3 UI kit with Tailwind v4 — components, utilities, icons and recipes. These are the docs of version 0.25.0, the one installed next to them. Start with Getting started and Conventions; each component page lists its props, events and slots with examples.
3
+ > Vue 3 UI kit with Tailwind v4 — components, utilities, icons and recipes. These are the docs of version 0.25.2, the one installed next to them. Start with Getting started and Conventions; each component page lists its props, events and slots with examples.
4
4
 
5
5
  Release notes, for what changed between versions: https://github.com/rsmple/eco-vue-js/releases. The docs site, with live demos: https://rsmple.github.io/eco-vue-js/
6
6
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.25.0",
7
+ "version": "0.25.2",
8
8
  "homepage": "https://rsmple.github.io/eco-vue-js/",
9
9
  "dependencies": {
10
10
  "@stylistic/eslint-plugin": "5.10.0",
@@ -12,7 +12,7 @@
12
12
  * Fills are dark enough for white text and light enough to stand out on the dark surface, so one value serves both
13
13
  * modes; text shades and the text on fills are derived from them (roles.css).
14
14
  */
15
- --color-primary: oklch(55% 0.17 286.8);
15
+ --color-primary: oklch(62% 0.17 286.8);
16
16
  --color-primary-dark: var(--color-primary);
17
17
  --color-primary-light: color-mix(in oklab, var(--color-primary) 7%, var(--color-default));
18
18
  --color-primary-darkest: color-mix(in oklab, var(--color-primary-dark) 10%, var(--color-default-dark));
@@ -46,13 +46,17 @@
46
46
  --color-slate-900: oklch(20.8% 0.042 265.755);
47
47
  --color-slate-950: oklch(12.9% 0.042 264.695);
48
48
 
49
- --color-negative: oklch(57% 0.2 24.1);
49
+ /*
50
+ * Status fills are lighter than the primary: white text on them keeps APCA Lc 64–69 rather than 80, still clear of
51
+ * the 60 it needs, so a badge or an alert doesn't weigh more than the content beside it.
52
+ */
53
+ --color-negative: oklch(64% 0.2 24.1);
50
54
  --color-negative-dark: var(--color-negative);
51
- --color-positive: oklch(54% 0.148 150);
55
+ --color-positive: oklch(69% 0.148 150);
52
56
  --color-positive-dark: var(--color-positive);
53
- --color-warning: oklch(82% 0.16 85);
57
+ --color-warning: oklch(85% 0.16 85);
54
58
  --color-warning-dark: var(--color-warning);
55
- --color-info: oklch(55% 0.16 262.6);
59
+ --color-info: oklch(63% 0.16 262.6);
56
60
  --color-info-dark: var(--color-info);
57
61
 
58
62
  /*