@vitality-ds/components 4.3.4-alpha.0 → 4.4.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.
- package/dist/StatusBadge/StatusBadge.js +4 -2
- package/dist/StatusBadge/StatusBadgeButton.js +4 -2
- package/dist/StatusBadge/StatusBadgeLink.js +4 -2
- package/dist/Switch/constants/labelDirections.js +16 -0
- package/dist/Switch/{constants.js → constants/size.js} +4 -5
- package/dist/Switch/constants/transitions.js +11 -0
- package/dist/Switch/index.js +15 -3
- package/dist/Switch/styled.js +4 -2
- package/dist/Switch/styles/BaseSwitch.styles.js +9 -4
- package/dist/Switch/styles/BaseSwitchLabel.styles.js +23 -0
- package/dist/Switch/styles/BaseSwitchThumb.styles.js +15 -8
- package/dist/components/src/Form/FormField/types.d.ts +4 -0
- package/dist/components/src/Form/FormField/types.d.ts.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadge.d.ts +2 -1
- package/dist/components/src/StatusBadge/StatusBadge.d.ts.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadge.js +2 -2
- package/dist/components/src/StatusBadge/StatusBadge.js.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadgeButton.d.ts +2 -1
- package/dist/components/src/StatusBadge/StatusBadgeButton.d.ts.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadgeButton.js +2 -2
- package/dist/components/src/StatusBadge/StatusBadgeButton.js.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadgeLink.d.ts +2 -1
- package/dist/components/src/StatusBadge/StatusBadgeLink.d.ts.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadgeLink.js +2 -2
- package/dist/components/src/StatusBadge/StatusBadgeLink.js.map +1 -1
- package/dist/components/src/StatusBadge/types.d.ts +5 -0
- package/dist/components/src/StatusBadge/types.d.ts.map +1 -1
- package/dist/components/src/Switch/constants/labelDirections.d.ts +7 -0
- package/dist/components/src/Switch/constants/labelDirections.d.ts.map +1 -0
- package/dist/components/src/Switch/constants/labelDirections.js +13 -0
- package/dist/components/src/Switch/constants/labelDirections.js.map +1 -0
- package/dist/components/src/Switch/constants/size.d.ts +8 -0
- package/dist/components/src/Switch/constants/size.d.ts.map +1 -0
- package/dist/components/src/Switch/{constants.js → constants/size.js} +3 -4
- package/dist/components/src/Switch/constants/size.js.map +1 -0
- package/dist/components/src/Switch/constants/transitions.d.ts +6 -0
- package/dist/components/src/Switch/constants/transitions.d.ts.map +1 -0
- package/dist/components/src/Switch/constants/transitions.js +8 -0
- package/dist/components/src/Switch/constants/transitions.js.map +1 -0
- package/dist/components/src/Switch/index.d.ts +4 -2
- package/dist/components/src/Switch/index.d.ts.map +1 -1
- package/dist/components/src/Switch/index.js +9 -4
- package/dist/components/src/Switch/index.js.map +1 -1
- package/dist/components/src/Switch/styled.d.ts +713 -0
- package/dist/components/src/Switch/styled.d.ts.map +1 -1
- package/dist/components/src/Switch/styled.js +3 -1
- package/dist/components/src/Switch/styled.js.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitch.styles.d.ts.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitch.styles.js +7 -4
- package/dist/components/src/Switch/styles/BaseSwitch.styles.js.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.d.ts +366 -0
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.d.ts.map +1 -0
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.js +20 -0
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.js.map +1 -0
- package/dist/components/src/Switch/styles/BaseSwitchThumb.styles.d.ts.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitchThumb.styles.js +11 -8
- package/dist/components/src/Switch/styles/BaseSwitchThumb.styles.js.map +1 -1
- package/dist/components/src/Switch/types.d.ts +10 -0
- package/dist/components/src/Switch/types.d.ts.map +1 -1
- package/dist/esm/StatusBadge/StatusBadge.js +4 -2
- package/dist/esm/StatusBadge/StatusBadgeButton.js +4 -2
- package/dist/esm/StatusBadge/StatusBadgeLink.js +4 -2
- package/dist/esm/Switch/constants/labelDirections.js +10 -0
- package/dist/esm/Switch/constants/size.js +7 -0
- package/dist/esm/Switch/constants/transitions.js +5 -0
- package/dist/esm/Switch/index.js +16 -4
- package/dist/esm/Switch/styled.js +3 -1
- package/dist/esm/Switch/styles/BaseSwitch.styles.js +9 -4
- package/dist/esm/Switch/styles/BaseSwitchLabel.styles.js +17 -0
- package/dist/esm/Switch/styles/BaseSwitchThumb.styles.js +15 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/components/src/Switch/constants.d.ts +0 -10
- package/dist/components/src/Switch/constants.d.ts.map +0 -1
- package/dist/components/src/Switch/constants.js.map +0 -1
- package/dist/esm/Switch/constants.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/Switch/styled.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/Switch/styled.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAG3B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAAgD,CAAC;AACxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAAyC,CAAC"}
|
|
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.BaseSwitch = exports.BaseSwitchThumb = void 0;
|
|
6
|
+
exports.BaseSwitchLabel = exports.BaseSwitch = exports.BaseSwitchThumb = void 0;
|
|
7
7
|
var react_switch_1 = require("@radix-ui/react-switch");
|
|
8
8
|
var system_1 = require("@vitality-ds/system");
|
|
9
9
|
var BaseSwitch_styles_1 = __importDefault(require("./styles/BaseSwitch.styles"));
|
|
10
|
+
var BaseSwitchLabel_styles_1 = __importDefault(require("./styles/BaseSwitchLabel.styles"));
|
|
10
11
|
var BaseSwitchThumb_styles_1 = __importDefault(require("./styles/BaseSwitchThumb.styles"));
|
|
11
12
|
exports.BaseSwitchThumb = (0, system_1.styled)(react_switch_1.Thumb, BaseSwitchThumb_styles_1.default);
|
|
12
13
|
exports.BaseSwitch = (0, system_1.styled)(react_switch_1.Root, BaseSwitch_styles_1.default);
|
|
14
|
+
exports.BaseSwitchLabel = (0, system_1.styled)("label", BaseSwitchLabel_styles_1.default);
|
|
13
15
|
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/Switch/styled.ts"],"names":[],"mappings":";;;;;;AAAA,uDAGgC;AAChC,8CAA6C;AAE7C,iFAA0D;AAC1D,2FAAoE;AAEvD,QAAA,eAAe,GAAG,IAAA,eAAM,EACnC,oBAAoB,EACpB,gCAAqB,CACtB,CAAC;AAEW,QAAA,UAAU,GAAG,IAAA,eAAM,EAAC,mBAAmB,EAAE,2BAAgB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/Switch/styled.ts"],"names":[],"mappings":";;;;;;AAAA,uDAGgC;AAChC,8CAA6C;AAE7C,iFAA0D;AAC1D,2FAAoE;AACpE,2FAAoE;AAEvD,QAAA,eAAe,GAAG,IAAA,eAAM,EACnC,oBAAoB,EACpB,gCAAqB,CACtB,CAAC;AAEW,QAAA,UAAU,GAAG,IAAA,eAAM,EAAC,mBAAmB,EAAE,2BAAgB,CAAC,CAAC;AAC3D,QAAA,eAAe,GAAG,IAAA,eAAM,EAAC,OAAO,EAAE,gCAAqB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitch.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitch.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BaseSwitch.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitch.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,wBAsFG"}
|
|
@@ -4,8 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var system_1 = require("@vitality-ds/system");
|
|
7
|
-
var
|
|
7
|
+
var size_1 = __importDefault(require("../constants/size"));
|
|
8
|
+
var transitions_1 = __importDefault(require("../constants/transitions"));
|
|
8
9
|
var text = system_1.colorUseCases.text, backgrounds = system_1.colorUseCases.backgrounds, borders = system_1.colorUseCases.borders;
|
|
10
|
+
var DURATION_MS = transitions_1.default.DURATION_MS, TIMING_FUNCTION = transitions_1.default.TIMING_FUNCTION;
|
|
11
|
+
var TRACK_WIDTH = size_1.default.TRACK_WIDTH, TRACK_HEIGHT = size_1.default.TRACK_HEIGHT;
|
|
9
12
|
exports.default = (0, system_1.css)({
|
|
10
13
|
all: "unset",
|
|
11
14
|
boxSizing: "border-box",
|
|
@@ -18,7 +21,7 @@ exports.default = (0, system_1.css)({
|
|
|
18
21
|
lineHeight: 1,
|
|
19
22
|
margin: "0",
|
|
20
23
|
outline: "none",
|
|
21
|
-
transition: "background-color " +
|
|
24
|
+
transition: "background-color " + DURATION_MS + "ms " + TIMING_FUNCTION,
|
|
22
25
|
borderRadius: "$rounded",
|
|
23
26
|
position: "relative",
|
|
24
27
|
cursor: "pointer",
|
|
@@ -42,8 +45,8 @@ exports.default = (0, system_1.css)({
|
|
|
42
45
|
variants: {
|
|
43
46
|
size: {
|
|
44
47
|
"1": {
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
48
|
+
width: TRACK_WIDTH,
|
|
49
|
+
height: TRACK_HEIGHT,
|
|
47
50
|
},
|
|
48
51
|
},
|
|
49
52
|
checked: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitch.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitch.styles.ts"],"names":[],"mappings":";;;;;AAAA,8CAI6B;AAE7B,
|
|
1
|
+
{"version":3,"file":"BaseSwitch.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitch.styles.ts"],"names":[],"mappings":";;;;;AAAA,8CAI6B;AAE7B,2DAAqC;AACrC,yEAAkD;AAE1C,IAAA,IAAI,GAA2B,sBAAa,KAAxC,EAAE,WAAW,GAAc,sBAAa,YAA3B,EAAE,OAAO,GAAK,sBAAa,QAAlB,CAAmB;AAC7C,IAAA,WAAW,GAAsB,qBAAU,YAAhC,EAAE,eAAe,GAAK,qBAAU,gBAAf,CAAgB;AAC5C,IAAA,WAAW,GAAmB,cAAI,YAAvB,EAAE,YAAY,GAAK,cAAI,aAAT,CAAU;AAE3C,kBAAe,IAAA,YAAG,EAAC;IACjB,GAAG,EAAE,OAAO;IACZ,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,UAAU;IAC1B,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,CAAC;IACb,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,sBAAoB,WAAW,WAAM,eAAiB;IAClE,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC;IACtE,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,cAAc,CAC3B;IAED,kBAAkB,EAAE;QAClB,MAAM,EAAE,aAAa;QACrB,YAAY,EAAE;YACZ,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,uBAAuB,CACpC;YACD,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC;SACvE;KACF;IACD,SAAS,EAAE;QACT,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,sBAAsB,CACnC;KACF;IACD,iBAAiB,EAAE;QACjB,wBAAwB,EAAE;YACxB,SAAS,EAAE,eAAa,IAAA,oCAA2B,EACjD,SAAS,EACT,WAAW,CAAC,GAAG,CAChB,oBAAe,IAAA,oCAA2B,EACzC,SAAS,EACT,OAAO,CAAC,SAAS,CAChB;SACJ;KACF;IAED,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,GAAG,EAAE;gBACH,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,YAAY;aACrB;SACF;QACD,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,cAAc,EAAE,YAAY;gBAC5B,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,qBAAqB,CAClC;gBACD,SAAS,EAAE;oBACT,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,sBAAsB,CACnC;iBACF;gBAED,kBAAkB,EAAE;oBAClB,YAAY,EAAE;wBACZ,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,uBAAuB,CACpC;wBACD,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;qBAC7D;iBACF;aACF;SACF;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;KACV;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
declare const _default: import("@stitches/react/types/styled-component").CssComponent<never, import("@stitches/react/types/styled-component").StyledComponentProps<[{
|
|
2
|
+
fontSize: string;
|
|
3
|
+
cursor: string;
|
|
4
|
+
whiteSpace: string;
|
|
5
|
+
textWrap: string;
|
|
6
|
+
flex: number;
|
|
7
|
+
variants: {
|
|
8
|
+
disabled: {
|
|
9
|
+
true: {
|
|
10
|
+
cursor: string;
|
|
11
|
+
color: "$colors$blue2" | "$colors$cyan2" | "$colors$green2" | "$colors$grey2" | "$colors$greyA2" | "$colors$orange2" | "$colors$pink2" | "$colors$red2" | "$colors$yellow2" | "$colors$blue1" | "$colors$cyan1" | "$colors$green1" | "$colors$grey1" | "$colors$greyA1" | "$colors$orange1" | "$colors$pink1" | "$colors$red1" | "$colors$yellow1" | "$colors$blue7" | "$colors$cyan7" | "$colors$green7" | "$colors$grey7" | "$colors$greyA7" | "$colors$orange7" | "$colors$pink7" | "$colors$red7" | "$colors$yellow7" | "$colors$blue12" | "$colors$cyan12" | "$colors$green12" | "$colors$grey12" | "$colors$greyA12" | "$colors$orange12" | "$colors$pink12" | "$colors$red12" | "$colors$yellow12" | "$colors$blue3" | "$colors$cyan3" | "$colors$green3" | "$colors$grey3" | "$colors$greyA3" | "$colors$orange3" | "$colors$pink3" | "$colors$red3" | "$colors$yellow3" | "$colors$blue4" | "$colors$cyan4" | "$colors$green4" | "$colors$grey4" | "$colors$greyA4" | "$colors$orange4" | "$colors$pink4" | "$colors$red4" | "$colors$yellow4" | "$colors$blue5" | "$colors$cyan5" | "$colors$green5" | "$colors$grey5" | "$colors$greyA5" | "$colors$orange5" | "$colors$pink5" | "$colors$red5" | "$colors$yellow5" | "$colors$blue9" | "$colors$cyan9" | "$colors$green9" | "$colors$grey9" | "$colors$greyA9" | "$colors$orange9" | "$colors$pink9" | "$colors$red9" | "$colors$yellow9" | "$colors$blue10" | "$colors$cyan10" | "$colors$green10" | "$colors$grey10" | "$colors$greyA10" | "$colors$orange10" | "$colors$pink10" | "$colors$red10" | "$colors$yellow10" | "$colors$blue11" | "$colors$cyan11" | "$colors$green11" | "$colors$grey11" | "$colors$greyA11" | "$colors$orange11" | "$colors$pink11" | "$colors$red11" | "$colors$yellow11" | "$colors$blue6" | "$colors$cyan6" | "$colors$green6" | "$colors$grey6" | "$colors$greyA6" | "$colors$orange6" | "$colors$pink6" | "$colors$red6" | "$colors$yellow6" | "$colors$blue8" | "$colors$cyan8" | "$colors$green8" | "$colors$grey8" | "$colors$greyA8" | "$colors$orange8" | "$colors$pink8" | "$colors$red8" | "$colors$yellow8" | "$colors$blue13" | "$colors$cyan13" | "$colors$green13" | "$colors$grey13" | "$colors$greyA13" | "$colors$orange13" | "$colors$pink13" | "$colors$red13" | "$colors$yellow13" | "$colors$neutral2" | "$colors$neutralA2" | "$colors$primary2" | "$colors$accent2" | "$colors$success2" | "$colors$info2" | "$colors$warning2" | "$colors$critical2" | "$colors$neutral1" | "$colors$neutralA1" | "$colors$primary1" | "$colors$accent1" | "$colors$success1" | "$colors$info1" | "$colors$warning1" | "$colors$critical1" | "$colors$neutral7" | "$colors$neutralA7" | "$colors$primary7" | "$colors$accent7" | "$colors$success7" | "$colors$info7" | "$colors$warning7" | "$colors$critical7" | "$colors$neutral12" | "$colors$neutralA12" | "$colors$primary12" | "$colors$accent12" | "$colors$success12" | "$colors$info12" | "$colors$warning12" | "$colors$critical12" | "$colors$neutral3" | "$colors$neutralA3" | "$colors$primary3" | "$colors$accent3" | "$colors$success3" | "$colors$info3" | "$colors$warning3" | "$colors$critical3" | "$colors$neutral4" | "$colors$neutralA4" | "$colors$primary4" | "$colors$accent4" | "$colors$success4" | "$colors$info4" | "$colors$warning4" | "$colors$critical4" | "$colors$neutral5" | "$colors$neutralA5" | "$colors$primary5" | "$colors$accent5" | "$colors$success5" | "$colors$info5" | "$colors$warning5" | "$colors$critical5" | "$colors$neutral9" | "$colors$neutralA9" | "$colors$primary9" | "$colors$accent9" | "$colors$success9" | "$colors$info9" | "$colors$warning9" | "$colors$critical9" | "$colors$neutral10" | "$colors$neutralA10" | "$colors$primary10" | "$colors$accent10" | "$colors$success10" | "$colors$info10" | "$colors$warning10" | "$colors$critical10" | "$colors$neutral11" | "$colors$neutralA11" | "$colors$primary11" | "$colors$accent11" | "$colors$success11" | "$colors$info11" | "$colors$warning11" | "$colors$critical11" | "$colors$neutral6" | "$colors$neutralA6" | "$colors$primary6" | "$colors$accent6" | "$colors$success6" | "$colors$info6" | "$colors$warning6" | "$colors$critical6" | "$colors$neutral8" | "$colors$neutralA8" | "$colors$primary8" | "$colors$accent8" | "$colors$success8" | "$colors$info8" | "$colors$warning8" | "$colors$critical8" | "$colors$neutral13" | "$colors$neutralA13" | "$colors$primary13" | "$colors$accent13" | "$colors$success13" | "$colors$info13" | "$colors$warning13" | "$colors$critical13";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}]>, {
|
|
16
|
+
bp1: "(min-width: 48rem)";
|
|
17
|
+
bp2: "(min-width: 69rem)";
|
|
18
|
+
bp3: "(min-width: 85rem)";
|
|
19
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
20
|
+
bp1: "(min-width: 48rem)";
|
|
21
|
+
bp2: "(min-width: 69rem)";
|
|
22
|
+
bp3: "(min-width: 85rem)";
|
|
23
|
+
}, {
|
|
24
|
+
colors: {
|
|
25
|
+
blue2: string;
|
|
26
|
+
cyan2: string;
|
|
27
|
+
green2: string;
|
|
28
|
+
grey2: string;
|
|
29
|
+
greyA2: string;
|
|
30
|
+
orange2: string;
|
|
31
|
+
pink2: string;
|
|
32
|
+
red2: string;
|
|
33
|
+
yellow2: string;
|
|
34
|
+
blue1: string;
|
|
35
|
+
cyan1: string;
|
|
36
|
+
green1: string;
|
|
37
|
+
grey1: string;
|
|
38
|
+
greyA1: string;
|
|
39
|
+
orange1: string;
|
|
40
|
+
pink1: string;
|
|
41
|
+
red1: string;
|
|
42
|
+
yellow1: string;
|
|
43
|
+
blue7: string;
|
|
44
|
+
cyan7: string;
|
|
45
|
+
green7: string;
|
|
46
|
+
grey7: string;
|
|
47
|
+
greyA7: string;
|
|
48
|
+
orange7: string;
|
|
49
|
+
pink7: string;
|
|
50
|
+
red7: string;
|
|
51
|
+
yellow7: string;
|
|
52
|
+
blue12: string;
|
|
53
|
+
cyan12: string;
|
|
54
|
+
green12: string;
|
|
55
|
+
grey12: string;
|
|
56
|
+
greyA12: string;
|
|
57
|
+
orange12: string;
|
|
58
|
+
pink12: string;
|
|
59
|
+
red12: string;
|
|
60
|
+
yellow12: string;
|
|
61
|
+
blue3: string;
|
|
62
|
+
cyan3: string;
|
|
63
|
+
green3: string;
|
|
64
|
+
grey3: string;
|
|
65
|
+
greyA3: string;
|
|
66
|
+
orange3: string;
|
|
67
|
+
pink3: string;
|
|
68
|
+
red3: string;
|
|
69
|
+
yellow3: string;
|
|
70
|
+
blue4: string;
|
|
71
|
+
cyan4: string;
|
|
72
|
+
green4: string;
|
|
73
|
+
grey4: string;
|
|
74
|
+
greyA4: string;
|
|
75
|
+
orange4: string;
|
|
76
|
+
pink4: string;
|
|
77
|
+
red4: string;
|
|
78
|
+
yellow4: string;
|
|
79
|
+
blue5: string;
|
|
80
|
+
cyan5: string;
|
|
81
|
+
green5: string;
|
|
82
|
+
grey5: string;
|
|
83
|
+
greyA5: string;
|
|
84
|
+
orange5: string;
|
|
85
|
+
pink5: string;
|
|
86
|
+
red5: string;
|
|
87
|
+
yellow5: string;
|
|
88
|
+
blue9: string;
|
|
89
|
+
cyan9: string;
|
|
90
|
+
green9: string;
|
|
91
|
+
grey9: string;
|
|
92
|
+
greyA9: string;
|
|
93
|
+
orange9: string;
|
|
94
|
+
pink9: string;
|
|
95
|
+
red9: string;
|
|
96
|
+
yellow9: string;
|
|
97
|
+
blue10: string;
|
|
98
|
+
cyan10: string;
|
|
99
|
+
green10: string;
|
|
100
|
+
grey10: string;
|
|
101
|
+
greyA10: string;
|
|
102
|
+
orange10: string;
|
|
103
|
+
pink10: string;
|
|
104
|
+
red10: string;
|
|
105
|
+
yellow10: string;
|
|
106
|
+
blue11: string;
|
|
107
|
+
cyan11: string;
|
|
108
|
+
green11: string;
|
|
109
|
+
grey11: string;
|
|
110
|
+
greyA11: string;
|
|
111
|
+
orange11: string;
|
|
112
|
+
pink11: string;
|
|
113
|
+
red11: string;
|
|
114
|
+
yellow11: string;
|
|
115
|
+
blue6: string;
|
|
116
|
+
cyan6: string;
|
|
117
|
+
green6: string;
|
|
118
|
+
grey6: string;
|
|
119
|
+
greyA6: string;
|
|
120
|
+
orange6: string;
|
|
121
|
+
pink6: string;
|
|
122
|
+
red6: string;
|
|
123
|
+
yellow6: string;
|
|
124
|
+
blue8: string;
|
|
125
|
+
cyan8: string;
|
|
126
|
+
green8: string;
|
|
127
|
+
grey8: string;
|
|
128
|
+
greyA8: string;
|
|
129
|
+
orange8: string;
|
|
130
|
+
pink8: string;
|
|
131
|
+
red8: string;
|
|
132
|
+
yellow8: string;
|
|
133
|
+
blue13: string;
|
|
134
|
+
cyan13: string;
|
|
135
|
+
green13: string;
|
|
136
|
+
grey13: string;
|
|
137
|
+
greyA13: string;
|
|
138
|
+
orange13: string;
|
|
139
|
+
pink13: string;
|
|
140
|
+
red13: string;
|
|
141
|
+
yellow13: string;
|
|
142
|
+
neutral2: string;
|
|
143
|
+
neutralA2: string;
|
|
144
|
+
primary2: string;
|
|
145
|
+
accent2: string;
|
|
146
|
+
success2: string;
|
|
147
|
+
info2: string;
|
|
148
|
+
warning2: string;
|
|
149
|
+
critical2: string;
|
|
150
|
+
neutral1: string;
|
|
151
|
+
neutralA1: string;
|
|
152
|
+
primary1: string;
|
|
153
|
+
accent1: string;
|
|
154
|
+
success1: string;
|
|
155
|
+
info1: string;
|
|
156
|
+
warning1: string;
|
|
157
|
+
critical1: string;
|
|
158
|
+
neutral7: string;
|
|
159
|
+
neutralA7: string;
|
|
160
|
+
primary7: string;
|
|
161
|
+
accent7: string;
|
|
162
|
+
success7: string;
|
|
163
|
+
info7: string;
|
|
164
|
+
warning7: string;
|
|
165
|
+
critical7: string;
|
|
166
|
+
neutral12: string;
|
|
167
|
+
neutralA12: string;
|
|
168
|
+
primary12: string;
|
|
169
|
+
accent12: string;
|
|
170
|
+
success12: string;
|
|
171
|
+
info12: string;
|
|
172
|
+
warning12: string;
|
|
173
|
+
critical12: string;
|
|
174
|
+
neutral3: string;
|
|
175
|
+
neutralA3: string;
|
|
176
|
+
primary3: string;
|
|
177
|
+
accent3: string;
|
|
178
|
+
success3: string;
|
|
179
|
+
info3: string;
|
|
180
|
+
warning3: string;
|
|
181
|
+
critical3: string;
|
|
182
|
+
neutral4: string;
|
|
183
|
+
neutralA4: string;
|
|
184
|
+
primary4: string;
|
|
185
|
+
accent4: string;
|
|
186
|
+
success4: string;
|
|
187
|
+
info4: string;
|
|
188
|
+
warning4: string;
|
|
189
|
+
critical4: string;
|
|
190
|
+
neutral5: string;
|
|
191
|
+
neutralA5: string;
|
|
192
|
+
primary5: string;
|
|
193
|
+
accent5: string;
|
|
194
|
+
success5: string;
|
|
195
|
+
info5: string;
|
|
196
|
+
warning5: string;
|
|
197
|
+
critical5: string;
|
|
198
|
+
neutral9: string;
|
|
199
|
+
neutralA9: string;
|
|
200
|
+
primary9: string;
|
|
201
|
+
accent9: string;
|
|
202
|
+
success9: string;
|
|
203
|
+
info9: string;
|
|
204
|
+
warning9: string;
|
|
205
|
+
critical9: string;
|
|
206
|
+
neutral10: string;
|
|
207
|
+
neutralA10: string;
|
|
208
|
+
primary10: string;
|
|
209
|
+
accent10: string;
|
|
210
|
+
success10: string;
|
|
211
|
+
info10: string;
|
|
212
|
+
warning10: string;
|
|
213
|
+
critical10: string;
|
|
214
|
+
neutral11: string;
|
|
215
|
+
neutralA11: string;
|
|
216
|
+
primary11: string;
|
|
217
|
+
accent11: string;
|
|
218
|
+
success11: string;
|
|
219
|
+
info11: string;
|
|
220
|
+
warning11: string;
|
|
221
|
+
critical11: string;
|
|
222
|
+
neutral6: string;
|
|
223
|
+
neutralA6: string;
|
|
224
|
+
primary6: string;
|
|
225
|
+
accent6: string;
|
|
226
|
+
success6: string;
|
|
227
|
+
info6: string;
|
|
228
|
+
warning6: string;
|
|
229
|
+
critical6: string;
|
|
230
|
+
neutral8: string;
|
|
231
|
+
neutralA8: string;
|
|
232
|
+
primary8: string;
|
|
233
|
+
accent8: string;
|
|
234
|
+
success8: string;
|
|
235
|
+
info8: string;
|
|
236
|
+
warning8: string;
|
|
237
|
+
critical8: string;
|
|
238
|
+
neutral13: string;
|
|
239
|
+
neutralA13: string;
|
|
240
|
+
primary13: string;
|
|
241
|
+
accent13: string;
|
|
242
|
+
success13: string;
|
|
243
|
+
info13: string;
|
|
244
|
+
warning13: string;
|
|
245
|
+
critical13: string;
|
|
246
|
+
};
|
|
247
|
+
fonts: {
|
|
248
|
+
display100: any;
|
|
249
|
+
display200: any;
|
|
250
|
+
display300: any;
|
|
251
|
+
display400: any;
|
|
252
|
+
display500: any;
|
|
253
|
+
display600: any;
|
|
254
|
+
display700: any;
|
|
255
|
+
display800: any;
|
|
256
|
+
display900: any;
|
|
257
|
+
body: any;
|
|
258
|
+
caption: any;
|
|
259
|
+
pageTitle: any;
|
|
260
|
+
sectionTitle: any;
|
|
261
|
+
sectionSubtitle: any;
|
|
262
|
+
button: any;
|
|
263
|
+
textInput: any;
|
|
264
|
+
default: any;
|
|
265
|
+
};
|
|
266
|
+
fontSizes: {
|
|
267
|
+
display100: any;
|
|
268
|
+
display200: any;
|
|
269
|
+
display300: any;
|
|
270
|
+
display400: any;
|
|
271
|
+
display500: any;
|
|
272
|
+
display600: any;
|
|
273
|
+
display700: any;
|
|
274
|
+
display800: any;
|
|
275
|
+
display900: any;
|
|
276
|
+
body: any;
|
|
277
|
+
caption: any;
|
|
278
|
+
pageTitle: any;
|
|
279
|
+
sectionTitle: any;
|
|
280
|
+
sectionSubtitle: any;
|
|
281
|
+
button: any;
|
|
282
|
+
textInput: any;
|
|
283
|
+
};
|
|
284
|
+
fontWeights: {
|
|
285
|
+
display100: any;
|
|
286
|
+
display200: any;
|
|
287
|
+
display300: any;
|
|
288
|
+
display400: any;
|
|
289
|
+
display500: any;
|
|
290
|
+
display600: any;
|
|
291
|
+
display700: any;
|
|
292
|
+
display800: any;
|
|
293
|
+
display900: any;
|
|
294
|
+
body: any;
|
|
295
|
+
caption: any;
|
|
296
|
+
pageTitle: any;
|
|
297
|
+
sectionTitle: any;
|
|
298
|
+
sectionSubtitle: any;
|
|
299
|
+
button: any;
|
|
300
|
+
textInput: any;
|
|
301
|
+
};
|
|
302
|
+
letterSpacings: {
|
|
303
|
+
display100: any;
|
|
304
|
+
display200: any;
|
|
305
|
+
display300: any;
|
|
306
|
+
display400: any;
|
|
307
|
+
display500: any;
|
|
308
|
+
display600: any;
|
|
309
|
+
display700: any;
|
|
310
|
+
display800: any;
|
|
311
|
+
display900: any;
|
|
312
|
+
body: any;
|
|
313
|
+
caption: any;
|
|
314
|
+
pageTitle: any;
|
|
315
|
+
sectionTitle: any;
|
|
316
|
+
sectionSubtitle: any;
|
|
317
|
+
button: any;
|
|
318
|
+
textInput: any;
|
|
319
|
+
};
|
|
320
|
+
lineHeights: {
|
|
321
|
+
display100: any;
|
|
322
|
+
display200: any;
|
|
323
|
+
display300: any;
|
|
324
|
+
display400: any;
|
|
325
|
+
display500: any;
|
|
326
|
+
display600: any;
|
|
327
|
+
display700: any;
|
|
328
|
+
display800: any;
|
|
329
|
+
display900: any;
|
|
330
|
+
body: any;
|
|
331
|
+
caption: any;
|
|
332
|
+
pageTitle: any;
|
|
333
|
+
sectionTitle: any;
|
|
334
|
+
sectionSubtitle: any;
|
|
335
|
+
button: any;
|
|
336
|
+
textInput: any;
|
|
337
|
+
};
|
|
338
|
+
radii: {
|
|
339
|
+
default: any;
|
|
340
|
+
large: any;
|
|
341
|
+
rounded: any;
|
|
342
|
+
};
|
|
343
|
+
shadows: {
|
|
344
|
+
sm: any;
|
|
345
|
+
md: any;
|
|
346
|
+
lg: any;
|
|
347
|
+
};
|
|
348
|
+
space: {
|
|
349
|
+
sm: any;
|
|
350
|
+
md: any;
|
|
351
|
+
lg: any;
|
|
352
|
+
xs: any;
|
|
353
|
+
xl: any;
|
|
354
|
+
xxl: any;
|
|
355
|
+
};
|
|
356
|
+
zIndices: {
|
|
357
|
+
floatingElements: number;
|
|
358
|
+
blanket: number;
|
|
359
|
+
dialog: number;
|
|
360
|
+
toast: number;
|
|
361
|
+
tooltip: number;
|
|
362
|
+
portalElement: number;
|
|
363
|
+
};
|
|
364
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
365
|
+
export default _default;
|
|
366
|
+
//# sourceMappingURL=BaseSwitchLabel.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSwitchLabel.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchLabel.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var system_1 = require("@vitality-ds/system");
|
|
4
|
+
var text = system_1.colorUseCases.text;
|
|
5
|
+
exports.default = (0, system_1.css)({
|
|
6
|
+
fontSize: "$body",
|
|
7
|
+
cursor: "pointer",
|
|
8
|
+
whiteSpace: "pre",
|
|
9
|
+
textWrap: "auto",
|
|
10
|
+
flex: 1,
|
|
11
|
+
variants: {
|
|
12
|
+
disabled: {
|
|
13
|
+
true: {
|
|
14
|
+
cursor: "not-allowed",
|
|
15
|
+
color: (0, system_1.getColorScaleValueByUseCase)("neutral", text.disabled),
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=BaseSwitchLabel.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSwitchLabel.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchLabel.styles.ts"],"names":[],"mappings":";;AAAA,8CAI6B;AAErB,IAAA,IAAI,GAAK,sBAAa,KAAlB,CAAmB;AAE/B,kBAAe,IAAA,YAAG,EAAC;IACjB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,CAAC;IACP,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,MAAM,EAAE,aAAa;gBACrB,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;aAC7D;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitchThumb.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchThumb.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BaseSwitchThumb.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchThumb.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBAkCG"}
|
|
@@ -4,25 +4,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var system_1 = require("@vitality-ds/system");
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var size_1 = __importDefault(require("../constants/size"));
|
|
8
|
+
var transitions_1 = __importDefault(require("../constants/transitions"));
|
|
9
|
+
var text = system_1.colorUseCases.text, backgrounds = system_1.colorUseCases.backgrounds;
|
|
10
|
+
var THUMB = size_1.default.THUMB, INSET_SPACING = size_1.default.INSET_SPACING, TRACK_WIDTH = size_1.default.TRACK_WIDTH;
|
|
11
|
+
var DURATION_MS = transitions_1.default.DURATION_MS, TIMING_FUNCTION = transitions_1.default.TIMING_FUNCTION;
|
|
9
12
|
exports.default = (0, system_1.css)({
|
|
10
13
|
position: "absolute",
|
|
11
14
|
left: 0,
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
15
|
+
width: THUMB,
|
|
16
|
+
height: THUMB,
|
|
14
17
|
borderRadius: "$rounded",
|
|
15
|
-
transition: "transform " +
|
|
16
|
-
transform: "translateX(" +
|
|
18
|
+
transition: "transform " + DURATION_MS + "ms " + TIMING_FUNCTION,
|
|
19
|
+
transform: "translateX(" + INSET_SPACING + "px)",
|
|
17
20
|
willChange: "transform",
|
|
18
21
|
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("neutral", text.onSolidBackgrounds),
|
|
19
22
|
"&[data-disabled]": {
|
|
20
|
-
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("neutral",
|
|
23
|
+
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("neutral", backgrounds.uiElement),
|
|
21
24
|
},
|
|
22
25
|
variants: {
|
|
23
26
|
checked: {
|
|
24
27
|
true: {
|
|
25
|
-
transform: "translateX(" + (
|
|
28
|
+
transform: "translateX(" + (TRACK_WIDTH - THUMB - INSET_SPACING) + "px)",
|
|
26
29
|
"&[data-disabled]": {
|
|
27
30
|
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("primary", text.disabled),
|
|
28
31
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitchThumb.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchThumb.styles.ts"],"names":[],"mappings":";;;;;AAAA,8CAI6B;AAE7B,
|
|
1
|
+
{"version":3,"file":"BaseSwitchThumb.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchThumb.styles.ts"],"names":[],"mappings":";;;;;AAAA,8CAI6B;AAE7B,2DAAqC;AACrC,yEAAkD;AAE1C,IAAA,IAAI,GAAkB,sBAAa,KAA/B,EAAE,WAAW,GAAK,sBAAa,YAAlB,CAAmB;AACpC,IAAA,KAAK,GAAiC,cAAI,MAArC,EAAE,aAAa,GAAkB,cAAI,cAAtB,EAAE,WAAW,GAAK,cAAI,YAAT,CAAU;AAC3C,IAAA,WAAW,GAAsB,qBAAU,YAAhC,EAAE,eAAe,GAAK,qBAAU,gBAAf,CAAgB;AACpD,kBAAe,IAAA,YAAG,EAAC;IACjB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,UAAU;IACxB,UAAU,EAAE,eAAa,WAAW,WAAM,eAAiB;IAC3D,SAAS,EAAE,gBAAc,aAAa,QAAK;IAC3C,UAAU,EAAE,WAAW;IACvB,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,IAAI,CAAC,kBAAkB,CACxB;IAED,kBAAkB,EAAE;QAClB,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,SAAS,CACtB;KACF;IAED,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,SAAS,EAAE,iBAAc,WAAW,GAAG,KAAK,GAAG,aAAa,SAAK;gBACjE,kBAAkB,EAAE;oBAClB,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,IAAI,CAAC,QAAQ,CACd;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ExcludedProps, VariantProps } from "@vitality-ds/system";
|
|
2
|
+
import { StackProps } from "../Stack/types";
|
|
2
3
|
import { BaseSwitch } from "./styled";
|
|
3
4
|
declare type SwitchVariants = VariantProps<typeof BaseSwitch>;
|
|
4
5
|
export declare type SwitchProps = ExcludedProps & ComponentProps<typeof BaseSwitch> & SwitchVariants & {
|
|
@@ -27,6 +28,15 @@ export declare type SwitchProps = ExcludedProps & ComponentProps<typeof BaseSwit
|
|
|
27
28
|
* @default "on"
|
|
28
29
|
*/
|
|
29
30
|
value: string;
|
|
31
|
+
/**
|
|
32
|
+
* Position of the accompanying label
|
|
33
|
+
*/
|
|
34
|
+
labelPosition?: "top" | "bottom" | "left" | "right";
|
|
35
|
+
/**
|
|
36
|
+
* THe label included with a switch
|
|
37
|
+
*/
|
|
38
|
+
label?: string;
|
|
30
39
|
};
|
|
40
|
+
export declare type LabelDirectionsType = Record<SwitchProps["labelPosition"], StackProps["direction"]>;
|
|
31
41
|
export {};
|
|
32
42
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Switch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,aAAK,cAAc,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAEtD,oBAAY,WAAW,GAAG,aAAa,GACrC,cAAc,CAAC,OAAO,UAAU,CAAC,GACjC,cAAc,GAAG;IACf;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/Switch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,aAAK,cAAc,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAEtD,oBAAY,WAAW,GAAG,aAAa,GACrC,cAAc,CAAC,OAAO,UAAU,CAAC,GACjC,cAAc,GAAG;IACf;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEJ,oBAAY,mBAAmB,GAAG,MAAM,CACtC,WAAW,CAAC,eAAe,CAAC,EAC5B,UAAU,CAAC,WAAW,CAAC,CACxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["label", "icon", "importance", "severity", "css", "style", "className", "as"];
|
|
3
|
+
var _excluded = ["label", "icon", "hideIcon", "importance", "severity", "css", "style", "className", "as"];
|
|
4
4
|
import React from "react";
|
|
5
5
|
import StatusBadgeIcon from "./components/StatusBadgeIcon";
|
|
6
6
|
import { getIcon } from "./logic";
|
|
@@ -8,6 +8,8 @@ import { BaseStatusBadge } from "./styled";
|
|
|
8
8
|
var StatusBadge = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
9
9
|
var label = _ref.label,
|
|
10
10
|
icon = _ref.icon,
|
|
11
|
+
_ref$hideIcon = _ref.hideIcon,
|
|
12
|
+
hideIcon = _ref$hideIcon === void 0 ? false : _ref$hideIcon,
|
|
11
13
|
_ref$importance = _ref.importance,
|
|
12
14
|
importance = _ref$importance === void 0 ? "normal" : _ref$importance,
|
|
13
15
|
_ref$severity = _ref.severity,
|
|
@@ -21,7 +23,7 @@ var StatusBadge = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
|
21
23
|
ref: forwardedRef,
|
|
22
24
|
importance: importance,
|
|
23
25
|
severity: severity
|
|
24
|
-
}, restProps), /*#__PURE__*/React.createElement(StatusBadgeIcon, null, icon || getIcon(severity)), label);
|
|
26
|
+
}, restProps), !hideIcon && /*#__PURE__*/React.createElement(StatusBadgeIcon, null, icon || getIcon(severity)), label);
|
|
25
27
|
});
|
|
26
28
|
StatusBadge.displayName = "StatusBadge";
|
|
27
29
|
export default StatusBadge;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["label", "icon", "importance", "severity", "css", "style", "className", "as", "onClick"];
|
|
3
|
+
var _excluded = ["label", "icon", "hideIcon", "importance", "severity", "css", "style", "className", "as", "onClick"];
|
|
4
4
|
import React from "react";
|
|
5
5
|
import StatusBadgeIcon from "./components/StatusBadgeIcon";
|
|
6
6
|
import { getIcon } from "./logic";
|
|
@@ -8,6 +8,8 @@ import { BaseStatusBadgeButton } from "./styled";
|
|
|
8
8
|
var StatusBadgeButton = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
9
9
|
var label = _ref.label,
|
|
10
10
|
icon = _ref.icon,
|
|
11
|
+
_ref$hideIcon = _ref.hideIcon,
|
|
12
|
+
hideIcon = _ref$hideIcon === void 0 ? false : _ref$hideIcon,
|
|
11
13
|
_ref$importance = _ref.importance,
|
|
12
14
|
importance = _ref$importance === void 0 ? "normal" : _ref$importance,
|
|
13
15
|
_ref$severity = _ref.severity,
|
|
@@ -24,7 +26,7 @@ var StatusBadgeButton = /*#__PURE__*/React.forwardRef(function (_ref, forwardedR
|
|
|
24
26
|
ref: forwardedRef,
|
|
25
27
|
importance: importance,
|
|
26
28
|
severity: severity
|
|
27
|
-
}, restProps), /*#__PURE__*/React.createElement(StatusBadgeIcon, null, icon || getIcon(severity)), label);
|
|
29
|
+
}, restProps), !hideIcon && /*#__PURE__*/React.createElement(StatusBadgeIcon, null, icon || getIcon(severity)), label);
|
|
28
30
|
});
|
|
29
31
|
StatusBadgeButton.displayName = "StatusBadgeButton";
|
|
30
32
|
export default StatusBadgeButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["label", "icon", "importance", "severity", "css", "style", "className", "as", "href", "target"];
|
|
3
|
+
var _excluded = ["label", "icon", "hideIcon", "importance", "severity", "css", "style", "className", "as", "href", "target"];
|
|
4
4
|
import React from "react";
|
|
5
5
|
import StatusBadgeIcon from "./components/StatusBadgeIcon";
|
|
6
6
|
import { getIcon } from "./logic";
|
|
@@ -8,6 +8,8 @@ import { BaseStatusBadgeLink } from "./styled";
|
|
|
8
8
|
var StatusBadgeLink = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
9
9
|
var label = _ref.label,
|
|
10
10
|
icon = _ref.icon,
|
|
11
|
+
_ref$hideIcon = _ref.hideIcon,
|
|
12
|
+
hideIcon = _ref$hideIcon === void 0 ? false : _ref$hideIcon,
|
|
11
13
|
_ref$importance = _ref.importance,
|
|
12
14
|
importance = _ref$importance === void 0 ? "normal" : _ref$importance,
|
|
13
15
|
_ref$severity = _ref.severity,
|
|
@@ -26,7 +28,7 @@ var StatusBadgeLink = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef
|
|
|
26
28
|
ref: forwardedRef,
|
|
27
29
|
importance: importance,
|
|
28
30
|
severity: severity
|
|
29
|
-
}, restProps), /*#__PURE__*/React.createElement(StatusBadgeIcon, null, icon || getIcon(severity)), label);
|
|
31
|
+
}, restProps), !hideIcon && /*#__PURE__*/React.createElement(StatusBadgeIcon, null, icon || getIcon(severity)), label);
|
|
30
32
|
});
|
|
31
33
|
StatusBadgeLink.displayName = "StatusBadgeLink";
|
|
32
34
|
export default StatusBadgeLink;
|