@fluentui/react-switch 0.0.0-nightly-20220510-0420.1 → 0.0.0-nightly-20220511-0419.1

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.
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/react-switch",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 10 May 2022 04:31:49 GMT",
6
- "tag": "@fluentui/react-switch_v0.0.0-nightly-20220510-0420.1",
7
- "version": "0.0.0-nightly-20220510-0420.1",
5
+ "date": "Wed, 11 May 2022 04:31:09 GMT",
6
+ "tag": "@fluentui/react-switch_v0.0.0-nightly-20220511-0419.1",
7
+ "version": "0.0.0-nightly-20220511-0419.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -19,35 +19,41 @@
19
19
  "commit": "0fac2d7a6f35c5fcebaf30da68b9604410fe0eb9",
20
20
  "comment": "Updated react-label package version to RC."
21
21
  },
22
+ {
23
+ "author": "martinhochel@microsoft.com",
24
+ "package": "@fluentui/react-switch",
25
+ "commit": "eb1084fd607c0d1086f9d465168be5822daa5e40",
26
+ "comment": "feat: ship rolluped only dts"
27
+ },
22
28
  {
23
29
  "author": "beachball",
24
30
  "package": "@fluentui/react-switch",
25
- "comment": "Bump @fluentui/react-label to v0.0.0-nightly-20220510-0420.1",
26
- "commit": "23be9682b20fba2ea59bbb882e2225b9bc81133a"
31
+ "comment": "Bump @fluentui/react-label to v0.0.0-nightly-20220511-0419.1",
32
+ "commit": "03a572202e24fe35d789f3009dc25922a002061e"
27
33
  },
28
34
  {
29
35
  "author": "beachball",
30
36
  "package": "@fluentui/react-switch",
31
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220510-0420.1",
32
- "commit": "23be9682b20fba2ea59bbb882e2225b9bc81133a"
37
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220511-0419.1",
38
+ "commit": "03a572202e24fe35d789f3009dc25922a002061e"
33
39
  },
34
40
  {
35
41
  "author": "beachball",
36
42
  "package": "@fluentui/react-switch",
37
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220510-0420.1",
38
- "commit": "23be9682b20fba2ea59bbb882e2225b9bc81133a"
43
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220511-0419.1",
44
+ "commit": "03a572202e24fe35d789f3009dc25922a002061e"
39
45
  },
40
46
  {
41
47
  "author": "beachball",
42
48
  "package": "@fluentui/react-switch",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220510-0420.1",
44
- "commit": "23be9682b20fba2ea59bbb882e2225b9bc81133a"
49
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220511-0419.1",
50
+ "commit": "03a572202e24fe35d789f3009dc25922a002061e"
45
51
  },
46
52
  {
47
53
  "author": "beachball",
48
54
  "package": "@fluentui/react-switch",
49
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220510-0420.1",
50
- "commit": "23be9682b20fba2ea59bbb882e2225b9bc81133a"
55
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220511-0419.1",
56
+ "commit": "03a572202e24fe35d789f3009dc25922a002061e"
51
57
  }
52
58
  ]
53
59
  }
package/CHANGELOG.md CHANGED
@@ -1,23 +1,24 @@
1
1
  # Change Log - @fluentui/react-switch
2
2
 
3
- This log was last generated on Tue, 10 May 2022 04:31:49 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 11 May 2022 04:31:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20220510-0420.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v0.0.0-nightly-20220510-0420.1)
7
+ ## [0.0.0-nightly-20220511-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v0.0.0-nightly-20220511-0419.1)
8
8
 
