@nordicsemiconductor/pc-nrfconnect-shared 220.0.0 → 221.0.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 (36) hide show
  1. package/Changelog.md +13 -0
  2. package/config/tailwind.config.js +5 -1
  3. package/package.json +1 -1
  4. package/release_notes.md +6 -4
  5. package/scripts/check-app-properties.ts +1 -1
  6. package/scripts/check-for-typescript.ts +1 -1
  7. package/scripts/create-source.ts +1 -1
  8. package/scripts/esbuild.ts +1 -1
  9. package/scripts/installHusky.ts +1 -1
  10. package/scripts/is-releasable.ts +1 -1
  11. package/scripts/latest-changelog-entry.ts +1 -1
  12. package/scripts/nordic-publish.js +1 -1
  13. package/scripts/nordic-publish.ts +1 -1
  14. package/scripts/nrfconnect-license.ts +1 -1
  15. package/scripts/postinstall.ts +1 -1
  16. package/scripts/prepare-shared-release.ts +1 -1
  17. package/src/Dropdown/Dropdown.tsx +15 -4
  18. package/src/Group/Group.tsx +1 -1
  19. package/src/InlineInput/InlineInput.tsx +3 -0
  20. package/src/InlineInput/NumberInlineInput.tsx +23 -0
  21. package/typings/generated/scripts/check-app-properties.d.ts +1 -1
  22. package/typings/generated/scripts/check-for-typescript.d.ts +1 -1
  23. package/typings/generated/scripts/create-source.d.ts +1 -1
  24. package/typings/generated/scripts/esbuild.d.ts +1 -1
  25. package/typings/generated/scripts/installHusky.d.ts +1 -1
  26. package/typings/generated/scripts/is-releasable.d.ts +1 -1
  27. package/typings/generated/scripts/latest-changelog-entry.d.ts +1 -1
  28. package/typings/generated/scripts/nordic-publish.d.ts +1 -1
  29. package/typings/generated/scripts/nrfconnect-license.d.ts +1 -1
  30. package/typings/generated/scripts/postinstall.d.ts +1 -1
  31. package/typings/generated/scripts/prepare-shared-release.d.ts +1 -1
  32. package/typings/generated/src/Dropdown/Dropdown.d.ts +2 -1
  33. package/typings/generated/src/Dropdown/Dropdown.d.ts.map +1 -1
  34. package/typings/generated/src/InlineInput/InlineInput.d.ts +1 -0
  35. package/typings/generated/src/InlineInput/InlineInput.d.ts.map +1 -1
  36. package/typings/generated/src/InlineInput/NumberInlineInput.d.ts.map +1 -1
package/Changelog.md CHANGED
@@ -7,6 +7,19 @@ This project does _not_ adhere to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
8
8
  every new version is a new major version.
9
9
 
10
+ ## 221.0.0 - 2025-07-21
11
+
12
+ ### Added
13
+
14
+ - Custom tailwind font-size `text-2xs` (0.625rem/10px).
15
+ - Narrower Dropdown variant.
16
+ - Automatic character limit derivation for number input components based on
17
+ their range constraints.
18
+
19
+ ### Fixed
20
+
21
+ - Running build scripts failed on Windows.
22
+
10
23
  ## 220.0.0 - 2025-07-16
11
24
 
12
25
  ### Added
@@ -16,7 +16,11 @@ module.exports = {
16
16
  ],
17
17
  theme: {
18
18
  colors,
19
- extend: {},
19
+ extend: {
20
+ fontSize: {
21
+ '2xs': '0.625rem', // 10px
22
+ },
23
+ },
20
24
  },
