@sula-tech/webcomponents 0.7.5 → 0.8.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.
Files changed (40) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sula-avatar_18.cjs.entry.js +268 -15
  3. package/dist/cjs/sula-avatar_18.cjs.entry.js.map +1 -1
  4. package/dist/cjs/webcomponents.cjs.js +1 -1
  5. package/dist/collection/components/sula-radio-button/sula-radio-button.css +1 -1
  6. package/dist/collection/components/sula-radio-button/sula-radio-button.js +3 -3
  7. package/dist/collection/components/sula-radio-button/sula-radio-button.js.map +1 -1
  8. package/dist/collection/components/sula-textarea/sula-textarea.css +1 -1
  9. package/dist/collection/components/sula-textarea/sula-textarea.js +19 -9
  10. package/dist/collection/components/sula-textarea/sula-textarea.js.map +1 -1
  11. package/dist/collection/components/sula-textfield/sula-textfield.js +31 -2
  12. package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
  13. package/dist/collection/components/sula-textfield/sula-textfield.stories.js +22 -0
  14. package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
  15. package/dist/components/p-B85MJLTf.js +8 -0
  16. package/dist/components/p-B85MJLTf.js.map +1 -0
  17. package/dist/components/{p-DoGc7jLn.js → p-DrUsgtsv.js} +3 -6
  18. package/dist/components/p-DrUsgtsv.js.map +1 -0
  19. package/dist/components/sula-button.js +1 -1
  20. package/dist/components/sula-loader.js +1 -1
  21. package/dist/components/sula-radio-button.js +4 -4
  22. package/dist/components/sula-radio-button.js.map +1 -1
  23. package/dist/components/sula-textarea.js +20 -10
  24. package/dist/components/sula-textarea.js.map +1 -1
  25. package/dist/components/sula-textfield.js +248 -2
  26. package/dist/components/sula-textfield.js.map +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/sula-avatar_18.entry.js +268 -15
  29. package/dist/esm/sula-avatar_18.entry.js.map +1 -1
  30. package/dist/esm/webcomponents.js +1 -1
  31. package/dist/types/components/sula-textarea/sula-textarea.d.ts +2 -0
  32. package/dist/types/components/sula-textfield/sula-textfield.d.ts +7 -0
  33. package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +9 -0
  34. package/dist/types/components.d.ts +8 -0
  35. package/dist/webcomponents/{p-e86b2271.entry.js → p-bc1f174c.entry.js} +238 -30
  36. package/dist/webcomponents/p-bc1f174c.entry.js.map +1 -0
  37. package/dist/webcomponents/webcomponents.esm.js +4 -2
  38. package/package.json +3 -2
  39. package/dist/components/p-DoGc7jLn.js.map +0 -1
  40. package/dist/webcomponents/p-e86b2271.entry.js.map +0 -1
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["sula-avatar_18",[[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"selectedItem":[32],"showItems":[32],"isFocused":[32]},[[4,"click","handleDocumentClick"]],{"value":["handleValueChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
19
+ return bootstrapLazy([["sula-avatar_18",[[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"selectedItem":[32],"showItems":[32],"isFocused":[32]},[[4,"click","handleDocumentClick"]],{"value":["handleValueChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"isFocus":[32]}],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
20
20
  });
21
21
  //# sourceMappingURL=webcomponents.js.map
22
22
 
@@ -48,6 +48,7 @@ export declare class SulaTextarea {
48
48
  isActive: boolean;
49
49
  textValue: string;
50
50
  textareaIsFocused: boolean;
51
+ labelPadding: number;
51
52
  watchValueHandler(newValue: string): void;
52
53
  textareaElement: HTMLTextAreaElement;
53
54
  node?: HTMLElement;
@@ -59,6 +60,7 @@ export declare class SulaTextarea {
59
60
  componentDidLoad(): void;
60
61
  setLabelUp(): void;
61
62
  setLabelDown(): void;
63
+ updateLabelPadding(): void;
62
64
  changeElementsStyle(): void;
63
65
  handleTextareaClick: () => void;
64
66
  handleTextareaChanges: (event: InputEvent) => void;
@@ -41,6 +41,12 @@ export declare class SulaTextfield {
41
41
  * Event emitted when input value changes.
42
42
  */
43
43
  valueChanged: EventEmitter<string>;
44
+ /**
45
+ * The textfield mask pattern
46
+ * The mask pattern should follow the VMasker pattern format
47
+ * More info: https://github.com/vanilla-masker/vanilla-masker?tab=readme-ov-file#custom-pattern
48
+ */
49
+ maskPattern?: string;
44
50
  /**
45
51
  * Event emitted when input is focused.
46
52
  */
@@ -69,6 +75,7 @@ export declare class SulaTextfield {
69
75
  handleBlur: () => void;
70
76
  handleInputFocus: () => void;
71
77
  handleIconClick: (event: MouseEvent) => void;
78
+ handleInputMask(): void;
72
79
  handlePasswordIconClicked(): void;
73
80
  getInputIcon(): string;
74
81
  render(): any;
@@ -41,6 +41,14 @@ declare const _default: {
41
41
  required: boolean;
42
42
  };
43
43
  };
44
+ maskPattern: {
45
+ control: string;
46
+ defaultValue: string;
47
+ description: string;
48
+ type: {
49
+ required: boolean;
50
+ };
51
+ };
44
52
  placeholder: {
45
53
  control: string;
46
54
  defaultValue: string;
@@ -104,6 +112,7 @@ declare const _default: {
104
112
  };
105
113
  export default _default;
106
114
  export declare const Default: any;
115
+ export declare const WithMask: any;
107
116
  export declare const WithValue: any;
108
117
  export declare const WithHelpText: any;
109
118
  export declare const WithMaxLength: any;
@@ -413,6 +413,10 @@ export namespace Components {
413
413
  * The textfield label
414
414
  */
415
415
  "label": string;
416
+ /**
417
+ * The textfield mask pattern The mask pattern should follow the VMasker pattern format More info: https://github.com/vanilla-masker/vanilla-masker?tab=readme-ov-file#custom-pattern
418
+ */
419
+ "maskPattern"?: string;
416
420
  /**
417
421
  * The textfield max length
418
422
  */
@@ -1281,6 +1285,10 @@ declare namespace LocalJSX {
1281
1285
  * The textfield label
1282
1286
  */
1283
1287
  "label"?: string;
1288
+ /**
1289
+ * The textfield mask pattern The mask pattern should follow the VMasker pattern format More info: https://github.com/vanilla-masker/vanilla-masker?tab=readme-ov-file#custom-pattern
1290
+ */
1291
+ "maskPattern"?: string;
1284
1292
  /**
1285
1293
  * The textfield max length
1286
1294
  */