@kumori/aurora-wui-components 0.0.337-dev4696.8 → 0.0.337-dev4696.9

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,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { ResourceBoxFormItem } from './axebow-box-form.models.js';
2
+ import { ResourceBoxFormItem, ResourceBoxFormTextSize } from './axebow-box-form.models.js';
3
3
  export * from './axebow-box-form.models.js';
4
4
  export declare class AxebowResourceBoxForm extends LitElement {
5
5
  static styles: import('lit').CSSResult[];
@@ -10,6 +10,10 @@ export declare class AxebowResourceBoxForm extends LitElement {
10
10
  trashDisabled: boolean;
11
11
  trashTooltip: string;
12
12
  items: ResourceBoxFormItem[];
13
+ labelTextSize: ResourceBoxFormTextSize;
14
+ labelTextColor: string;
15
+ previewTextSize: ResourceBoxFormTextSize;
16
+ previewTextColor: string;
13
17
  private _openMenuId;
14
18
  private _menuOpenUpwards;
15
19
  private _isTrashHovered;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-box-form.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-box-form/axebow-box-form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uDAAuD,CAAC;AAC/D,OAAO,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,6BAA6B,CAAC;AAErC,cAAc,6BAA6B,CAAC;AAE5C,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,4BAQX;IAE0B,UAAU,SAAU;IACpB,WAAW,SAA2B;IACrC,SAAS,UAAQ;IACjB,QAAQ,UAAS;IACjB,aAAa,UAAS;IACvB,YAAY,SAAM;IACnB,KAAK,EAAE,mBAAmB,EAAE,CAAM;IAEpD,OAAO,CAAC,WAAW,CAAuB;IAC1C,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AAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,eAAe,CAAS;IAEzC,iBAAiB;IAKjB,oBAAoB;IAKpB,OAAO,CAAC,mBAAmB,CAKzB;IAEF,OAAO,CAAC,iBAAiB,CAEvB;IAEF,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAmCnB,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,YAAY;IAsPpB,MAAM;CAmDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,qBAAqB,CAAC;KACnD;CACF"}
@@ -1,4 +1,5 @@
1
1
  export type ResourceBoxFormItemType = 'disabled' | 'enabled' | 'text';
2
+ export type ResourceBoxFormTextSize = 'text-xs' | 'text-sm' | 'text-base';
2
3
  export type ResourceBoxFormItemMenuAction = 'copy' | 'download' | 'custom';
3
4
  export interface ResourceBoxFormItemMenuOption {
4
5
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-box-form.models.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-box-form/axebow-box-form.models.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAEtE,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC/C"}
1
+ {"version":3,"file":"axebow-box-form.models.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-box-form/axebow-box-form.models.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAEtE,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1E,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC/C"}
@@ -1,10 +1,13 @@
1
1
  import { LitElement } from 'lit';
2
2
  export type FormPanelFieldStyle = 'Placeholder' | 'Filled';
3
+ export type FormPanelFieldTextSize = 'text-xs' | 'text-sm' | 'text-base';
3
4
  export declare class AxebowFormPanelField extends LitElement {
4
5
  static styles: import('lit').CSSResult[];
5
6
  styleVariant: FormPanelFieldStyle;
6
7
  disabled: boolean;
7
8
  label: string;
9
+ labelTextSize: FormPanelFieldTextSize;
10
+ labelTextColor: string;
8
11
  value: string;
9
12
  mandatory: boolean;
10
13
  showDropdown: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-form-panel-field.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-form-panel-field/axebow-form-panel-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE3D,qBACa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,4BAiBX;IAE0B,YAAY,EAAE,mBAAmB,CAAiB;IACjD,QAAQ,UAAS;IAClB,KAAK,SAAiB;IACtB,KAAK,SAAM;IACV,SAAS,UAAQ;IACjB,YAAY,UAAS;IACrB,aAAa,UAAS;IACvB,eAAe,SAA4B;IAC1C,cAAc,UAAS;IACxB,UAAU,SAAkB;IAC5B,SAAS,SAAM;IACd,uBAAuB,UAAS;IACjC,mBAAmB,SAAiB;IAEhE,oDAAoD;IACzB,OAAO,EAAE,MAAM,EAAE,CAAM;IAEzC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,YAAY,CAAS;IAEtC,iBAAiB;IAOjB,oBAAoB;IAOpB,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,cAAc;IAoCtB,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,oBAAoB;IAkB5B,OAAO,CAAC,aAAa;IAqBrB,MAAM;CA4IP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,yBAAyB,EAAE,oBAAoB,CAAC;KACjD;CACF"}
1
+ {"version":3,"file":"axebow-form-panel-field.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-form-panel-field/axebow-form-panel-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AAEvC,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAQzE,qBACa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,4BAiBX;IAE0B,YAAY,EAAE,mBAAmB,CAAiB;IACjD,QAAQ,UAAS;IAClB,KAAK,SAAiB;IACtB,aAAa,EAAE,sBAAsB,CAAa;IAClD,cAAc,SAAwB;IACtC,KAAK,SAAM;IACV,SAAS,UAAQ;IACjB,YAAY,UAAS;IACrB,aAAa,UAAS;IACvB,eAAe,SAA4B;IAC1C,cAAc,UAAS;IACxB,UAAU,SAAkB;IAC5B,SAAS,SAAM;IACd,uBAAuB,UAAS;IACjC,mBAAmB,SAAiB;IAEhE,oDAAoD;IACzB,OAAO,EAAE,MAAM,EAAE,CAAM;IAEzC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,YAAY,CAAS;IAEtC,iBAAiB;IAOjB,oBAAoB;IAOpB,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,cAAc;IAoCtB,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,oBAAoB;IAkB5B,OAAO,CAAC,aAAa;IAqBrB,MAAM;CA+IP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,yBAAyB,EAAE,oBAAoB,CAAC;KACjD;CACF"}
package/dist/index.js CHANGED
@@ -13072,12 +13072,19 @@ __decorate([state()], AxebowStatus.prototype, "_isTrashHovered", void 0);
13072
13072
  AxebowStatus = __decorate([customElement("axebow-status")], AxebowStatus);
13073
13073
  //#endregion
13074
13074
  //#region src/components/axebow-form-panel-field/axebow-form-panel-field.ts
13075
+ var LABEL_TEXT_SIZE_CLASS = {
13076
+ "text-xs": "text-xs",
13077
+ "text-sm": "text-sm",
13078
+ "text-base": "text-base"
13079
+ };
13075
13080
  var AxebowFormPanelField = class AxebowFormPanelField extends LitElement {
13076
13081
  constructor(..._args) {
13077
13082
  super(..._args);
13078
13083
  this.styleVariant = "Placeholder";
13079
13084
  this.disabled = false;
13080
13085
  this.label = "Field label";
13086
+ this.labelTextSize = "text-xs";
13087
+ this.labelTextColor = "var(--axebow-gray)";
13081
13088
  this.value = "";
13082
13089
  this.mandatory = true;
13083
13090
  this.showDropdown = false;
@@ -13261,7 +13268,10 @@ var AxebowFormPanelField = class AxebowFormPanelField extends LitElement {
13261
13268
  >
13262
13269
  <div class="flex flex-col justify-center flex-1 min-w-0">
13263
13270
  <!-- Top Label -->
13264
- <div class="flex items-center text-xs text-(--axebow-gray) leading-tight select-none">
13271
+ <div
13272
+ class="flex items-center ${LABEL_TEXT_SIZE_CLASS[this.labelTextSize] ?? LABEL_TEXT_SIZE_CLASS["text-xs"]} leading-tight select-none"
13273
+ style="color: ${this.labelTextColor};"
13274
+ >
13265
13275
  ${this.mandatory ? html`<span class="text-(--axebow-error) font-bold mr-0.5">*</span>` : ""}
13266
13276
  <span class="truncate">${this.label}</span>
13267
13277
  </div>
@@ -13369,6 +13379,8 @@ var AxebowFormPanelField = class AxebowFormPanelField extends LitElement {
13369
13379
  __decorate([property({ type: String })], AxebowFormPanelField.prototype, "styleVariant", void 0);
13370
13380
  __decorate([property({ type: Boolean })], AxebowFormPanelField.prototype, "disabled", void 0);
13371
13381
  __decorate([property({ type: String })], AxebowFormPanelField.prototype, "label", void 0);
13382
+ __decorate([property({ type: String })], AxebowFormPanelField.prototype, "labelTextSize", void 0);
13383
+ __decorate([property({ type: String })], AxebowFormPanelField.prototype, "labelTextColor", void 0);
13372
13384
  __decorate([property({ type: String })], AxebowFormPanelField.prototype, "value", void 0);
13373
13385
  __decorate([property({ type: Boolean })], AxebowFormPanelField.prototype, "mandatory", void 0);
13374
13386
  __decorate([property({ type: Boolean })], AxebowFormPanelField.prototype, "showDropdown", void 0);
@@ -13668,6 +13680,11 @@ __decorate([state()], AxebowCopyIcon.prototype, "_hovered", void 0);
13668
13680
  AxebowCopyIcon = __decorate([customElement("axebow-copy-icon")], AxebowCopyIcon);
13669
13681
  //#endregion
13670
13682
  //#region src/components/axebow-box-form/axebow-box-form.ts
13683
+ var PREVIEW_TEXT_SIZE_CLASS = {
13684
+ "text-xs": "text-xs",
13685
+ "text-sm": "text-sm",
13686
+ "text-base": "text-base"
13687
+ };
13671
13688
  var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
13672
13689
  constructor(..._args) {
13673
13690
  super(..._args);
@@ -13678,6 +13695,10 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
13678
13695
  this.trashDisabled = false;
13679
13696
  this.trashTooltip = "";
13680
13697
  this.items = [];
13698
+ this.labelTextSize = "text-xs";
13699
+ this.labelTextColor = "var(--axebow-gray)";
13700
+ this.previewTextSize = "text-sm";
13701
+ this.previewTextColor = "var(--axebow-gray)";
13681
13702
  this._openMenuId = null;
13682
13703
  this._menuOpenUpwards = false;
13683
13704
  this._isTrashHovered = false;
@@ -13802,17 +13823,19 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
13802
13823
  const hasMenu = !!item.menuOptions && item.menuOptions.length > 0 && !!item.menuId;
13803
13824
  const hasContent = !!textToCopy;
13804
13825
  const isMenuOpen = this._openMenuId === item.menuId && hasContent;
13826
+ const previewSizeClass = PREVIEW_TEXT_SIZE_CLASS[this.previewTextSize] ?? PREVIEW_TEXT_SIZE_CLASS["text-sm"];
13805
13827
  if (itemType === "text") return html`
13806
13828
  <div class="flex items-start justify-between gap-2 w-full relative pt-1">
13807
13829
  <div class="flex flex-col gap-0.5 min-w-0 flex-1">
13808
13830
  <span
13809
- class="text-sm font-semibold text-(--axebow-strong-gray) leading-tight flex items-center gap-1 break-all"
13831
+ class="${previewSizeClass} font-semibold text-(--axebow-strong-gray) leading-tight flex items-center gap-1 break-all"
13810
13832
  >
13811
13833
  ${item.required ? html`<span class="text-(--axebow-error) font-bold">* </span>` : ""}
13812
13834
  ${item.tag}
13813
13835
  </span>
13814
13836
  ${item.value ? html`<p
13815
- class="m-0 text-sm text-(--axebow-gray) leading-snug break-all font-normal"
13837
+ class="m-0 ${previewSizeClass} leading-snug break-all font-normal"
13838
+ style="color: ${this.previewTextColor};"
13816
13839
  >
13817
13840
  ${item.value}
13818
13841
  </p>` : ""}
@@ -13896,6 +13919,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
13896
13919
  class="w-full"
13897
13920
  style="width: 100%;"
13898
13921
  .label=${item.tag}
13922
+ .labelTextSize=${this.labelTextSize}
13923
+ .labelTextColor=${this.labelTextColor}
13899
13924
  .value=${item.value || ""}
13900
13925
  .copyValue=${item.copyValue !== void 0 ? item.copyValue : ""}
13901
13926
  .mandatory=${Boolean(item.required)}
@@ -14024,6 +14049,10 @@ __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "dele
14024
14049
  __decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "trashDisabled", void 0);
14025
14050
  __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "trashTooltip", void 0);
14026
14051
  __decorate([property({ type: Array })], AxebowResourceBoxForm.prototype, "items", void 0);
14052
+ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "labelTextSize", void 0);
14053
+ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "labelTextColor", void 0);
14054
+ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "previewTextSize", void 0);
14055
+ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "previewTextColor", void 0);
14027
14056
  __decorate([state()], AxebowResourceBoxForm.prototype, "_openMenuId", void 0);
14028
14057
  __decorate([state()], AxebowResourceBoxForm.prototype, "_menuOpenUpwards", void 0);
14029
14058
  __decorate([state()], AxebowResourceBoxForm.prototype, "_isTrashHovered", void 0);