9
- Tue, 10 May 2022 04:31:49 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.9..@fluentui/react-switch_v0.0.0-nightly-20220510-0420.1)
9
+ Wed, 11 May 2022 04:31:09 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-switch_v9.0.0-rc.9..@fluentui/react-switch_v0.0.0-nightly-20220511-0419.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by email not defined)
15
15
  - Updated react-label package version to RC. ([PR #22865](https://github.com/microsoft/fluentui/pull/22865) by esteban.230@hotmail.com)
16
- - Bump @fluentui/react-label to v0.0.0-nightly-20220510-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/23be9682b20fba2ea59bbb882e2225b9bc81133a) by beachball)
17
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20220510-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/23be9682b20fba2ea59bbb882e2225b9bc81133a) by beachball)
18
- - Bump @fluentui/react-theme to v0.0.0-nightly-20220510-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/23be9682b20fba2ea59bbb882e2225b9bc81133a) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20220510-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/23be9682b20fba2ea59bbb882e2225b9bc81133a) by beachball)
20
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220510-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/23be9682b20fba2ea59bbb882e2225b9bc81133a) by beachball)
16
+ - feat: ship rolluped only dts ([PR #22874](https://github.com/microsoft/fluentui/pull/22874) by martinhochel@microsoft.com)
17
+ - Bump @fluentui/react-label to v0.0.0-nightly-20220511-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/03a572202e24fe35d789f3009dc25922a002061e) by beachball)
18
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20220511-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/03a572202e24fe35d789f3009dc25922a002061e) by beachball)
19
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20220511-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/03a572202e24fe35d789f3009dc25922a002061e) by beachball)
20
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20220511-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/03a572202e24fe35d789f3009dc25922a002061e) by beachball)
21
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220511-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/03a572202e24fe35d789f3009dc25922a002061e) by beachball)
21
22
 
22
23
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-switch_v9.0.0-rc.9)
23
24
 
File without changes
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-switch",
3
- "version": "0.0.0-nightly-20220510-0420.1",
3
+ "version": "0.0.0-nightly-20220511-0419.1",
4
4
  "description": "Fluent UI React Switch component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "lib/index.d.ts",
7
+ "typings": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -28,15 +28,15 @@
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
30
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20220510-0420.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20220511-0419.1",
32
32
  "@fluentui/scripts": "^1.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "@fluentui/react-icons": "^2.0.166-rc.3",
36
- "@fluentui/react-label": "0.0.0-nightly-20220510-0420.1",
37
- "@fluentui/react-tabster": "0.0.0-nightly-20220510-0420.1",
38
- "@fluentui/react-theme": "0.0.0-nightly-20220510-0420.1",
39
- "@fluentui/react-utilities": "0.0.0-nightly-20220510-0420.1",
36
+ "@fluentui/react-label": "0.0.0-nightly-20220511-0419.1",
37
+ "@fluentui/react-tabster": "0.0.0-nightly-20220511-0419.1",
38
+ "@fluentui/react-theme": "0.0.0-nightly-20220511-0419.1",
39
+ "@fluentui/react-utilities": "0.0.0-nightly-20220511-0419.1",
40
40
  "@griffel/react": "1.0.3",
41
41
  "tslib": "^2.1.0"
42
42
  },