21
25
  corePlugins: {
22
26
  preflight: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "220.0.0",
3
+ "version": "221.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
package/release_notes.md CHANGED
@@ -1,8 +1,10 @@
1
1
  ### Added
2
2
 
3
- - Option to persist the Group collapse state.
3
+ - Custom tailwind font-size `text-2xs` (0.625rem/10px).
4
+ - Narrower Dropdown variant.
5
+ - Automatic character limit derivation for number input components based on
6
+ their range constraints.
4
7
 
5
- ### Changed
8
+ ### Fixed
6
9
 
7
- - Use `tsx` instead of `ts-node`.
8
- - Switched releasing shared from Azure to GitHub Actions.
10
+ - Running build scripts failed on Windows.
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2022 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2015 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2025 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  /*
3
3
  * Copyright (c) 2015 Nordic Semiconductor ASA
4
4
  *
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2022 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2025 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2025 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  "use strict";var Cd=Object.create;var Us=Object.defineProperty;var gd=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var _d=Object.getPrototypeOf,Bd=Object.prototype.hasOwnProperty;var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var yd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dd(e))!Bd.call(t,i)&&i!==r&&Us(t,i,{get:()=>e[i],enumerable:!(n=gd(e,i))||n.enumerable});return t};var Dt=(t,e,r)=>(r=t!=null?Cd(_d(t)):{},yd(e||!t||!t.__esModule?Us(r,"default",{value:t,enumerable:!0}):r,t));var jr=A(pi=>{var Cn=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},hi=class extends Cn{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};pi.CommanderError=Cn;pi.InvalidArgumentError=hi});var gn=A(Fi=>{var{InvalidArgumentError:vd}=jr(),Ai=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new vd(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function bd(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Fi.Argument=Ai;Fi.humanReadableArgName=bd});var mi=A(Hs=>{var{humanReadableArgName:xd}=gn(),Ei=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>xd(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,a=2;function o(x,C){if(C){let T=`${x.padEnd(n+a)}${C}`;return r.wrap(T,i-s,n+a)}return x}function u(x){return x.join(`
3
3
  `).replace(/^/gm," ".repeat(s))}let c=[`Usage: ${r.commandUsage(e)}`,""],l=r.commandDescription(e);l.length>0&&(c=c.concat([r.wrap(l,i,0),""]));let f=r.visibleArguments(e).map(x=>o(r.argumentTerm(x),r.argumentDescription(x)));f.length>0&&(c=c.concat(["Arguments:",u(f),""]));let m=r.visibleOptions(e).map(x=>o(r.optionTerm(x),r.optionDescription(x)));if(m.length>0&&(c=c.concat(["Options:",u(m),""])),this.showGlobalOptions){let x=r.visibleGlobalOptions(e).map(C=>o(r.optionTerm(C),r.optionDescription(C)));x.length>0&&(c=c.concat(["Global Options:",u(x),""]))}let F=r.visibleCommands(e).map(x=>o(r.subcommandTerm(x),r.subcommandDescription(x)));return F.length>0&&(c=c.concat(["Commands:",u(F),""])),c.join(`
4
4
  `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",a=new RegExp(`[\\n][${s}]+`);if(e.match(a))return e;let o=r-n;if(o<i)return e;let u=e.slice(0,n),c=e.slice(n).replace(`\r
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2015 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2021 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2015 Nordic Semiconductor ASA
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
 
3
3
  /*
4
4
  * Copyright (c) 2023 Nordic Semiconductor ASA
@@ -28,6 +28,7 @@ export type DropdownProps<T> = {
28
28
  selectedItem: DropdownItem<T>;
29
29
  numItemsBeforeScroll?: number;
30
30
  className?: string;
31
+ size?: 'sm' | 'md';
31
32
  };
32
33
 
33
34
  export default <T,>({
@@ -42,6 +43,7 @@ export default <T,>({
42
43
  selectedItem,
43
44
  numItemsBeforeScroll = 0,
44
45
  className = '',
46
+ size = 'md',
45
47
  }: DropdownProps<T>) => {
46
48
  const [isActive, setIsActive] = useState(false);
47
49
 
@@ -74,7 +76,12 @@ export default <T,>({
74
76
  minWidth ? '' : 'tw-w-full',
75
77
  transparentButtonBg
76
78
  ? 'tw-bg-transparent'
77
- : 'tw-h-8 tw-bg-gray-700 tw-px-2 tw-text-white'
79
+ : classNames(
80
+ 'tw-bg-gray-700 tw-text-white',
81
+ size === 'sm'
82
+ ? 'tw-h-6 tw-pl-2 tw-pr-1 tw-text-2xs'
83
+ : 'tw-h-8 tw-px-2'
84
+ )
78
85
  )}
79
86
  onClick={() => setIsActive(!isActive)}
80
87
  disabled={disabled}
@@ -85,8 +92,9 @@ export default <T,>({
85
92
  : selectedItem.label}
86
93
  </span>
87
94
  <span
88
- className={`mdi mdi-chevron-down tw-text-lg/none ${classNames(
89
- isActive && 'tw-rotate-180'
95
+ className={`mdi mdi-chevron-down ${classNames(
96
+ isActive && 'tw-rotate-180',
97
+ size === 'sm' ? 'tw-text-base' : 'tw-text-lg'
90
98
  )}`}
91
99
  />
92
100
  </button>
@@ -116,7 +124,10 @@ export default <T,>({
116
124
  {items.map(item => (
117
125
  <button
118
126
  type="button"
119
- className="tw-bg-transparent tw-clear-both tw-block tw-h-6 tw-w-full tw-whitespace-nowrap tw-border-0 tw-px-2 tw-py-1 tw-text-left tw-font-normal tw-text-white hover:tw-bg-gray-600 focus:tw-bg-gray-600"
127
+ className={classNames(
128
+ 'tw-bg-transparent tw-clear-both tw-block tw-h-6 tw-w-full tw-whitespace-nowrap tw-border-0 tw-px-2 tw-py-1 tw-text-left tw-font-normal tw-text-white hover:tw-bg-gray-600 focus:tw-bg-gray-600',
129
+ size === 'sm' && 'tw-text-2xs'
130
+ )}
120
131
  key={JSON.stringify(item.value)}
121
132
  onClick={() => onClickItem(item)}
122
133
  >
@@ -155,7 +155,7 @@ export const Group = ({
155
155
  }}
156
156
  >
157
157
  <p
158
- className="tw-text-[10px] tw-uppercase tw-tracking-[0.5ex]"
158
+ className="tw-text-2xs tw-uppercase tw-tracking-[0.5ex]"
159
159
  title={title}
160
160
  >
161
161
  {heading}
@@ -62,6 +62,7 @@ interface Props {
62
62
  onValidityChanged?: (validity: boolean) => void;
63
63
  preventDefaultInvalidStyle?: boolean;
64
64
  minSize?: number;
65
+ maxLength?: number;
65
66
  }
66
67
 
67
68
  const InlineInput = React.forwardRef<HTMLInputElement, Props>(
@@ -80,6 +81,7 @@ const InlineInput = React.forwardRef<HTMLInputElement, Props>(
80
81
  onValidityChanged,
81
82
  preventDefaultInvalidStyle,
82
83
  minSize,
84
+ maxLength,
83
85
  },
84
86
  ref
85
87
  ) => {
@@ -189,6 +191,7 @@ const InlineInput = React.forwardRef<HTMLInputElement, Props>(
189
191
  onKeyUp={onChangeCompleteIfValid}
190
192
  onKeyDown={startKeyboardEvents}
191
193
  onClick={stopPropagation}
194
+ maxLength={maxLength}
192
195
  />
193
196
  );
194
197
  }
@@ -97,6 +97,28 @@ const handleInfinityToNumber = (val: string) => {
97
97
  return Number(val);
98
98
  };
99
99
 
100
+ const calculateMaxCharactersFromRange = (range: RangeOrValues): number => {
101
+ if (isValues(range)) {
102
+ return Math.max(
103
+ ...range.map(v =>
104
+ Number.isFinite(v)
105
+ ? handleInfinityToString(v).length
106
+ : v.toString().length
107
+ )
108
+ );
109
+ }
110
+
111
+ const { min, max, decimals = 0 } = range;
112
+ const minStr = Number.isFinite(min)
113
+ ? min.toFixed(decimals)
114
+ : handleInfinityToString(min);
115
+ const maxStr = Number.isFinite(max)
116
+ ? max.toFixed(decimals)
117
+ : handleInfinityToString(max);
118
+
119
+ return Math.max(minStr.length, maxStr.length);
120
+ };
121
+
100
122
  export default ({
101
123
  disabled,
102
124
  value,
@@ -166,6 +188,7 @@ export default ({
166
188
  )
167
189
  : undefined
168
190
  }
191
+ maxLength={calculateMaxCharactersFromRange(range)}
169
192
  />
170
193
  );
171
194
  };
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  declare const runChecks: ({ checkChangelogHasCurrentEntry, }: {
3
3
  checkChangelogHasCurrentEntry: boolean;
4
4
  }) => void;
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=check-for-typescript.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=create-source.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=esbuild.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=installHusky.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=is-releasable.d.ts.map
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export declare const getLatestEntry: (changelog?: string) => {
3
3
  header: string;
4
4
  content: string;
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=nordic-publish.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=nrfconnect-license.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=postinstall.d.ts.map
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env -S npx tsx
1
+ #!/usr/bin/env tsx
2
2
  export {};
3
3
  //# sourceMappingURL=prepare-shared-release.d.ts.map
@@ -15,7 +15,8 @@ export type DropdownProps<T> = {
15
15
  selectedItem: DropdownItem<T>;
16
16
  numItemsBeforeScroll?: number;
17
17
  className?: string;
18
+ size?: 'sm' | 'md';
18
19
  };
19
- declare const _default: <T>({ id, label, defaultButtonLabel, items, onSelect, transparentButtonBg, minWidth, disabled, selectedItem, numItemsBeforeScroll, className, }: DropdownProps<T>) => JSX.Element;
20
+ declare const _default: <T>({ id, label, defaultButtonLabel, items, onSelect, transparentButtonBg, minWidth, disabled, selectedItem, numItemsBeforeScroll, className, size, }: DropdownProps<T>) => JSX.Element;
20
21
  export default _default;
21
22
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM;IACpC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;;AAEF,wBAgGE"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM;IACpC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,CAAC;;AAEF,wBA0GE"}
@@ -15,6 +15,7 @@ interface Props {
15
15
  onValidityChanged?: (validity: boolean) => void;
16
16
  preventDefaultInvalidStyle?: boolean;
17
17
  minSize?: number;
18
+ maxLength?: number;
18
19
  }
19
20
  declare const InlineInput: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
20
21
  export default InlineInput;
@@ -1 +1 @@
1
- {"version":3,"file":"InlineInput.d.ts","sourceRoot":"","sources":["../../../../src/InlineInput/InlineInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,qBAAqB,CAAC;AA0B7B,eAAO,MAAM,sCAAsC,wDAEf,IAAI,MAUvC,CAAC;AAEF,UAAU,KAAK;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,yBAAyB,CAAC,EAAE,MAAM,MAAM,CAAC;IACzC,yBAAyB,CAAC,EAAE,MAAM,MAAM,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,WAAW,gFAgIhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"InlineInput.d.ts","sourceRoot":"","sources":["../../../../src/InlineInput/InlineInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,qBAAqB,CAAC;AA0B7B,eAAO,MAAM,sCAAsC,wDAEf,IAAI,MAUvC,CAAC;AAEF,UAAU,KAAK;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,yBAAyB,CAAC,EAAE,MAAM,MAAM,CAAC;IACzC,yBAAyB,CAAC,EAAE,MAAM,MAAM,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,gFAkIhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInlineInput.d.ts","sourceRoot":"","sources":["../../../../src/InlineInput/NumberInlineInput.tsx"],"names":[],"mappings":";AASA,OAAO,EAIH,aAAa,EAGhB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,4BAA4B,CAAC;AAEpC,UAAU,iBAAiB;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;4LA8EE,iBAAiB;AAbpB,wBAuEE"}
1
+ {"version":3,"file":"NumberInlineInput.d.ts","sourceRoot":"","sources":["../../../../src/InlineInput/NumberInlineInput.tsx"],"names":[],"mappings":";AASA,OAAO,EAIH,aAAa,EAGhB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,4BAA4B,CAAC;AAEpC,UAAU,iBAAiB;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;4LAoGE,iBAAiB;AAbpB,wBAwEE"}