@bspk/ui 1.3.7 → 1.3.8

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 (35) hide show
  1. package/dist/components/Checkbox/CheckboxExample.js +4 -1
  2. package/dist/components/Checkbox/CheckboxExample.js.map +1 -1
  3. package/dist/components/Input/InputExample.js +1 -0
  4. package/dist/components/Input/InputExample.js.map +1 -1
  5. package/dist/components/InputNumber/InputNumberExample.js +3 -0
  6. package/dist/components/InputNumber/InputNumberExample.js.map +1 -1
  7. package/dist/components/InputPhone/InputPhoneExample.js +3 -0
  8. package/dist/components/InputPhone/InputPhoneExample.js.map +1 -1
  9. package/dist/components/Password/PasswordExample.d.ts +3 -0
  10. package/dist/components/Password/PasswordExample.js +6 -0
  11. package/dist/components/Password/PasswordExample.js.map +1 -0
  12. package/dist/components/Radio/RadioExample.js +4 -1
  13. package/dist/components/Radio/RadioExample.js.map +1 -1
  14. package/dist/components/SearchBar/SearchBarExample.js +3 -0
  15. package/dist/components/SearchBar/SearchBarExample.js.map +1 -1
  16. package/dist/components/Select/SelectExample.js +1 -0
  17. package/dist/components/Select/SelectExample.js.map +1 -1
  18. package/dist/components/Switch/SwitchExample.js +4 -1
  19. package/dist/components/Switch/SwitchExample.js.map +1 -1
  20. package/dist/components/Textarea/TextareaExample.js +3 -0
  21. package/dist/components/Textarea/TextareaExample.js.map +1 -1
  22. package/dist/components/TimePicker/TimePickerExample.js +3 -0
  23. package/dist/components/TimePicker/TimePickerExample.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/components/Checkbox/CheckboxExample.tsx +4 -3
  26. package/src/components/Input/InputExample.tsx +1 -0
  27. package/src/components/InputNumber/InputNumberExample.tsx +3 -0
  28. package/src/components/InputPhone/InputPhoneExample.tsx +3 -0
  29. package/src/components/Password/PasswordExample.tsx +8 -0
  30. package/src/components/Radio/RadioExample.tsx +4 -3
  31. package/src/components/SearchBar/SearchBarExample.tsx +3 -0
  32. package/src/components/Select/SelectExample.tsx +1 -0
  33. package/src/components/Switch/SwitchExample.tsx +4 -1
  34. package/src/components/Textarea/TextareaExample.tsx +3 -0
  35. package/src/components/TimePicker/TimePickerExample.tsx +3 -1
@@ -1,5 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const CheckboxExample = {
3
- render: ({ props, Component }) => (_jsx(Component, { ...props, "aria-label": props['aria-label'] || 'checkbox aria-label' })),
3
+ defaultState: {
4
+ 'aria-label': 'checkbox aria-label',
5
+ },
6
+ render: ({ props, Component }) => _jsx(Component, { ...props }),
4
7
  };
5
8
  //# sourceMappingURL=CheckboxExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxExample.js","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC5D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC9B,KAAC,SAAS,OAAK,KAAK,gBAAc,KAAK,CAAC,YAAY,CAAC,IAAI,qBAAqB,GAAI,CACrF;CACJ,CAAC"}