package/lib/Switch.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Switch/index';
@@ -1,6 +0,0 @@
1
- import type { SwitchProps } from './Switch.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Switches enable users to trigger an option on or off through pressing the component.
5
- */
6
- export declare const Switch: ForwardRefComponent<SwitchProps>;
@@ -1,65 +0,0 @@
1
- import * as React from 'react';
2
- import { Label } from '@fluentui/react-label';
3
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
4
- export declare type SwitchSlots = {
5
- /**
6
- * The root element of the Switch.
7
- *
8
- * The root slot receives the `className` and `style` specified directly on the `<Switch>` tag.
9
- * All other native props will be applied to the primary slot: `input`.
10
- */
11
- root: NonNullable<Slot<'div'>>;
12
- /**
13
- * The track and the thumb sliding over it indicating the on and off status of the Switch.
14
- */
15
- indicator: NonNullable<Slot<'div'>>;
16
- /**
17
- * Hidden input that handles the Switch's functionality.
18
- *
19
- * This is the PRIMARY slot: all native properties specified directly on the `<Switch>` tag will be applied to this
20
- * slot, except `className` and `style`, which remain on the root slot.
21
- */
22
- input: NonNullable<Slot<'input'>>;
23
- /**
24
- * The Switch's label.
25
- */
26
- label?: Slot<typeof Label>;
27
- };
28
- declare type SwitchCommons = {
29
- /**
30
- * Defines the controlled checked state of the Switch.
31
- * If passed, Switch ignores the `defaultChecked` property.
32
- * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
33
- * correct value based on handling `onChange` events and re-rendering.
34
- * @default false
35
- */
36
- checked?: boolean;
37
- /**
38
- * The position of the label relative to the Switch.
39
- *
40
- * @default after
41
- */
42
- labelPosition: 'above' | 'after' | 'before';
43
- };
44
- export declare type SwitchOnChangeData = {
45
- checked: boolean;
46
- };
47
- /**
48
- * Switch Props
49
- */
50
- export declare type SwitchProps = Omit<ComponentProps<Partial<SwitchSlots>, 'input'>, 'onChange'> & Partial<SwitchCommons> & {
51
- /**
52
- * Defines whether the Switch is initially in a checked state or not when rendered.
53
- * @default false
54
- */
55
- defaultChecked?: boolean;
56
- /**
57
- * Callback to be called when the checked state value changes.
58
- */
59
- onChange?: (ev: React.ChangeEvent<HTMLInputElement>, data: SwitchOnChangeData) => void;
60
- };
61
- /**
62
- * State used in rendering Switch
63
- */
64
- export declare type SwitchState = ComponentState<SwitchSlots> & SwitchCommons;
65
- export {};
@@ -1,5 +0,0 @@
1
- export * from './Switch';
2
- export * from './Switch.types';
3
- export * from './renderSwitch';
4
- export * from './useSwitch';
5
- export * from './useSwitchStyles';
@@ -1,5 +0,0 @@
1
- import type { SwitchState } from './Switch.types';
2
- /**
3
- * Render a Switch component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderSwitch_unstable: (state: SwitchState) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { SwitchProps, SwitchState } from './Switch.types';
3
- /**
4
- * Create the state required to render Switch.
5
- *
6
- * The returned state can be modified with hooks such as useSwitchStyles_unstable,
7
- * before being passed to renderSwitch_unstable.
8
- *
9
- * @param props - props from this instance of Switch
10
- * @param ref - reference to `<input>` element of Switch
11
- */
12
- export declare const useSwitch_unstable: (props: SwitchProps, ref: React.Ref<HTMLInputElement>) => SwitchState;
@@ -1,11 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { SwitchSlots, SwitchState } from './Switch.types';
3
- export declare const switchClassNames: SlotClassNames<SwitchSlots>;
4
- /**
5
- * @deprecated Use `switchClassNames.root` instead.
6
- */
7
- export declare const switchClassName: string;
8
- /**
9
- * Apply styling to the Switch slots based on the state
10
- */
11
- export declare const useSwitchStyles_unstable: (state: SwitchState) => SwitchState;
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { Switch, renderSwitch_unstable, switchClassName, switchClassNames, useSwitchStyles_unstable, useSwitch_unstable, } from './Switch';
2
- export type { SwitchOnChangeData, SwitchProps, SwitchSlots, SwitchState } from './Switch';
@@ -1 +0,0 @@
1
- export * from './components/Switch/index';
@@ -1,6 +0,0 @@
1
- import type { SwitchProps } from './Switch.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * Switches enable users to trigger an option on or off through pressing the component.
5
- */
6
- export declare const Switch: ForwardRefComponent<SwitchProps>;
@@ -1,65 +0,0 @@
1
- import * as React from 'react';
2
- import { Label } from '@fluentui/react-label';
3
- import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
4
- export declare type SwitchSlots = {
5
- /**
6
- * The root element of the Switch.
7
- *
8
- * The root slot receives the `className` and `style` specified directly on the `<Switch>` tag.
9
- * All other native props will be applied to the primary slot: `input`.
10
- */
11
- root: NonNullable<Slot<'div'>>;
12
- /**
13
- * The track and the thumb sliding over it indicating the on and off status of the Switch.
14
- */
15
- indicator: NonNullable<Slot<'div'>>;
16
- /**
17
- * Hidden input that handles the Switch's functionality.
18
- *
19
- * This is the PRIMARY slot: all native properties specified directly on the `<Switch>` tag will be applied to this
20
- * slot, except `className` and `style`, which remain on the root slot.
21
- */
22
- input: NonNullable<Slot<'input'>>;
23
- /**
24
- * The Switch's label.
25
- */
26
- label?: Slot<typeof Label>;
27
- };
28
- declare type SwitchCommons = {
29
- /**
30
- * Defines the controlled checked state of the Switch.
31
- * If passed, Switch ignores the `defaultChecked` property.
32
- * This should only be used if the checked state is to be controlled at a higher level and there is a plan to pass the
33
- * correct value based on handling `onChange` events and re-rendering.
34
- * @default false
35
- */
36
- checked?: boolean;
37
- /**
38
- * The position of the label relative to the Switch.
39
- *
40
- * @default after
41
- */
42
- labelPosition: 'above' | 'after' | 'before';
43
- };
44
- export declare type SwitchOnChangeData = {
45
- checked: boolean;
46
- };
47
- /**
48
- * Switch Props
49
- */
50
- export declare type SwitchProps = Omit<ComponentProps<Partial<SwitchSlots>, 'input'>, 'onChange'> & Partial<SwitchCommons> & {
51
- /**
52
- * Defines whether the Switch is initially in a checked state or not when rendered.
53
- * @default false
54
- */
55
- defaultChecked?: boolean;
56
- /**
57
- * Callback to be called when the checked state value changes.
58
- */
59
- onChange?: (ev: React.ChangeEvent<HTMLInputElement>, data: SwitchOnChangeData) => void;
60
- };
61
- /**
62
- * State used in rendering Switch
63
- */
64
- export declare type SwitchState = ComponentState<SwitchSlots> & SwitchCommons;
65
- export {};
@@ -1,5 +0,0 @@
1
- export * from './Switch';
2
- export * from './Switch.types';
3
- export * from './renderSwitch';
4
- export * from './useSwitch';
5
- export * from './useSwitchStyles';
@@ -1,5 +0,0 @@
1
- import type { SwitchState } from './Switch.types';
2
- /**
3
- * Render a Switch component by passing the state defined props to the appropriate slots.
4
- */
5
- export declare const renderSwitch_unstable: (state: SwitchState) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import type { SwitchProps, SwitchState } from './Switch.types';
3
- /**
4
- * Create the state required to render Switch.
5
- *
6
- * The returned state can be modified with hooks such as useSwitchStyles_unstable,
7
- * before being passed to renderSwitch_unstable.
8
- *
9
- * @param props - props from this instance of Switch
10
- * @param ref - reference to `<input>` element of Switch
11
- */
12
- export declare const useSwitch_unstable: (props: SwitchProps, ref: React.Ref<HTMLInputElement>) => SwitchState;
@@ -1,11 +0,0 @@
1
- import type { SlotClassNames } from '@fluentui/react-utilities';
2
- import type { SwitchSlots, SwitchState } from './Switch.types';
3
- export declare const switchClassNames: SlotClassNames<SwitchSlots>;
4
- /**
5
- * @deprecated Use `switchClassNames.root` instead.
6
- */
7
- export declare const switchClassName: string;
8
- /**
9
- * Apply styling to the Switch slots based on the state
10
- */
11
- export declare const useSwitchStyles_unstable: (state: SwitchState) => SwitchState;
@@ -1,2 +0,0 @@
1
- export { Switch, renderSwitch_unstable, switchClassName, switchClassNames, useSwitchStyles_unstable, useSwitch_unstable, } from './Switch';
2
- export type { SwitchOnChangeData, SwitchProps, SwitchSlots, SwitchState } from './Switch';