@cleartrip/talos-button 1.4.0-beta-260805-4.0 → 1.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/Button.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { IWidgetProps } from "@cleartrip/talos-widget-types";
3
2
  import type { IButtonProps } from "./type";
4
- declare const ButtonWidget: (props: IWidgetProps<IButtonProps>) => import("react").JSX.Element;
3
+ declare const ButtonWidget: (props: IWidgetProps<IButtonProps>) => import("react/jsx-runtime").JSX.Element;
5
4
  export default ButtonWidget;
6
5
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../packages/components/button/src/Button.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,QAAA,MAAM,YAAY,UAAW,aAAa,YAAY,CAAC,gCAiCtD,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../packages/components/button/src/Button.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,QAAA,MAAM,YAAY,UAAW,aAAa,YAAY,CAAC,4CAiCtD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -697,6 +697,7 @@
697
697
  pinaColada300: '#FFE46E',
698
698
  black100: '#1B1B1B',
699
699
  gray97: '#f7f7f7',
700
+ gray98: '#FAFBFF',
700
701
  successGreen500: '#11A056',
701
702
  purple700: '#7226E0',
702
703
  neutralOpacity8: '#00000014',
@@ -733,13 +734,16 @@
733
734
  13: '52px',
734
735
  14: '56px',
735
736
  15: '60px',
737
+ 20: '80px',
736
738
  50: '200px'
737
739
  };
738
740
  var spacing = {
739
741
  0: '0px',
742
+ 0.5: '2px',
740
743
  1: '4px',
741
744
  2: '8px',
742
745
  3: '12px',
746
+ 1.5: '6px',
743
747
  4: '16px',
744
748
  5: '20px',
745
749
  6: '24px',
@@ -5167,10 +5171,15 @@
5167
5171
  lightRed: colors.red200,
5168
5172
  black100: colors.black100,
5169
5173
  gray97: colors.gray97,
5174
+ gray98: colors.gray98,
5170
5175
  darkRed: colors.red500,
5171
5176
  orange500: colors.orange500,
5172
5177
  purple700: colors.purple700,
5173
- neutralOpacity8: colors.neutralOpacity8
5178
+ neutralOpacity8: colors.neutralOpacity8,
5179
+ darkRed500: colors.red500,
5180
+ successGreen500: colors.successGreen500,
5181
+ blue100: colors.blue100,
5182
+ alertYellow500: colors.alert500
5174
5183
  },
5175
5184
  border: {
5176
5185
  primary: colors.neutral900,
@@ -5536,7 +5545,7 @@
5536
5545
  d = "date",
5537
5546
  l = "Invalid Date",
5538
5547
  $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
5539
- y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
5548
+ y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
5540
5549
  M = {
5541
5550
  name: "en",
5542
5551
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
@@ -5876,9 +5885,9 @@
5876
5885
  return this.$d.toUTCString();
5877
5886
  }, M;
5878
5887
  }(),
5879
- Y = _.prototype;
5880
- return O.prototype = Y, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
5881
- Y[t[1]] = function (e) {
5888
+ k = _.prototype;
5889
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
5890
+ k[t[1]] = function (e) {
5882
5891
  return this.$g(e, t[0], t[1]);
5883
5892
  };
5884
5893
  }), O.extend = function (t, e) {
@@ -15932,16 +15941,35 @@
15932
15941
  }, getCheckboxColor(theme, !!disabled, !!checked)), rest);
15933
15942
  };
15934
15943
  var StyledRoot = _default.div(function (_a) {
15935
- var css = _a.css,
15936
- rest = __rest$2(_a, ["css"]);
15937
- return getCheckboxRootStyles(__assign$4(__assign$4({}, rest), css));
15944
+ var css = _a.css;
15945
+ _a.children;
15946
+ _a.onClick;
15947
+ _a.className;
15948
+ _a.color;
15949
+ var theme = _a.theme,
15950
+ disabled = _a.disabled,
15951
+ rest = __rest$2(_a, ["css", "children", "onClick", "className", "color", "theme", "disabled"]);
15952
+ return getCheckboxRootStyles(__assign$4(__assign$4(__assign$4({}, rest), css), {
15953
+ theme: theme,
15954
+ disabled: disabled
15955
+ }));
15938
15956
  });
15939
15957
  var StyledCheckbox = _default.div(function (_a) {
15940
15958
  var theme = _a.theme,
15941
15959
  css = _a.css,
15942
- rest = __rest$2(_a, ["theme", "css"]);
15960
+ checked = _a.checked,
15961
+ disabled = _a.disabled,
15962
+ width = _a.width,
15963
+ height = _a.height;
15964
+ _a.className;
15965
+ _a.children;
15966
+ var rest = __rest$2(_a, ["theme", "css", "checked", "disabled", "width", "height", "className", "children"]);
15943
15967
  return getCheckboxStyles(__assign$4(__assign$4(__assign$4({}, rest), css), {
15944
- theme: theme
15968
+ theme: theme,
15969
+ checked: checked,
15970
+ disabled: disabled,
15971
+ width: width,
15972
+ height: height
15945
15973
  }));
15946
15974
  });
15947
15975
  var Input$1 = _default.input(function (_a) {