1
+ {"version":3,"file":"CheckboxExample.js","sourceRoot":"","sources":["../../../src/components/Checkbox/CheckboxExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC5D,YAAY,EAAE;QACV,YAAY,EAAE,qBAAqB;KACtC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const InputExample = {
3
3
  defaultState: {
4
4
  label: 'Property Description',
5
+ 'aria-label': 'input aria-label',
5
6
  description: 'This is a description of the property.',
6
7
  placeholder: 'Waterfront condo with great views',
7
8
  },
@@ -1 +1 @@
1
- {"version":3,"file":"InputExample.js","sourceRoot":"","sources":["../../../src/components/Input/InputExample.tsx"],"names":[],"mappings":";AAKA,MAAM,CAAC,MAAM,YAAY,GAAwC;IAC7D,YAAY,EAAE;QACV,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,wCAAwC;QACrD,WAAW,EAAE,mCAAmC;KACnD;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;IAC1D,OAAO,EAAE;QACL;YACI,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE;gBACP,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,SAAS;gBACnB,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,2BAA2B;aAC3C;SACJ;QACD;YACI,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE;gBACP,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,GAAG;gBACb,WAAW,EAAE,GAAG;gBAChB,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,gCAAgC;aAChD;SACJ;QACD;YACI,KAAK,EAAE,WAAW;YAClB,SAAS,EAAE;gBACP,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,GAAG;gBAChB,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,4BAA4B;aAC5C;SACJ;KACJ;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,KAAK;KACd;CACJ,CAAC"}
1
+ {"version":3,"file":"InputExample.js","sourceRoot":"","sources":["../../../src/components/Input/InputExample.tsx"],"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ultState: {
4
+ 'aria-label': 'input number aria-label',
5
+ },
3
6
  render: ({ props, Component }) => _jsx(Component, { ...props }),
4
7
  };
5
8
  //# sourceMappingURL=InputNumberExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputNumberExample.js","sourceRoot":"","sources":["../../../src/components/InputNumber/InputNumberExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IAClE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
1
+ {"version":3,"file":"InputNumberExample.js","sourceRoot":"","sources":["../../../src/components/InputNumber/InputNumberExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IAClE,YAAY,EAAE;QACV,YAAY,EAAE,yBAAyB;KAC1C;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const presets = [];
3
3
  export const InputPhoneExample = {
4
+ defaultState: {
5
+ 'aria-label': 'input phone aria-label',
6
+ },
4
7
  render: ({ props, Component }) => _jsx(Component, { ...props }),
5
8
  variants: true,
6
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InputPhoneExample.js","sourceRoot":"","sources":["../../../src/components/InputPhone/InputPhoneExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,OAAO,GAA8B,EAAE,CAAC;AAErD,MAAM,CAAC,MAAM,iBAAiB,GAAsC;IAChE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;IAC1D,QAAQ,EAAE,IAAI;CACjB,CAAC"}
1
+ {"version":3,"file":"InputPhoneExample.js","sourceRoot":"","sources":["../../../src/components/InputPhone/InputPhoneExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,OAAO,GAA8B,EAAE,CAAC;AAErD,MAAM,CAAC,MAAM,iBAAiB,GAAsC;IAChE,YAAY,EAAE;QACV,YAAY,EAAE,wBAAwB;KACzC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;IAC1D,QAAQ,EAAE,IAAI;CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PasswordProps } from '.';
2
+ import { ComponentExample } from '-/utils/demo';
3
+ export declare const PasswordExample: ComponentExample<PasswordProps>;
@@ -0,0 +1,6 @@
1
+ export const PasswordExample = {
2
+ defaultState: {
3
+ 'aria-label': 'password aria-label',
4
+ },
5
+ };
6
+ //# sourceMappingURL=PasswordExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasswordExample.js","sourceRoot":"","sources":["../../../src/components/Password/PasswordExample.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC5D,YAAY,EAAE;QACV,YAAY,EAAE,qBAAqB;KACtC;CACJ,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createUid } from '../../utils/demo';
3
3
  export const RadioExample = {
4
- render: ({ props, Component }) => (_jsx(Component, { ...props, "aria-label": props['aria-label'] || 'radio aria-label', name: createUid('radio') })),
4
+ defaultState: {
5
+ 'aria-label': 'radio aria-label',
6
+ },
7
+ render: ({ props, Component }) => _jsx(Component, { ...props, name: createUid('radio') }),
5
8
  };
6
9
  //# sourceMappingURL=RadioExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioExample.js","sourceRoot":"","sources":["../../../src/components/Radio/RadioExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,CAAC,MAAM,YAAY,GAAqB;IAC1C,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC9B,KAAC,SAAS,OAAK,KAAK,gBAAc,KAAK,CAAC,YAAY,CAAC,IAAI,kBAAkB,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAI,CAC5G;CACJ,CAAC"}
1
+ {"version":3,"file":"RadioExample.js","sourceRoot":"","sources":["../../../src/components/Radio/RadioExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,CAAC,MAAM,YAAY,GAAqB;IAC1C,YAAY,EAAE;QACV,YAAY,EAAE,kBAAkB;KACnC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAI;CACvF,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { randomString } from '../../utils/random';
3
3
  export const SearchBarExample = {
4
+ defaultState: {
5
+ 'aria-label': 'search bar aria-label',
6
+ },
4
7
  render: ({ props, Component }) => {
5
8
  return _jsx(Component, { ...props, id: `search-bar-${randomString(8)}` });
6
9
  },
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBarExample.js","sourceRoot":"","sources":["../../../src/components/SearchBar/SearchBarExample.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,gBAAgB,GAAqC;IAC9D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7B,OAAO,KAAC,SAAS,OAAK,KAAK,EAAE,EAAE,EAAE,cAAc,YAAY,CAAC,CAAC,CAAC,EAAE,GAAI,CAAC;IACzE,CAAC;CACJ,CAAC"}
1
+ {"version":3,"file":"SearchBarExample.js","sourceRoot":"","sources":["../../../src/components/SearchBar/SearchBarExample.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,gBAAgB,GAAqC;IAC9D,YAAY,EAAE;QACV,YAAY,EAAE,uBAAuB;KACxC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7B,OAAO,KAAC,SAAS,OAAK,KAAK,EAAE,EAAE,EAAE,cAAc,YAAY,CAAC,CAAC,CAAC,EAAE,GAAI,CAAC;IACzE,CAAC;CACJ,CAAC"}
@@ -150,6 +150,7 @@ export const SelectExample = {
150
150
  options: DEFAULT_OPTIONS,
151
151
  scrollLimit: 5,
152
152
  value: '',
153
+ 'aria-label': 'select aria-label',
153
154
  },
154
155
  render: ({ props, Component, preset }) => _jsx(Component, { ...props }, preset?.label),
155
156
  presets,
@@ -1 +1 @@
1
- {"version":3,"file":"SelectExample.js","sourceRoot":"","sources":["../../../src/components/Select/SelectExample.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAGvC,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,CACpD,KAAC,GAAG,cAAE,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;QACpC,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;KAClB,CAAC,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,EAAE,GAAO,CAClC,CAAC;AACF,MAAM,eAAe,GAAG;IACpB,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE;IACjC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,KAAK,CAAe;IACtF,OAAO;CACV,CAAC"}
@@ -1,5 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const SwitchExample = {
3
- render: ({ props, Component }) => _jsx(Component, { ...props, "aria-label": props['aria-label'] || 'switch aria-label' }),
3
+ defaultState: {
4
+ 'aria-label': 'switch aria-label',
5
+ },
6
+ render: ({ props, Component }) => _jsx(Component, { ...props }),
4
7
  };
5
8
  //# sourceMappingURL=SwitchExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchExample.js","sourceRoot":"","sources":["../../../src/components/Switch/SwitchExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,aAAa,GAAkC;IACxD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,gBAAc,KAAK,CAAC,YAAY,CAAC,IAAI,mBAAmB,GAAI;CACrH,CAAC"}
1
+ {"version":3,"file":"SwitchExample.js","sourceRoot":"","sources":["../../../src/components/Switch/SwitchExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,aAAa,GAAkC;IACxD,YAAY,EAAE;QACV,YAAY,EAAE,mBAAmB;KACpC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
@@ -1,5 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const TextareaExample = {
3
+ defaultState: {
4
+ 'aria-label': 'textarea aria-label',
5
+ },
3
6
  render: ({ props, Component }) => _jsx(Component, { ...props }),
4
7
  };
5
8
  //# sourceMappingURL=TextareaExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaExample.js","sourceRoot":"","sources":["../../../src/components/Textarea/TextareaExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC5D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
1
+ {"version":3,"file":"TextareaExample.js","sourceRoot":"","sources":["../../../src/components/Textarea/TextareaExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC5D,YAAY,EAAE;QACV,YAAY,EAAE,qBAAqB;KACtC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export const TimePickerExample = {
3
3
  variants: false,
4
+ defaultState: {
5
+ 'aria-label': 'time picker aria-label',
6
+ },
4
7
  render: ({ props, Component }) => _jsx(Component, { ...props }),
5
8
  };
6
9
  //# sourceMappingURL=TimePickerExample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimePickerExample.js","sourceRoot":"","sources":["../../../src/components/TimePicker/TimePickerExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,iBAAiB,GAAsC;IAChE,QAAQ,EAAE,KAAK;IAEf,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
1
+ {"version":3,"file":"TimePickerExample.js","sourceRoot":"","sources":["../../../src/components/TimePicker/TimePickerExample.tsx"],"names":[],"mappings":";AAGA,MAAM,CAAC,MAAM,iBAAiB,GAAsC;IAChE,QAAQ,EAAE,KAAK;IACf,YAAY,EAAE;QACV,YAAY,EAAE,wBAAwB;KACzC;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI;CAC7D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bspk/ui",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "license": "CC-BY-4.0",
5
5
  "type": "module",
6
6
  "files": [
@@ -2,7 +2,8 @@ import { CheckboxProps } from '.';
2
2
  import { ComponentExample } from '-/utils/demo';
3
3
 
4
4
  export const CheckboxExample: ComponentExample<CheckboxProps> = {
5
- render: ({ props, Component }) => (
6
- <Component {...props} aria-label={props['aria-label'] || 'checkbox aria-label'} />
7
- ),
5
+ defaultState: {
6
+ 'aria-label': 'checkbox aria-label',
7
+ },
8
+ render: ({ props, Component }) => <Component {...props} />,
8
9
  };
@@ -6,6 +6,7 @@ export type InputExampleProps = InputProps & { label: string; description?: stri
6
6
  export const InputExample: ComponentExample<InputExampleProps> = {
7
7
  defaultState: {
8
8
  label: 'Property Description',
9
+ 'aria-label': 'input aria-label',
9
10
  description: 'This is a description of the property.',
10
11
  placeholder: 'Waterfront condo with great views',
11
12
  },
@@ -2,5 +2,8 @@ import { InputNumberProps } from './InputNumber';
2
2
  import { ComponentExample } from '-/utils/demo';
3
3
 
4
4
  export const InputNumberExample: ComponentExample<InputNumberProps> = {
5
+ defaultState: {
6
+ 'aria-label': 'input number aria-label',
7
+ },
5
8
  render: ({ props, Component }) => <Component {...props} />,
6
9
  };
@@ -4,6 +4,9 @@ import { ComponentExample, Preset } from '-/utils/demo';
4
4
  export const presets: Preset<InputPhoneProps>[] = [];
5
5
 
6
6
  export const InputPhoneExample: ComponentExample<InputPhoneProps> = {
7
+ defaultState: {
8
+ 'aria-label': 'input phone aria-label',
9
+ },
7
10
  render: ({ props, Component }) => <Component {...props} />,
8
11
  variants: true,
9
12
  };
@@ -0,0 +1,8 @@
1
+ import { PasswordProps } from '.';
2
+ import { ComponentExample } from '-/utils/demo';
3
+
4
+ export const PasswordExample: ComponentExample<PasswordProps> = {
5
+ defaultState: {
6
+ 'aria-label': 'password aria-label',
7
+ },
8
+ };
@@ -1,7 +1,8 @@
1
1
  import { ComponentExample, createUid } from '-/utils/demo';
2
2
 
3
3
  export const RadioExample: ComponentExample = {
4
- render: ({ props, Component }) => (
5
- <Component {...props} aria-label={props['aria-label'] || 'radio aria-label'} name={createUid('radio')} />
6
- ),
4
+ defaultState: {
5
+ 'aria-label': 'radio aria-label',
6
+ },
7
+ render: ({ props, Component }) => <Component {...props} name={createUid('radio')} />,
7
8
  };
@@ -3,6 +3,9 @@ import { ComponentExample } from '-/utils/demo';
3
3
  import { randomString } from '-/utils/random';
4
4
 
5
5
  export const SearchBarExample: ComponentExample<SearchBarProps> = {
6
+ defaultState: {
7
+ 'aria-label': 'search bar aria-label',
8
+ },
6
9
  render: ({ props, Component }) => {
7
10
  return <Component {...props} id={`search-bar-${randomString(8)}`} />;
8
11
  },
@@ -156,6 +156,7 @@ export const SelectExample: ComponentExample<SelectProps> = {
156
156
  options: DEFAULT_OPTIONS,
157
157
  scrollLimit: 5,
158
158
  value: '',
159
+ 'aria-label': 'select aria-label',
159
160
  },
160
161
  render: ({ props, Component, preset }) => <Component key={preset?.label} {...props} />,
161
162
  presets,
@@ -2,5 +2,8 @@ import { SwitchProps } from '.';
2
2
  import { ComponentExample } from '-/utils/demo';
3
3
 
4
4
  export const SwitchExample: ComponentExample<SwitchProps> = {
5
- render: ({ props, Component }) => <Component {...props} aria-label={props['aria-label'] || 'switch aria-label'} />,
5
+ defaultState: {
6
+ 'aria-label': 'switch aria-label',
7
+ },
8
+ render: ({ props, Component }) => <Component {...props} />,
6
9
  };
@@ -2,5 +2,8 @@ import { TextareaProps } from '.';
2
2
  import { ComponentExample } from '-/utils/demo';
3
3
 
4
4
  export const TextareaExample: ComponentExample<TextareaProps> = {
5
+ defaultState: {
6
+ 'aria-label': 'textarea aria-label',
7
+ },
5
8
  render: ({ props, Component }) => <Component {...props} />,
6
9
  };
@@ -3,6 +3,8 @@ import { ComponentExample } from '-/utils/demo';
3
3
 
4
4
  export const TimePickerExample: ComponentExample<TimePickerProps> = {
5
5
  variants: false,
6
-
6
+ defaultState: {
7
+ 'aria-label': 'time picker aria-label',
8
+ },
7
9
  render: ({ props, Component }) => <Component {...props} />,
8
10
  };