@tecsinapse/react-core 1.17.2 → 1.18.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 (72) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/components/atoms/Switch/Switch.js.map +1 -1
  3. package/dist/components/molecules/Grid/functions.d.ts +3 -0
  4. package/dist/components/molecules/Grid/functions.js +21 -0
  5. package/dist/components/molecules/Grid/functions.js.map +1 -0
  6. package/dist/components/molecules/Grid/index.d.ts +42 -2
  7. package/dist/components/molecules/Grid/index.js +6 -13
  8. package/dist/components/molecules/Grid/index.js.map +1 -1
  9. package/dist/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
  10. package/dist/components/molecules/IconTextButton/IconComponent.js +28 -0
  11. package/dist/components/molecules/IconTextButton/IconComponent.js.map +1 -0
  12. package/dist/components/molecules/IconTextButton/IconTextButton.d.ts +10 -0
  13. package/dist/components/molecules/IconTextButton/IconTextButton.js +4 -0
  14. package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
  15. package/dist/components/molecules/IconTextButton/index.d.ts +2 -0
  16. package/dist/components/molecules/IconTextButton/index.js +16 -0
  17. package/dist/components/molecules/IconTextButton/index.js.map +1 -0
  18. package/dist/components/molecules/IconTextButton/styled.d.ts +4 -0
  19. package/dist/components/molecules/{Grid/Item/index.js → IconTextButton/styled.js} +19 -5
  20. package/dist/components/molecules/IconTextButton/styled.js.map +1 -0
  21. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
  22. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +4 -0
  23. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
  24. package/dist/components/molecules/LabeledSwitch/index.d.ts +1 -0
  25. package/dist/components/molecules/LabeledSwitch/index.js +10 -0
  26. package/dist/components/molecules/LabeledSwitch/index.js.map +1 -0
  27. package/dist/hooks/useDebouncedState.js +1 -1
  28. package/dist/hooks/useDebouncedState.js.map +1 -1
  29. package/dist/index.d.ts +7 -5
  30. package/dist/index.js +44 -30
  31. package/dist/index.js.map +1 -1
  32. package/dist/styles/definitions.d.ts +2 -1
  33. package/dist/styles/definitions.js +7 -1
  34. package/dist/styles/definitions.js.map +1 -1
  35. package/dist/styles/light.js +2 -1
  36. package/dist/styles/light.js.map +1 -1
  37. package/dist/types/defaults.d.ts +8 -2
  38. package/dist/utils/index.d.ts +5 -4
  39. package/dist/utils/index.js +28 -19
  40. package/dist/utils/index.js.map +1 -1
  41. package/dist/utils/variantComplement.d.ts +6 -0
  42. package/dist/utils/variantComplement.js +35 -0
  43. package/dist/utils/variantComplement.js.map +1 -0
  44. package/package.json +5 -5
  45. package/src/components/atoms/Switch/Switch.tsx +38 -18
  46. package/src/components/molecules/Grid/functions.ts +29 -0
  47. package/src/components/molecules/Grid/index.ts +66 -2
  48. package/src/components/molecules/IconTextButton/IconComponent.tsx +31 -0
  49. package/src/components/molecules/IconTextButton/IconTextButton.tsx +12 -0
  50. package/src/components/molecules/IconTextButton/index.ts +2 -0
  51. package/src/components/molecules/IconTextButton/styled.ts +20 -0
  52. package/src/components/molecules/LabeledSwitch/LabeledSwitch.tsx +9 -0
  53. package/src/components/molecules/LabeledSwitch/index.ts +1 -0
  54. package/src/hooks/useDebouncedState.ts +1 -1
  55. package/src/index.ts +15 -6
  56. package/src/styles/definitions.ts +8 -1
  57. package/src/styles/light.ts +2 -0
  58. package/src/types/defaults.ts +11 -1
  59. package/src/utils/index.ts +5 -4
  60. package/src/utils/variantComplement.ts +36 -0
  61. package/dist/components/molecules/Grid/Grid.d.ts +0 -15
  62. package/dist/components/molecules/Grid/Grid.js +0 -55
  63. package/dist/components/molecules/Grid/Grid.js.map +0 -1
  64. package/dist/components/molecules/Grid/Item/Item.d.ts +0 -30
  65. package/dist/components/molecules/Grid/Item/Item.js +0 -68
  66. package/dist/components/molecules/Grid/Item/Item.js.map +0 -1
  67. package/dist/components/molecules/Grid/Item/index.d.ts +0 -1
  68. package/dist/components/molecules/Grid/Item/index.js.map +0 -1
  69. package/src/components/molecules/Grid/Grid.stories.tsx +0 -132
  70. package/src/components/molecules/Grid/Grid.tsx +0 -87
  71. package/src/components/molecules/Grid/Item/Item.tsx +0 -93
  72. package/src/components/molecules/Grid/Item/index.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,42 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.18.0](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-core@1.17.4...@tecsinapse/react-core@1.18.0) (2022-08-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * change PressableSurface with Pressable on LabeledSwitch label ([5029a74](https://github.com/tecsinapse/design-system/commit/5029a74bfc272f5aecb3bdae9152f0920a36c8bb))
12
+ * LabeledSwitch disabled and react-core exports ([855f12f](https://github.com/tecsinapse/design-system/commit/855f12f0dff1ce4c5969eba723707340e60a3310))
13
+ * merge code ([d828e38](https://github.com/tecsinapse/design-system/commit/d828e388fbb17b6e561c3799043036aeee29c4ab))
14
+
15
+
16
+ ### Features
17
+
18
+ * grid web responsive support ([4111063](https://github.com/tecsinapse/design-system/commit/411106311d37d62bae4736c07f71038d5564319c))
19
+ * grid web responsive support ([fd91539](https://github.com/tecsinapse/design-system/commit/fd91539dae6df151beeb48ce3749623e2bb4dedc))
20
+ * LabeledSwitch implementation. ([519fe87](https://github.com/tecsinapse/design-system/commit/519fe8769d687f15af09c9fb77fe98a727f9078b))
21
+
22
+
23
+
24
+
25
+
26
+ ## [1.17.4](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-core@1.17.3...@tecsinapse/react-core@1.17.4) (2022-08-18)
27
+
28
+ **Note:** Version bump only for package @tecsinapse/react-core
29
+
30
+
31
+
32
+
33
+
34
+ ## [1.17.3](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-core@1.17.2...@tecsinapse/react-core@1.17.3) (2022-08-03)
35
+
36
+ **Note:** Version bump only for package @tecsinapse/react-core
37
+
38
+
39
+
40
+
41
+
6
42
  ## [1.17.2](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-core@1.17.1...@tecsinapse/react-core@1.17.2) (2022-08-02)
7
43
 
8
44
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/atoms/Switch/Switch.tsx"],"names":["Switch","onChange","activeColor","activeColorTone","inactiveColor","inactiveColorTone","active","dotStyle","disabled","rest","theme","width","React","useRef","transitionValue","Animated","Value","current","animatedColor","calculateTranslate","spacing","micro","SWITCH_PIN_WIDTH","getBackgroundColor","color","interpolateColor","interpolate","inputRange","outputRange","translate","handleChange","handleSwitchLayout","lce","nativeEvent","layout","backgroundColor","transform","translateX"],"mappings":"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","sourcesContent":["import { useTheme } from '@emotion/react';\nimport React, { FC, useCallback, useEffect } from 'react';\nimport { Animated, LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';\nimport {\n ColorGradationType,\n ColorType,\n ThemeProp\n} from '../../../types/defaults';\nimport { extractNumbersFromString, lightenDarkenColor, RFValueStr } from '../../../utils';\nimport { PressableSurface } from '../PressableSurface';\nimport { transitionSwitch } from './animation';\nimport { StyledSwitch, StyledSwitchContent, SWITCH_PIN_WIDTH } from './styled';\n\nexport interface SwitchProps {\n onChange: (active: boolean) => void;\n active: boolean;\n activeColor?: ColorType;\n activeColorTone?: ColorGradationType;\n inactiveColor?: ColorType;\n inactiveColorTone?: ColorGradationType;\n style?: StyleProp<ViewStyle>;\n dotStyle?: StyleProp<ViewStyle>;\n disabled?: boolean;\n}\n\nconst Switch: FC<SwitchProps> = ({\n onChange,\n activeColor = 'primary',\n activeColorTone = 'medium',\n inactiveColor = 'secondary',\n inactiveColorTone = 'light',\n active,\n dotStyle,\n disabled = false,\n ...rest\n}): JSX.Element => {\n const theme = useTheme() as ThemeProp;\n\n const width = React.useRef(0)\n const transitionValue = React.useRef(new Animated.Value(0)).current\n const animatedColor = React.useRef(new Animated.Value(0)).current\n \n const calculateTranslate = () => {\n if (width.current > 0) {\n return width.current - (extractNumbersFromString(theme.spacing.micro) * 2) - (extractNumbersFromString(RFValueStr(SWITCH_PIN_WIDTH)))\n }\n return 0\n }\n\n const getBackgroundColor = (color: string) => {\n return disabled ? lightenDarkenColor(theme.color[inactiveColor][inactiveColorTone], 20) : color;\n };\n\n const interpolateColor = animatedColor.interpolate({\n inputRange: [0, 1],\n outputRange: [\n getBackgroundColor(theme.color[inactiveColor][inactiveColorTone]),\n getBackgroundColor(theme.color[activeColor][activeColorTone]),\n ]\n });\n\n useEffect(() => {\n const translate = calculateTranslate()\n transitionSwitch(active, translate, transitionValue, animatedColor);\n }, [active]);\n\n const handleChange = useCallback(() => {\n onChange(!active);\n }, [active, onChange]);\n\n const handleSwitchLayout = (lce: LayoutChangeEvent) => {\n width.current = lce.nativeEvent.layout.width\n const translate = calculateTranslate()\n transitionSwitch(active, translate, transitionValue, animatedColor);\n }\n\n return (\n <PressableSurface\n {...rest}\n onPress={handleChange}\n effect=\"none\"\n disabled={disabled}\n >\n <StyledSwitchContent onLayout={handleSwitchLayout} style={{ backgroundColor: interpolateColor }}>\n <StyledSwitch style={[dotStyle, { transform: [{ translateX: transitionValue }] }]}/>\n </StyledSwitchContent>\n </PressableSurface>\n );\n};\n\nexport default Switch;\n"],"file":"Switch.js"}
1
+ {"version":3,"sources":["../../../../src/components/atoms/Switch/Switch.tsx"],"names":["Switch","onChange","activeColor","activeColorTone","inactiveColor","inactiveColorTone","active","dotStyle","disabled","rest","theme","width","React","useRef","transitionValue","Animated","Value","current","animatedColor","calculateTranslate","spacing","micro","SWITCH_PIN_WIDTH","getBackgroundColor","color","interpolateColor","interpolate","inputRange","outputRange","translate","handleChange","handleSwitchLayout","lce","nativeEvent","layout","backgroundColor","transform","translateX"],"mappings":"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","sourcesContent":["import { useTheme } from '@emotion/react';\nimport React, { FC, useCallback, useEffect } from 'react';\nimport {\n Animated,\n LayoutChangeEvent,\n StyleProp,\n ViewStyle,\n} from 'react-native';\nimport {\n ColorGradationType,\n ColorType,\n ThemeProp,\n} from '../../../types/defaults';\nimport {\n extractNumbersFromString,\n lightenDarkenColor,\n RFValueStr,\n} from '../../../utils';\nimport { PressableSurface } from '../PressableSurface';\nimport { transitionSwitch } from './animation';\nimport { StyledSwitch, StyledSwitchContent, SWITCH_PIN_WIDTH } from './styled';\n\nexport interface SwitchProps {\n onChange: (active: boolean) => void;\n active: boolean;\n activeColor?: ColorType;\n activeColorTone?: ColorGradationType;\n inactiveColor?: ColorType;\n inactiveColorTone?: ColorGradationType;\n style?: StyleProp<ViewStyle>;\n dotStyle?: StyleProp<ViewStyle>;\n disabled?: boolean;\n}\n\nconst Switch: FC<SwitchProps> = ({\n onChange,\n activeColor = 'primary',\n activeColorTone = 'medium',\n inactiveColor = 'secondary',\n inactiveColorTone = 'light',\n active,\n dotStyle,\n disabled = false,\n ...rest\n}): JSX.Element => {\n const theme = useTheme() as ThemeProp;\n\n const width = React.useRef(0);\n const transitionValue = React.useRef(new Animated.Value(0)).current;\n const animatedColor = React.useRef(new Animated.Value(0)).current;\n\n const calculateTranslate = () => {\n if (width.current > 0) {\n return (\n width.current -\n extractNumbersFromString(theme.spacing.micro) * 2 -\n extractNumbersFromString(RFValueStr(SWITCH_PIN_WIDTH))\n );\n }\n return 0;\n };\n\n const getBackgroundColor = (color: string) => {\n return disabled\n ? lightenDarkenColor(theme.color[inactiveColor][inactiveColorTone], 20)\n : color;\n };\n\n const interpolateColor = animatedColor.interpolate({\n inputRange: [0, 1],\n outputRange: [\n getBackgroundColor(theme.color[inactiveColor][inactiveColorTone]),\n getBackgroundColor(theme.color[activeColor][activeColorTone]),\n ],\n });\n\n useEffect(() => {\n const translate = calculateTranslate();\n transitionSwitch(active, translate, transitionValue, animatedColor);\n }, [active]);\n\n const handleChange = useCallback(() => {\n onChange(!active);\n }, [active, onChange]);\n\n const handleSwitchLayout = (lce: LayoutChangeEvent) => {\n width.current = lce.nativeEvent.layout.width;\n const translate = calculateTranslate();\n transitionSwitch(active, translate, transitionValue, animatedColor);\n };\n\n return (\n <PressableSurface\n {...rest}\n onPress={handleChange}\n effect=\"none\"\n disabled={disabled}\n >\n <StyledSwitchContent\n onLayout={handleSwitchLayout}\n style={{ backgroundColor: interpolateColor }}\n >\n <StyledSwitch\n style={[dotStyle, { transform: [{ translateX: transitionValue }] }]}\n />\n </StyledSwitchContent>\n </PressableSurface>\n );\n};\n\nexport default Switch;\n"],"file":"Switch.js"}
@@ -0,0 +1,3 @@
1
+ import { GridSpacing } from '@tecsinapse/react-core';
2
+ export declare const getGridItemPadding: (pos: any, _spacing: GridSpacing | undefined, themeSpacing: any) => number | undefined;
3
+ export declare const getGridItemColumSpan: (columns: number, span: number) => number;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getGridItemColumSpan = exports.getGridItemPadding = void 0;
5
+
6
+ var _reactCore = require("@tecsinapse/react-core");
7
+
8
+ const getGridItemPadding = (pos, _spacing, themeSpacing) => {
9
+ if (_spacing) {
10
+ if (typeof _spacing === 'string') return (0, _reactCore.extractNumbersFromString)(themeSpacing[_spacing]);else if (typeof _spacing === 'object' && _spacing[pos]) {
11
+ return (0, _reactCore.extractNumbersFromString)(themeSpacing[_spacing[pos] ?? '0']);
12
+ } else return undefined;
13
+ } else return undefined;
14
+ };
15
+
16
+ exports.getGridItemPadding = getGridItemPadding;
17
+
18
+ const getGridItemColumSpan = (columns, span) => 100 / (columns / span);
19
+
20
+ exports.getGridItemColumSpan = getGridItemColumSpan;
21
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/molecules/Grid/functions.ts"],"names":["getGridItemPadding","pos","_spacing","themeSpacing","undefined","getGridItemColumSpan","columns","span"],"mappings":";;;;;AAAA;;AAOO,MAAMA,kBAAkB,GAAG,CAChCC,GADgC,EAEhCC,QAFgC,EAGhCC,YAHgC,KAIT;AACvB,MAAID,QAAJ,EAAc;AACZ,QAAI,OAAOA,QAAP,KAAoB,QAAxB,EACE,OAAO,yCAAyBC,YAAY,CAACD,QAAD,CAArC,CAAP,CADF,KAEK,IAAI,OAAOA,QAAP,KAAoB,QAApB,IAAgCA,QAAQ,CAACD,GAAD,CAA5C,EAAmD;AACtD,aAAO,yCAAyBE,YAAY,CAACD,QAAQ,CAACD,GAAD,CAAR,IAAiB,GAAlB,CAArC,CAAP;AACD,KAFI,MAEE,OAAOG,SAAP;AACR,GAND,MAMO,OAAOA,SAAP;AACR,CAZM;;;;AAoBA,MAAMC,oBAAoB,GAAG,CAACC,OAAD,EAAkBC,IAAlB,KAClC,OAAOD,OAAO,GAAGC,IAAjB,CADK","sourcesContent":["import {\n extractNumbersFromString,\n GridSpacing,\n PaddingPosition,\n Spacing,\n} from '@tecsinapse/react-core';\n\nexport const getGridItemPadding = (\n pos: PaddingPosition,\n _spacing: GridSpacing | undefined,\n themeSpacing: Spacing\n): number | undefined => {\n if (_spacing) {\n if (typeof _spacing === 'string')\n return extractNumbersFromString(themeSpacing[_spacing]);\n else if (typeof _spacing === 'object' && _spacing[pos]) {\n return extractNumbersFromString(themeSpacing[_spacing[pos] ?? '0']);\n } else return undefined;\n } else return undefined;\n};\n\n/**\n * Calc the basis width percentage for a given item\n * @param columns - number of grid columns\n * @param span - number of columns to merge\n * @returns {number} - value in %\n */\nexport const getGridItemColumSpan = (columns: number, span: number): number =>\n 100 / (columns / span);\n"],"file":"functions.js"}
@@ -1,2 +1,42 @@
1
- export { GridItem, IGridItem } from './Item';
2
- export { default as Grid, IGrid } from './Grid';
1
+ import React from 'react';
2
+ import { SpacingType } from '@tecsinapse/react-core';
3
+ export interface IGrid {
4
+ children: JSX.Element[];
5
+ layout?: number[][];
6
+ columns?: number;
7
+ spacing?: SpacingType | {
8
+ top?: SpacingType;
9
+ right?: SpacingType;
10
+ bottom?: SpacingType;
11
+ left?: SpacingType;
12
+ };
13
+ }
14
+ export declare type FlexPositioning = 'flex-start' | 'flex-end' | 'center';
15
+ export declare type FlexAlignBase = FlexPositioning | 'stretch';
16
+ export declare type FlexAlignType = FlexAlignBase | 'baseline';
17
+ export declare type FlexSpacing = 'space-between' | 'space-around';
18
+ export declare type PaddingPosition = 'top' | 'right' | 'bottom' | 'left';
19
+ export declare type GridSpacing = SpacingType | {
20
+ top?: SpacingType;
21
+ right?: SpacingType;
22
+ bottom?: SpacingType;
23
+ left?: SpacingType;
24
+ };
25
+ export interface IGridItem {
26
+ children: React.ReactElement;
27
+ span: number;
28
+ columns?: number;
29
+ loading?: boolean;
30
+ loadingComponent?: React.ReactElement;
31
+ alignContent?: FlexAlignBase | FlexSpacing;
32
+ alignItems?: FlexAlignType;
33
+ alignSelf?: 'auto' | FlexAlignType;
34
+ flex?: number;
35
+ flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
36
+ flexGrow?: number;
37
+ flexShrink?: number;
38
+ justifyContent?: FlexPositioning | FlexSpacing | 'space-evenly';
39
+ spacing?: GridSpacing;
40
+ wrapper?: boolean;
41
+ }
42
+ export * from './functions';
@@ -1,19 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.IGrid = exports.Grid = exports.IGridItem = exports.GridItem = void 0;
5
4
 
6
- var _Item = require("./Item");
5
+ var _functions = require("./functions");
7
6
 
8
- exports.GridItem = _Item.GridItem;
9
- exports.IGridItem = _Item.IGridItem;
10
-
11
- var _Grid = _interopRequireWildcard(require("./Grid"));
12
-
13
- exports.Grid = _Grid.default;
14
- exports.IGrid = _Grid.IGrid;
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7
+ Object.keys(_functions).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _functions[key]) return;
10
+ exports[key] = _functions[key];
11
+ });
19
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/molecules/Grid/index.ts"],"names":[],"mappings":";;;;;AAAA;;;;;AACA","sourcesContent":["export { GridItem, IGridItem } from './Item';\nexport { default as Grid, IGrid } from './Grid';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/components/molecules/Grid/index.ts"],"names":[],"mappings":";;;;AAiEA;;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["import React from 'react';\nimport { SpacingType } from '@tecsinapse/react-core';\n\nexport interface IGrid {\n children: JSX.Element[];\n /** Layout should represent the multiplier of columns to fill the rows properly.\n * Example:\n * const layout = [\n * [6, 6], // Two elements on row\n * [4, 4, 4], // Three elements on row\n * [12], // One element on row\n * ];\n * */\n layout?: number[][];\n /** Number of grid columns to be considered (not the number of elements per row) */\n columns?: number;\n spacing?:\n | SpacingType\n | {\n top?: SpacingType;\n right?: SpacingType;\n bottom?: SpacingType;\n left?: SpacingType;\n };\n}\n\nexport type FlexPositioning = 'flex-start' | 'flex-end' | 'center';\nexport type FlexAlignBase = FlexPositioning | 'stretch';\nexport type FlexAlignType = FlexAlignBase | 'baseline';\nexport type FlexSpacing = 'space-between' | 'space-around';\nexport type PaddingPosition = 'top' | 'right' | 'bottom' | 'left';\n\nexport type GridSpacing =\n | SpacingType\n | {\n top?: SpacingType;\n right?: SpacingType;\n bottom?: SpacingType;\n left?: SpacingType;\n };\n\nexport interface IGridItem {\n children: React.ReactElement;\n /** Number of columns to fill */\n span: number;\n /** You don't have to give this property since is inherited from Grid */\n columns?: number;\n loading?: boolean;\n /** If your GridItem has a loading state, specify the component here (Skeleton) */\n loadingComponent?: React.ReactElement;\n /** Flex properties below */\n alignContent?: FlexAlignBase | FlexSpacing;\n alignItems?: FlexAlignType;\n alignSelf?: 'auto' | FlexAlignType;\n flex?: number;\n flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';\n flexGrow?: number;\n flexShrink?: number;\n justifyContent?: FlexPositioning | FlexSpacing | 'space-evenly';\n /** You don't have to give this property since is inherited from Grid */\n spacing?: GridSpacing;\n /** Used to wrap children in a View when its style extrapolates the dimensions*/\n wrapper?: boolean;\n}\n\nexport * from './functions';\n"],"file":"index.js"}
@@ -0,0 +1,9 @@
1
+ import { ButtonSizeType, FontColor, IconProps } from '@tecsinapse/react-core';
2
+ import React from 'react';
3
+ interface IconComponentProps {
4
+ iconProps?: IconProps;
5
+ size?: ButtonSizeType;
6
+ defaultFontColor: keyof FontColor;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IconComponentProps>;
9
+ export default _default;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _reactCore = require("@tecsinapse/react-core");
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
+
14
+ const IconComponent = ({
15
+ iconProps,
16
+ size = 'default',
17
+ defaultFontColor
18
+ }) => {
19
+ return iconProps ? _react.default.createElement(_reactCore.Icon, _extends({
20
+ size: iconProps.size ?? size === 'small' ? 'deca' : 'kilo',
21
+ fontColor: iconProps.fontColor ?? defaultFontColor
22
+ }, iconProps)) : _react.default.createElement(_react.default.Fragment, null);
23
+ };
24
+
25
+ var _default = _react.default.memo(IconComponent);
26
+
27
+ exports.default = _default;
28
+ //# sourceMappingURL=IconComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/molecules/IconTextButton/IconComponent.tsx"],"names":["IconComponent","iconProps","size","defaultFontColor","fontColor","React","memo"],"mappings":";;;;;AAAA;;AAMA;;;;;;AAQA,MAAMA,aAAqC,GAAG,CAAC;AAC7CC,EAAAA,SAD6C;AAE7CC,EAAAA,IAAI,GAAG,SAFsC;AAG7CC,EAAAA;AAH6C,CAAD,KAIxC;AACJ,SAAOF,SAAS,GACd,6BAAC,eAAD;AACE,IAAA,IAAI,EAAEA,SAAS,CAACC,IAAV,IAAkBA,IAAI,KAAK,OAA3B,GAAqC,MAArC,GAA8C,MADtD;AAEE,IAAA,SAAS,EAAED,SAAS,CAACG,SAAV,IAAuBD;AAFpC,KAGMF,SAHN,EADc,GAOd,2DAPF;AASD,CAdD;;eAgBeI,eAAMC,IAAN,CAAWN,aAAX,C","sourcesContent":["import {\n ButtonSizeType,\n FontColor,\n Icon,\n IconProps,\n} from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\n\ninterface IconComponentProps {\n iconProps?: IconProps;\n size?: ButtonSizeType;\n defaultFontColor: keyof FontColor;\n}\n\nconst IconComponent: FC<IconComponentProps> = ({\n iconProps,\n size = 'default',\n defaultFontColor,\n}) => {\n return iconProps ? (\n <Icon\n size={iconProps.size ?? size === 'small' ? 'deca' : 'kilo'}\n fontColor={iconProps.fontColor ?? defaultFontColor}\n {...iconProps}\n />\n ) : (\n <></>\n );\n};\n\nexport default React.memo(IconComponent);\n"],"file":"IconComponent.js"}
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '../../atoms/Button';
2
+ import { IconProps } from '../../atoms/Icon';
3
+ import { TextProps } from '../../atoms/Text';
4
+ export declare type IconPositionOptions = 'left' | 'right';
5
+ export interface IconTextButtonProps extends ButtonProps {
6
+ iconProps?: IconProps;
7
+ iconPosition?: IconPositionOptions;
8
+ textProps?: TextProps;
9
+ label?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ //# sourceMappingURL=IconTextButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"IconTextButton.js"}
@@ -0,0 +1,2 @@
1
+ export { default as IconComponent } from './IconComponent';
2
+ export { IconPositionOptions, IconTextButtonProps } from './IconTextButton';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.IconTextButtonProps = exports.IconPositionOptions = exports.IconComponent = void 0;
5
+
6
+ var _IconComponent = _interopRequireDefault(require("./IconComponent"));
7
+
8
+ exports.IconComponent = _IconComponent.default;
9
+
10
+ var _IconTextButton = require("./IconTextButton");
11
+
12
+ exports.IconPositionOptions = _IconTextButton.IconPositionOptions;
13
+ exports.IconTextButtonProps = _IconTextButton.IconTextButtonProps;
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/molecules/IconTextButton/index.ts"],"names":[],"mappings":";;;;;AAAA;;;;AACA","sourcesContent":["export { default as IconComponent } from './IconComponent';\nexport { IconPositionOptions, IconTextButtonProps } from './IconTextButton';\n"],"file":"index.js"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledText: import("@emotion/native").StyledComponent<any, {}, {
3
+ ref?: import("react").Ref<any> | undefined;
4
+ }>;
@@ -1,14 +1,28 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.IGridItem = exports.GridItem = void 0;
4
+ exports.StyledText = void 0;
5
5
 
6
- var _Item = _interopRequireWildcard(require("./Item"));
6
+ var _native = _interopRequireWildcard(require("@emotion/native"));
7
7
 
8
- exports.GridItem = _Item.default;
9
- exports.IGridItem = _Item.IGridItem;
8
+ var _reactCore = require("@tecsinapse/react-core");
10
9
 
11
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
11
 
13
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- //# sourceMappingURL=index.js.map
13
+
14
+ const StyledText = (0, _native.default)(_reactCore.Text)`
15
+ ${({
16
+ theme,
17
+ iconPosition,
18
+ hasIcon = false
19
+ }) => {
20
+ if (hasIcon && iconPosition === 'left') return (0, _native.css)`
21
+ margin-left: ${theme == null ? void 0 : theme.spacing.mili};
22
+ `;else if (hasIcon && iconPosition === 'right') return (0, _native.css)`
23
+ margin-right: ${theme == null ? void 0 : theme.spacing.mili};
24
+ `;
25
+ }}
26
+ `;
27
+ exports.StyledText = StyledText;
28
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/molecules/IconTextButton/styled.ts"],"names":["StyledText","Text","theme","iconPosition","hasIcon","spacing","mili"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEO,MAAMA,UAAU,GAAG,qBAAOC,eAAP,CAKxB;AACF,IAAI,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,YAAT;AAAuBC,EAAAA,OAAO,GAAG;AAAjC,CAAD,KAA8C;AAC9C,MAAIA,OAAO,IAAID,YAAY,KAAK,MAAhC,EACE,OAAO,gBAAI;AACjB,uBAAuBD,KADP,oBACOA,KAAK,CAAEG,OAAP,CAAeC,IAAK;AAC3C,OAFM,CADF,KAIK,IAAIF,OAAO,IAAID,YAAY,KAAK,OAAhC,EACH,OAAO,gBAAI;AACjB,wBAAwBD,KADR,oBACQA,KAAK,CAAEG,OAAP,CAAeC,IAAK;AAC5C,OAFM;AAGH,CAAC;AACJ,CAhBO","sourcesContent":["import styled, { css } from '@emotion/native';\nimport { IconPositionOptions, StyleProps, Text } from '@tecsinapse/react-core';\n\nexport const StyledText = styled(Text)<\n Partial<StyleProps> & {\n iconPosition: IconPositionOptions;\n hasIcon?: boolean;\n }\n>`\n ${({ theme, iconPosition, hasIcon = false }) => {\n if (hasIcon && iconPosition === 'left')\n return css`\n margin-left: ${theme?.spacing.mili};\n `;\n else if (hasIcon && iconPosition === 'right')\n return css`\n margin-right: ${theme?.spacing.mili};\n `;\n }}\n`;\n"],"file":"styled.js"}
@@ -0,0 +1,7 @@
1
+ import { SwitchProps } from '../../atoms/Switch';
2
+ export declare type LabelPositionOptions = 'left' | 'right';
3
+ export interface LabeledSwitchProps extends SwitchProps {
4
+ label: string;
5
+ labelPosition?: LabelPositionOptions;
6
+ pressableLabel?: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ //# sourceMappingURL=LabeledSwitch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"LabeledSwitch.js"}
@@ -0,0 +1 @@
1
+ export { LabeledSwitchProps, LabelPositionOptions } from './LabeledSwitch';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.LabelPositionOptions = exports.LabeledSwitchProps = void 0;
5
+
6
+ var _LabeledSwitch = require("./LabeledSwitch");
7
+
8
+ exports.LabeledSwitchProps = _LabeledSwitch.LabeledSwitchProps;
9
+ exports.LabelPositionOptions = _LabeledSwitch.LabelPositionOptions;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/molecules/LabeledSwitch/index.ts"],"names":[],"mappings":";;;;;AAAA","sourcesContent":["export { LabeledSwitchProps, LabelPositionOptions } from './LabeledSwitch';\n"],"file":"index.js"}
@@ -11,7 +11,7 @@ function useDebouncedState(initialState, timeoutCallback, timeoutMs = 166) {
11
11
  (0, _react.useEffect)(() => {
12
12
  if (timeoutId.current) clearTimeout(timeoutId.current);
13
13
  if (timeoutCallback) timeoutId.current = setTimeout(() => timeoutCallback(state), timeoutMs);
14
- }, [state, timeoutCallback]);
14
+ }, [state]);
15
15
  return [state, setState];
16
16
  }
17
17
  //# sourceMappingURL=useDebouncedState.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/useDebouncedState.ts"],"names":["useDebouncedState","initialState","timeoutCallback","timeoutMs","timeoutId","state","setState","current","clearTimeout","setTimeout"],"mappings":";;;;;AAAA;;AAOO,SAASA,iBAAT,CACLC,YADK,EAELC,eAFK,EAGLC,SAAS,GAAG,GAHP,EAI6B;AAClC,QAAMC,SAAS,GAAG,oBAAlB;AAEA,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoB,qBAAYL,YAAZ,CAA1B;AAEA,wBAAU,MAAM;AACd,QAAIG,SAAS,CAACG,OAAd,EAAuBC,YAAY,CAACJ,SAAS,CAACG,OAAX,CAAZ;AACvB,QAAIL,eAAJ,EACEE,SAAS,CAACG,OAAV,GAAoBE,UAAU,CAAC,MAAMP,eAAe,CAACG,KAAD,CAAtB,EAA+BF,SAA/B,CAA9B;AACH,GAJD,EAIG,CAACE,KAAD,EAAQH,eAAR,CAJH;AAMA,SAAO,CAACG,KAAD,EAAQC,QAAR,CAAP;AACD","sourcesContent":["import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';\n\n/**\n * @param initialState\n * @param timeoutCallback callback to be called after bouncing ends. Should be memoized.\n * @param timeoutMs\n */\nexport function useDebouncedState<S>(\n initialState: S | (() => S),\n timeoutCallback?: (state: S) => void,\n timeoutMs = 166\n): [S, Dispatch<SetStateAction<S>>] {\n const timeoutId = useRef<number>();\n\n const [state, setState] = useState<S>(initialState);\n\n useEffect(() => {\n if (timeoutId.current) clearTimeout(timeoutId.current);\n if (timeoutCallback)\n timeoutId.current = setTimeout(() => timeoutCallback(state), timeoutMs);\n }, [state, timeoutCallback]);\n\n return [state, setState];\n}\n"],"file":"useDebouncedState.js"}
1
+ {"version":3,"sources":["../../src/hooks/useDebouncedState.ts"],"names":["useDebouncedState","initialState","timeoutCallback","timeoutMs","timeoutId","state","setState","current","clearTimeout","setTimeout"],"mappings":";;;;;AAAA;;AAOO,SAASA,iBAAT,CACLC,YADK,EAELC,eAFK,EAGLC,SAAS,GAAG,GAHP,EAI6B;AAClC,QAAMC,SAAS,GAAG,oBAAlB;AAEA,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoB,qBAAYL,YAAZ,CAA1B;AAEA,wBAAU,MAAM;AACd,QAAIG,SAAS,CAACG,OAAd,EAAuBC,YAAY,CAACJ,SAAS,CAACG,OAAX,CAAZ;AACvB,QAAIL,eAAJ,EACEE,SAAS,CAACG,OAAV,GAAoBE,UAAU,CAAC,MAAMP,eAAe,CAACG,KAAD,CAAtB,EAA+BF,SAA/B,CAA9B;AACH,GAJD,EAIG,CAACE,KAAD,CAJH;AAMA,SAAO,CAACA,KAAD,EAAQC,QAAR,CAAP;AACD","sourcesContent":["import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';\n\n/**\n * @param initialState\n * @param timeoutCallback callback to be called after bouncing ends. Should be memoized.\n * @param timeoutMs\n */\nexport function useDebouncedState<S>(\n initialState: S | (() => S),\n timeoutCallback?: (state: S) => void,\n timeoutMs = 166\n): [S, Dispatch<SetStateAction<S>>] {\n const timeoutId = useRef<number>();\n\n const [state, setState] = useState<S>(initialState);\n\n useEffect(() => {\n if (timeoutId.current) clearTimeout(timeoutId.current);\n if (timeoutCallback)\n timeoutId.current = setTimeout(() => timeoutCallback(state), timeoutMs);\n }, [state]);\n\n return [state, setState];\n}\n"],"file":"useDebouncedState.js"}
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { Checkbox, CheckboxProps } from './components/atoms/Checkbox';
9
9
  export { Divider, DividerProps } from './components/atoms/Divider';
10
10
  export { GroupButton, GroupButtonOption, GroupButtonOptionProps, GroupButtonProps, GroupButtonValue, } from './components/atoms/GroupButton';
11
11
  export { Icon, IconProps } from './components/atoms/Icon';
12
- export { Hint, InputContainer, InputContainerProps, InputElement, InputElementProps, InputMaskElement, InputMaskElementProps, InputVariantType, PressableInputContainer, PressableInputContainerProps, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask, disabledInputStyles, } from './components/atoms/Input';
12
+ export { disabledInputStyles, Hint, InputContainer, InputContainerProps, InputElement, InputElementProps, InputMaskElement, InputMaskElementProps, InputVariantType, PressableInputContainer, PressableInputContainerProps, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask, } from './components/atoms/Input';
13
13
  export { Paper, PaperProps } from './components/atoms/Paper';
14
14
  export { PressableSurface, PressableSurfaceProps, } from './components/atoms/PressableSurface';
15
15
  export { ProgressBar, ProgressBarProps } from './components/atoms/ProgressBar';
@@ -21,14 +21,16 @@ export { Calendar, CalendarProps, DateRange, SelectionType, Value, } from './com
21
21
  export { DatePicker, DatePickerProps } from './components/molecules/DatePicker';
22
22
  export { DateTimePicker, DateTimePickerProps, } from './components/molecules/DateTimePicker';
23
23
  export { DateTimeSelector, DateTimeSelectorMode, DateTimeSelectorProps, } from './components/molecules/DateTimeSelector';
24
+ export * from './components/molecules/Grid';
25
+ export { HintInputContainer, HintInputContainerProps, } from './components/molecules/HintInputContainer';
26
+ export { IconComponent, IconPositionOptions, IconTextButtonProps, } from './components/molecules/IconTextButton';
24
27
  export { InputPasswordIcon } from './components/molecules/InputPassword';
28
+ export { LabeledSwitchProps, LabelPositionOptions, } from './components/molecules/LabeledSwitch';
25
29
  export { Snackbar, SnackbarProps } from './components/molecules/Snackbar';
26
- export { HintInputContainer, HintInputContainerProps, } from './components/molecules/HintInputContainer';
27
- export { TextArea, TextAreaProps, TextAreaInputBase, } from './components/molecules/TextArea';
28
- export { GridItem, Grid, IGridItem, IGrid } from './components/molecules/Grid';
30
+ export { TextArea, TextAreaInputBase, TextAreaProps, } from './components/molecules/TextArea';
31
+ export * from './hooks';
29
32
  export * from './styles/definitions';
30
33
  export * from './styles/light';
31
34
  export { default as ThemeProvider } from './styles/ThemeProvider';
32
35
  export * from './types/defaults';
33
36
  export * from './utils';
34
- export * from './hooks';
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ var _exportNames = {
33
33
  GroupButtonValue: true,
34
34
  Icon: true,
35
35
  IconProps: true,
36
+ disabledInputStyles: true,
36
37
  Hint: true,
37
38
  InputContainer: true,
38
39
  InputContainerProps: true,
@@ -47,7 +48,6 @@ var _exportNames = {
47
48
  useInputFocus: true,
48
49
  useNumberMask: true,
49
50
  useStringMask: true,
50
- disabledInputStyles: true,
51
51
  Paper: true,
52
52
  PaperProps: true,
53
53
  PressableSurface: true,
@@ -74,21 +74,22 @@ var _exportNames = {
74
74
  DateTimeSelector: true,
75
75
  DateTimeSelectorMode: true,
76
76
  DateTimeSelectorProps: true,
77
+ HintInputContainer: true,
78
+ HintInputContainerProps: true,
79
+ IconComponent: true,
80
+ IconPositionOptions: true,
81
+ IconTextButtonProps: true,
77
82
  InputPasswordIcon: true,
83
+ LabeledSwitchProps: true,
84
+ LabelPositionOptions: true,
78
85
  Snackbar: true,
79
86
  SnackbarProps: true,
80
- HintInputContainer: true,
81
- HintInputContainerProps: true,
82
87
  TextArea: true,
83
- TextAreaProps: true,
84
88
  TextAreaInputBase: true,
85
- GridItem: true,
86
- Grid: true,
87
- IGridItem: true,
88
- IGrid: true,
89
+ TextAreaProps: true,
89
90
  ThemeProvider: true
90
91
  };
91
- exports.ThemeProvider = exports.IGrid = exports.IGridItem = exports.Grid = exports.GridItem = exports.TextAreaInputBase = exports.TextAreaProps = exports.TextArea = exports.HintInputContainerProps = exports.HintInputContainer = exports.SnackbarProps = exports.Snackbar = exports.InputPasswordIcon = exports.DateTimeSelectorProps = exports.DateTimeSelectorMode = exports.DateTimeSelector = exports.DateTimePickerProps = exports.DateTimePicker = exports.DatePickerProps = exports.DatePicker = exports.Value = exports.SelectionType = exports.DateRange = exports.CalendarProps = exports.Calendar = exports.TextProps = exports.Text = exports.TagProps = exports.Tag = exports.SwitchProps = exports.Switch = exports.RadioButtonProps = exports.RadioButton = exports.ProgressBarProps = exports.ProgressBar = exports.PressableSurfaceProps = exports.PressableSurface = exports.PaperProps = exports.Paper = exports.disabledInputStyles = exports.useStringMask = exports.useNumberMask = exports.useInputFocus = exports.StyledBorderKeeper = exports.PressableInputContainerProps = exports.PressableInputContainer = exports.InputVariantType = exports.InputMaskElementProps = exports.InputMaskElement = exports.InputElementProps = exports.InputElement = exports.InputContainerProps = exports.InputContainer = exports.Hint = exports.IconProps = exports.Icon = exports.GroupButtonValue = exports.GroupButtonProps = exports.GroupButtonOptionProps = exports.GroupButtonOption = exports.GroupButton = exports.DividerProps = exports.Divider = exports.CheckboxProps = exports.Checkbox = exports.HeaderProps = exports.Header = exports.FooterProps = exports.Footer = exports.CardProps = exports.Card = exports.Success = exports.Loading = exports.Error = exports.ButtonStateType = exports.ButtonStateProps = exports.ButtonSizeType = exports.ButtonProps = exports.Button = exports.BoxContentProps = exports.BoxContent = exports.BadgeProps = exports.Badge = exports.AvatarProps = exports.Avatar = void 0;
92
+ exports.ThemeProvider = exports.TextAreaProps = exports.TextAreaInputBase = exports.TextArea = exports.SnackbarProps = exports.Snackbar = exports.LabelPositionOptions = exports.LabeledSwitchProps = exports.InputPasswordIcon = exports.IconTextButtonProps = exports.IconPositionOptions = exports.IconComponent = exports.HintInputContainerProps = exports.HintInputContainer = exports.DateTimeSelectorProps = exports.DateTimeSelectorMode = exports.DateTimeSelector = exports.DateTimePickerProps = exports.DateTimePicker = exports.DatePickerProps = exports.DatePicker = exports.Value = exports.SelectionType = exports.DateRange = exports.CalendarProps = exports.Calendar = exports.TextProps = exports.Text = exports.TagProps = exports.Tag = exports.SwitchProps = exports.Switch = exports.RadioButtonProps = exports.RadioButton = exports.ProgressBarProps = exports.ProgressBar = exports.PressableSurfaceProps = exports.PressableSurface = exports.PaperProps = exports.Paper = exports.useStringMask = exports.useNumberMask = exports.useInputFocus = exports.StyledBorderKeeper = exports.PressableInputContainerProps = exports.PressableInputContainer = exports.InputVariantType = exports.InputMaskElementProps = exports.InputMaskElement = exports.InputElementProps = exports.InputElement = exports.InputContainerProps = exports.InputContainer = exports.Hint = exports.disabledInputStyles = exports.IconProps = exports.Icon = exports.GroupButtonValue = exports.GroupButtonProps = exports.GroupButtonOptionProps = exports.GroupButtonOption = exports.GroupButton = exports.DividerProps = exports.Divider = exports.CheckboxProps = exports.Checkbox = exports.HeaderProps = exports.Header = exports.FooterProps = exports.Footer = exports.CardProps = exports.Card = exports.Success = exports.Loading = exports.Error = exports.ButtonStateType = exports.ButtonStateProps = exports.ButtonSizeType = exports.ButtonProps = exports.Button = exports.BoxContentProps = exports.BoxContent = exports.BadgeProps = exports.Badge = exports.AvatarProps = exports.Avatar = void 0;
92
93
 
93
94
  var _Avatar = require("./components/atoms/Avatar");
94
95
 
@@ -156,6 +157,7 @@ exports.IconProps = _Icon.IconProps;
156
157
 
157
158
  var _Input = require("./components/atoms/Input");
158
159
 
160
+ exports.disabledInputStyles = _Input.disabledInputStyles;
159
161
  exports.Hint = _Input.Hint;
160
162
  exports.InputContainer = _Input.InputContainer;
161
163
  exports.InputContainerProps = _Input.InputContainerProps;
@@ -170,7 +172,6 @@ exports.StyledBorderKeeper = _Input.StyledBorderKeeper;
170
172
  exports.useInputFocus = _Input.useInputFocus;
171
173
  exports.useNumberMask = _Input.useNumberMask;
172
174
  exports.useStringMask = _Input.useStringMask;
173
- exports.disabledInputStyles = _Input.disabledInputStyles;
174
175
 
175
176
  var _Paper = require("./components/atoms/Paper");
176
177
 
@@ -231,32 +232,54 @@ exports.DateTimeSelector = _DateTimeSelector.DateTimeSelector;
231
232
  exports.DateTimeSelectorMode = _DateTimeSelector.DateTimeSelectorMode;
232
233
  exports.DateTimeSelectorProps = _DateTimeSelector.DateTimeSelectorProps;
233
234
 
235
+ var _Grid = require("./components/molecules/Grid");
236
+
237
+ Object.keys(_Grid).forEach(function (key) {
238
+ if (key === "default" || key === "__esModule") return;
239
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
240
+ if (key in exports && exports[key] === _Grid[key]) return;
241
+ exports[key] = _Grid[key];
242
+ });
243
+
244
+ var _HintInputContainer = require("./components/molecules/HintInputContainer");
245
+
246
+ exports.HintInputContainer = _HintInputContainer.HintInputContainer;
247
+ exports.HintInputContainerProps = _HintInputContainer.HintInputContainerProps;
248
+
249
+ var _IconTextButton = require("./components/molecules/IconTextButton");
250
+
251
+ exports.IconComponent = _IconTextButton.IconComponent;
252
+ exports.IconPositionOptions = _IconTextButton.IconPositionOptions;
253
+ exports.IconTextButtonProps = _IconTextButton.IconTextButtonProps;
254
+
234
255
  var _InputPassword = require("./components/molecules/InputPassword");
235
256
 
236
257
  exports.InputPasswordIcon = _InputPassword.InputPasswordIcon;
237
258
 
259
+ var _LabeledSwitch = require("./components/molecules/LabeledSwitch");
260
+
261
+ exports.LabeledSwitchProps = _LabeledSwitch.LabeledSwitchProps;
262
+ exports.LabelPositionOptions = _LabeledSwitch.LabelPositionOptions;
263
+
238
264
  var _Snackbar = require("./components/molecules/Snackbar");
239
265
 
240
266
  exports.Snackbar = _Snackbar.Snackbar;
241
267
  exports.SnackbarProps = _Snackbar.SnackbarProps;
242
268
 
243
- var _HintInputContainer = require("./components/molecules/HintInputContainer");
244
-
245
- exports.HintInputContainer = _HintInputContainer.HintInputContainer;
246
- exports.HintInputContainerProps = _HintInputContainer.HintInputContainerProps;
247
-
248
269
  var _TextArea = require("./components/molecules/TextArea");
249
270
 
250
271
  exports.TextArea = _TextArea.TextArea;
251
- exports.TextAreaProps = _TextArea.TextAreaProps;
252
272
  exports.TextAreaInputBase = _TextArea.TextAreaInputBase;
273
+ exports.TextAreaProps = _TextArea.TextAreaProps;
253
274
 
254
- var _Grid = require("./components/molecules/Grid");
275
+ var _hooks = require("./hooks");
255
276
 
256
- exports.GridItem = _Grid.GridItem;
257
- exports.Grid = _Grid.Grid;
258
- exports.IGridItem = _Grid.IGridItem;
259
- exports.IGrid = _Grid.IGrid;
277
+ Object.keys(_hooks).forEach(function (key) {
278
+ if (key === "default" || key === "__esModule") return;
279
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
280
+ if (key in exports && exports[key] === _hooks[key]) return;
281
+ exports[key] = _hooks[key];
282
+ });
260
283
 
261
284
  var _definitions = require("./styles/definitions");
262
285
 
@@ -298,14 +321,5 @@ Object.keys(_utils).forEach(function (key) {
298
321
  exports[key] = _utils[key];
299
322
  });
300
323
 
301
- var _hooks = require("./hooks");
302
-
303
- Object.keys(_hooks).forEach(function (key) {
304
- if (key === "default" || key === "__esModule") return;
305
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
306
- if (key in exports && exports[key] === _hooks[key]) return;
307
- exports[key] = _hooks[key];
308
- });
309
-
310
324
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
311
325
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;;;;AAUA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;AAOA;;;;;AACA;;;;;;;;;;;;;;;;;;AAiBA;;;;;AACA;;;;;AAIA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;AAOA;;;;;AACA;;;;;AAIA;;;;;;AAKA;;;;AACA;;;;;AACA;;;;;AAIA;;;;;;AAKA;;;;;;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { Avatar, AvatarProps } from './components/atoms/Avatar';\nexport { Badge, BadgeProps } from './components/atoms/Badge';\nexport { BoxContent, BoxContentProps } from './components/atoms/BoxContent';\nexport {\n Button,\n ButtonProps,\n ButtonSizeType,\n ButtonStateProps,\n ButtonStateType,\n Error,\n Loading,\n Success,\n} from './components/atoms/Button';\nexport { Card, CardProps } from './components/atoms/Card';\nexport { Footer, FooterProps } from './components/atoms/Card/Footer';\nexport { Header, HeaderProps } from './components/atoms/Card/Header';\nexport { Checkbox, CheckboxProps } from './components/atoms/Checkbox';\nexport { Divider, DividerProps } from './components/atoms/Divider';\nexport {\n GroupButton,\n GroupButtonOption,\n GroupButtonOptionProps,\n GroupButtonProps,\n GroupButtonValue,\n} from './components/atoms/GroupButton';\nexport { Icon, IconProps } from './components/atoms/Icon';\nexport {\n Hint,\n InputContainer,\n InputContainerProps,\n InputElement,\n InputElementProps,\n InputMaskElement,\n InputMaskElementProps,\n InputVariantType,\n PressableInputContainer,\n PressableInputContainerProps,\n StyledBorderKeeper,\n useInputFocus,\n useNumberMask,\n useStringMask,\n disabledInputStyles,\n} from './components/atoms/Input';\nexport { Paper, PaperProps } from './components/atoms/Paper';\nexport {\n PressableSurface,\n PressableSurfaceProps,\n} from './components/atoms/PressableSurface';\nexport { ProgressBar, ProgressBarProps } from './components/atoms/ProgressBar';\nexport { RadioButton, RadioButtonProps } from './components/atoms/RadioButton';\nexport { Switch, SwitchProps } from './components/atoms/Switch';\nexport { Tag, TagProps } from './components/atoms/Tag';\nexport { Text, TextProps } from './components/atoms/Text';\nexport {\n Calendar,\n CalendarProps,\n DateRange,\n SelectionType,\n Value,\n} from './components/molecules/Calendar';\nexport { DatePicker, DatePickerProps } from './components/molecules/DatePicker';\nexport {\n DateTimePicker,\n DateTimePickerProps,\n} from './components/molecules/DateTimePicker';\nexport {\n DateTimeSelector,\n DateTimeSelectorMode,\n DateTimeSelectorProps,\n} from './components/molecules/DateTimeSelector';\nexport { InputPasswordIcon } from './components/molecules/InputPassword';\nexport { Snackbar, SnackbarProps } from './components/molecules/Snackbar';\nexport {\n HintInputContainer,\n HintInputContainerProps,\n} from './components/molecules/HintInputContainer';\nexport {\n TextArea,\n TextAreaProps,\n TextAreaInputBase,\n} from './components/molecules/TextArea';\nexport { GridItem, Grid, IGridItem, IGrid } from './components/molecules/Grid';\nexport * from './styles/definitions';\nexport * from './styles/light';\nexport { default as ThemeProvider } from './styles/ThemeProvider';\nexport * from './types/defaults';\nexport * from './utils';\nexport * from './hooks';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;;;;AAUA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;AAOA;;;;;AACA;;;;;;;;;;;;;;;;;;AAiBA;;;;;AACA;;;;;AAIA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;AAOA;;;;;AACA;;;;;AAIA;;;;;;AAKA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;;;;AAIA;;;;;;AAKA;;;;AACA;;;;;AAIA;;;;;AACA;;;;;;AAKA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { Avatar, AvatarProps } from './components/atoms/Avatar';\nexport { Badge, BadgeProps } from './components/atoms/Badge';\nexport { BoxContent, BoxContentProps } from './components/atoms/BoxContent';\nexport {\n Button,\n ButtonProps,\n ButtonSizeType,\n ButtonStateProps,\n ButtonStateType,\n Error,\n Loading,\n Success,\n} from './components/atoms/Button';\nexport { Card, CardProps } from './components/atoms/Card';\nexport { Footer, FooterProps } from './components/atoms/Card/Footer';\nexport { Header, HeaderProps } from './components/atoms/Card/Header';\nexport { Checkbox, CheckboxProps } from './components/atoms/Checkbox';\nexport { Divider, DividerProps } from './components/atoms/Divider';\nexport {\n GroupButton,\n GroupButtonOption,\n GroupButtonOptionProps,\n GroupButtonProps,\n GroupButtonValue,\n} from './components/atoms/GroupButton';\nexport { Icon, IconProps } from './components/atoms/Icon';\nexport {\n disabledInputStyles,\n Hint,\n InputContainer,\n InputContainerProps,\n InputElement,\n InputElementProps,\n InputMaskElement,\n InputMaskElementProps,\n InputVariantType,\n PressableInputContainer,\n PressableInputContainerProps,\n StyledBorderKeeper,\n useInputFocus,\n useNumberMask,\n useStringMask,\n} from './components/atoms/Input';\nexport { Paper, PaperProps } from './components/atoms/Paper';\nexport {\n PressableSurface,\n PressableSurfaceProps,\n} from './components/atoms/PressableSurface';\nexport { ProgressBar, ProgressBarProps } from './components/atoms/ProgressBar';\nexport { RadioButton, RadioButtonProps } from './components/atoms/RadioButton';\nexport { Switch, SwitchProps } from './components/atoms/Switch';\nexport { Tag, TagProps } from './components/atoms/Tag';\nexport { Text, TextProps } from './components/atoms/Text';\nexport {\n Calendar,\n CalendarProps,\n DateRange,\n SelectionType,\n Value,\n} from './components/molecules/Calendar';\nexport { DatePicker, DatePickerProps } from './components/molecules/DatePicker';\nexport {\n DateTimePicker,\n DateTimePickerProps,\n} from './components/molecules/DateTimePicker';\nexport {\n DateTimeSelector,\n DateTimeSelectorMode,\n DateTimeSelectorProps,\n} from './components/molecules/DateTimeSelector';\nexport * from './components/molecules/Grid';\nexport {\n HintInputContainer,\n HintInputContainerProps,\n} from './components/molecules/HintInputContainer';\nexport {\n IconComponent,\n IconPositionOptions,\n IconTextButtonProps,\n} from './components/molecules/IconTextButton';\nexport { InputPasswordIcon } from './components/molecules/InputPassword';\nexport {\n LabeledSwitchProps,\n LabelPositionOptions,\n} from './components/molecules/LabeledSwitch';\nexport { Snackbar, SnackbarProps } from './components/molecules/Snackbar';\nexport {\n TextArea,\n TextAreaInputBase,\n TextAreaProps,\n} from './components/molecules/TextArea';\nexport * from './hooks';\nexport * from './styles/definitions';\nexport * from './styles/light';\nexport { default as ThemeProvider } from './styles/ThemeProvider';\nexport * from './types/defaults';\nexport * from './utils';\n"],"file":"index.js"}
@@ -1,4 +1,4 @@
1
- import { BorderRadius, BorderWidth, FontColor, FontStack, FontWeight, IconSize, Miscellaneous, Spacing, TypographyVariation, ZIndex } from '../types/defaults';
1
+ import { BorderRadius, BorderWidth, Breakpoints, FontColor, FontStack, FontWeight, IconSize, Miscellaneous, Spacing, TypographyVariation, ZIndex } from '../types/defaults';
2
2
  export declare const statusColor: {
3
3
  error: {
4
4
  xlight: string;
@@ -42,3 +42,4 @@ export declare const fontFiles: FontWeight;
42
42
  export declare const fontColor: FontColor;
43
43
  export declare const zIndex: ZIndex;
44
44
  export declare type IconType = 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo' | 'antdesign' | 'font-awesome-5' | string;
45
+ export declare const breakpoints: Breakpoints;