@1ry/basic-react-primitive-components 0.1.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 (106) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +3 -0
  3. package/lib/components/Box.d.ts +11 -0
  4. package/lib/components/Box.d.ts.map +1 -0
  5. package/lib/components/Box.js +65 -0
  6. package/lib/components/Box.js.map +1 -0
  7. package/lib/components/Box.mjs +59 -0
  8. package/lib/components/Box.mjs.map +1 -0
  9. package/lib/components/Button.d.ts +10 -0
  10. package/lib/components/Button.d.ts.map +1 -0
  11. package/lib/components/Button.js +44 -0
  12. package/lib/components/Button.js.map +1 -0
  13. package/lib/components/Button.mjs +38 -0
  14. package/lib/components/Button.mjs.map +1 -0
  15. package/lib/components/Card.d.ts +8 -0
  16. package/lib/components/Card.d.ts.map +1 -0
  17. package/lib/components/Card.js +26 -0
  18. package/lib/components/Card.js.map +1 -0
  19. package/lib/components/Card.mjs +20 -0
  20. package/lib/components/Card.mjs.map +1 -0
  21. package/lib/components/ErrorMessage.d.ts +10 -0
  22. package/lib/components/ErrorMessage.d.ts.map +1 -0
  23. package/lib/components/ErrorMessage.js +31 -0
  24. package/lib/components/ErrorMessage.js.map +1 -0
  25. package/lib/components/ErrorMessage.mjs +25 -0
  26. package/lib/components/ErrorMessage.mjs.map +1 -0
  27. package/lib/components/IconButton.d.ts +12 -0
  28. package/lib/components/IconButton.d.ts.map +1 -0
  29. package/lib/components/IconButton.js +35 -0
  30. package/lib/components/IconButton.js.map +1 -0
  31. package/lib/components/IconButton.mjs +29 -0
  32. package/lib/components/IconButton.mjs.map +1 -0
  33. package/lib/components/Input.d.ts +13 -0
  34. package/lib/components/Input.d.ts.map +1 -0
  35. package/lib/components/Input.js +28 -0
  36. package/lib/components/Input.js.map +1 -0
  37. package/lib/components/Input.mjs +22 -0
  38. package/lib/components/Input.mjs.map +1 -0
  39. package/lib/components/Modal.d.ts +19 -0
  40. package/lib/components/Modal.d.ts.map +1 -0
  41. package/lib/components/Modal.js +40 -0
  42. package/lib/components/Modal.js.map +1 -0
  43. package/lib/components/Modal.mjs +34 -0
  44. package/lib/components/Modal.mjs.map +1 -0
  45. package/lib/components/Text.d.ts +16 -0
  46. package/lib/components/Text.d.ts.map +1 -0
  47. package/lib/components/Text.js +37 -0
  48. package/lib/components/Text.js.map +1 -0
  49. package/lib/components/Text.mjs +31 -0
  50. package/lib/components/Text.mjs.map +1 -0
  51. package/lib/index.css +1 -0
  52. package/lib/index.d.ts +9 -0
  53. package/lib/index.d.ts.map +1 -0
  54. package/lib/index.js +22 -0
  55. package/lib/index.js.map +1 -0
  56. package/lib/index.mjs +9 -0
  57. package/lib/index.mjs.map +1 -0
  58. package/lib/styles/Button.module.scss.js +8 -0
  59. package/lib/styles/Button.module.scss.js.map +1 -0
  60. package/lib/styles/Button.module.scss.mjs +4 -0
  61. package/lib/styles/Button.module.scss.mjs.map +1 -0
  62. package/lib/styles/Card.module.scss.js +8 -0
  63. package/lib/styles/Card.module.scss.js.map +1 -0
  64. package/lib/styles/Card.module.scss.mjs +4 -0
  65. package/lib/styles/Card.module.scss.mjs.map +1 -0
  66. package/lib/styles/ErrorMessage.module.scss.js +8 -0
  67. package/lib/styles/ErrorMessage.module.scss.js.map +1 -0
  68. package/lib/styles/ErrorMessage.module.scss.mjs +4 -0
  69. package/lib/styles/ErrorMessage.module.scss.mjs.map +1 -0
  70. package/lib/styles/IconButton.module.scss.js +8 -0
  71. package/lib/styles/IconButton.module.scss.js.map +1 -0
  72. package/lib/styles/IconButton.module.scss.mjs +4 -0
  73. package/lib/styles/IconButton.module.scss.mjs.map +1 -0
  74. package/lib/styles/Modal.module.scss.js +8 -0
  75. package/lib/styles/Modal.module.scss.js.map +1 -0
  76. package/lib/styles/Modal.module.scss.mjs +4 -0
  77. package/lib/styles/Modal.module.scss.mjs.map +1 -0
  78. package/lib/styles/Text.module.scss.js +8 -0
  79. package/lib/styles/Text.module.scss.js.map +1 -0
  80. package/lib/styles/Text.module.scss.mjs +4 -0
  81. package/lib/styles/Text.module.scss.mjs.map +1 -0
  82. package/lib/types/Padding.d.ts +13 -0
  83. package/lib/types/Padding.d.ts.map +1 -0
  84. package/lib/types/Padding.js +15 -0
  85. package/lib/types/Padding.js.map +1 -0
  86. package/lib/types/Padding.mjs +13 -0
  87. package/lib/types/Padding.mjs.map +1 -0
  88. package/lib/types/TextFont.d.ts +13 -0
  89. package/lib/types/TextFont.d.ts.map +1 -0
  90. package/lib/types/TextFont.js +16 -0
  91. package/lib/types/TextFont.js.map +1 -0
  92. package/lib/types/TextFont.mjs +14 -0
  93. package/lib/types/TextFont.mjs.map +1 -0
  94. package/lib/types/TextSizing.d.ts +3 -0
  95. package/lib/types/TextSizing.d.ts.map +1 -0
  96. package/lib/types/TextSizing.js +13 -0
  97. package/lib/types/TextSizing.js.map +1 -0
  98. package/lib/types/TextSizing.mjs +11 -0
  99. package/lib/types/TextSizing.mjs.map +1 -0
  100. package/lib/types/TextVariant.d.ts +3 -0
  101. package/lib/types/TextVariant.d.ts.map +1 -0
  102. package/lib/types/TextVariant.js +10 -0
  103. package/lib/types/TextVariant.js.map +1 -0
  104. package/lib/types/TextVariant.mjs +8 -0
  105. package/lib/types/TextVariant.mjs.map +1 -0
  106. package/package.json +146 -0
package/lib/index.js ADDED
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var Box = require('./components/Box.js');
4
+ var Button = require('./components/Button.js');
5
+ var Card = require('./components/Card.js');
6
+ var ErrorMessage = require('./components/ErrorMessage.js');
7
+ var IconButton = require('./components/IconButton.js');
8
+ var Text = require('./components/Text.js');
9
+ var Input = require('./components/Input.js');
10
+ var Modal = require('./components/Modal.js');
11
+
12
+
13
+
14
+ exports.Box = Box.Box;
15
+ exports.Button = Button.Button;
16
+ exports.Card = Card.Card;
17
+ exports.ErrorMessage = ErrorMessage.ErrorMessage;
18
+ exports.IconButton = IconButton.IconButton;
19
+ exports.Text = Text.Text;
20
+ exports.Input = Input.Input;
21
+ exports.Modal = Modal.Modal;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
package/lib/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ export { Box } from './components/Box.mjs';
2
+ export { Button } from './components/Button.mjs';
3
+ export { Card } from './components/Card.mjs';
4
+ export { ErrorMessage } from './components/ErrorMessage.mjs';
5
+ export { IconButton } from './components/IconButton.mjs';
6
+ export { Text } from './components/Text.mjs';
7
+ export { Input } from './components/Input.mjs';
8
+ export { Modal } from './components/Modal.mjs';
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"glow":"Button-module_glow__kLSOA","transparent":"Button-module_transparent__2-Nvv"};
6
+
7
+ exports.default = styles;
8
+ //# sourceMappingURL=Button.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var styles = {"glow":"Button-module_glow__kLSOA","transparent":"Button-module_transparent__2-Nvv"};
2
+
3
+ export { styles as default };
4
+ //# sourceMappingURL=Button.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"cardBase":"Card-module_cardBase__Ci80k","noBorder":"Card-module_noBorder__TpVru"};
6
+
7
+ exports.default = styles;
8
+ //# sourceMappingURL=Card.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var styles = {"cardBase":"Card-module_cardBase__Ci80k","noBorder":"Card-module_noBorder__TpVru"};
2
+
3
+ export { styles as default };
4
+ //# sourceMappingURL=Card.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"errorMessageBase":"ErrorMessage-module_errorMessageBase__nhkCL","critical":"ErrorMessage-module_critical__YZit5","warning":"ErrorMessage-module_warning__Lzf8G"};
6
+
7
+ exports.default = styles;
8
+ //# sourceMappingURL=ErrorMessage.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var styles = {"errorMessageBase":"ErrorMessage-module_errorMessageBase__nhkCL","critical":"ErrorMessage-module_critical__YZit5","warning":"ErrorMessage-module_warning__Lzf8G"};
2
+
3
+ export { styles as default };
4
+ //# sourceMappingURL=ErrorMessage.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ibStyles = {"iconButtonBase":"IconButton-module_iconButtonBase__gqXri"};
6
+
7
+ exports.default = ibStyles;
8
+ //# sourceMappingURL=IconButton.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var ibStyles = {"iconButtonBase":"IconButton-module_iconButtonBase__gqXri"};
2
+
3
+ export { ibStyles as default };
4
+ //# sourceMappingURL=IconButton.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var MODALSTYLES = {};
6
+
7
+ exports.default = MODALSTYLES;
8
+ //# sourceMappingURL=Modal.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var MODALSTYLES = {};
2
+
3
+ export { MODALSTYLES as default };
4
+ //# sourceMappingURL=Modal.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styles = {"TextComponent":"Text-module_TextComponent__VMcCh"};
6
+
7
+ exports.default = styles;
8
+ //# sourceMappingURL=Text.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var styles = {"TextComponent":"Text-module_TextComponent__VMcCh"};
2
+
3
+ export { styles as default };
4
+ //# sourceMappingURL=Text.module.scss.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Defines the allowed padding sizes for the Text component.
3
+ * @type {PaddingSize}
4
+ * @typedef {'none' | '10' | '20'} PaddingSize
5
+ */
6
+ export type PaddingSize = 'none' | '10' | '20';
7
+ /**
8
+ * Maps padding sizes to their corresponding CSS classes.
9
+ * @type {Record<PaddingSize, string>}
10
+ * @constant
11
+ */
12
+ export declare const PADDING_MAP: Record<PaddingSize, string>;
13
+ //# sourceMappingURL=Padding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Padding.d.ts","sourceRoot":"","sources":["../../src/types/Padding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;AAC9C;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAInD,CAAA"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Maps padding sizes to their corresponding CSS classes.
5
+ * @type {Record<PaddingSize, string>}
6
+ * @constant
7
+ */
8
+ const PADDING_MAP = {
9
+ none: '',
10
+ '10': 'ps-10',
11
+ '20': 'ps-20',
12
+ };
13
+
14
+ exports.PADDING_MAP = PADDING_MAP;
15
+ //# sourceMappingURL=Padding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Padding.js","sources":["../../src/types/Padding.ts"],"sourcesContent":["/**\n * Defines the allowed padding sizes for the Text component.\n * @type {PaddingSize}\n * @typedef {'none' | '10' | '20'} PaddingSize\n */\nexport type PaddingSize = 'none' | '10' | '20'\n/**\n * Maps padding sizes to their corresponding CSS classes.\n * @type {Record<PaddingSize, string>}\n * @constant\n */\nexport const PADDING_MAP: Record<PaddingSize, string> = {\n\tnone: '',\n\t'10': 'ps-10',\n\t'20': 'ps-20',\n}\n"],"names":[],"mappings":";;AAMA;;;;AAIG;AACI,MAAM,WAAW,GAAgC;AACvD,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,IAAI,EAAE,OAAO;;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Maps padding sizes to their corresponding CSS classes.
3
+ * @type {Record<PaddingSize, string>}
4
+ * @constant
5
+ */
6
+ const PADDING_MAP = {
7
+ none: '',
8
+ '10': 'ps-10',
9
+ '20': 'ps-20',
10
+ };
11
+
12
+ export { PADDING_MAP };
13
+ //# sourceMappingURL=Padding.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Padding.mjs","sources":["../../src/types/Padding.ts"],"sourcesContent":["/**\n * Defines the allowed padding sizes for the Text component.\n * @type {PaddingSize}\n * @typedef {'none' | '10' | '20'} PaddingSize\n */\nexport type PaddingSize = 'none' | '10' | '20'\n/**\n * Maps padding sizes to their corresponding CSS classes.\n * @type {Record<PaddingSize, string>}\n * @constant\n */\nexport const PADDING_MAP: Record<PaddingSize, string> = {\n\tnone: '',\n\t'10': 'ps-10',\n\t'20': 'ps-20',\n}\n"],"names":[],"mappings":"AAMA;;;;AAIG;AACI,MAAM,WAAW,GAAgC;AACvD,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,IAAI,EAAE,OAAO;;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Defines the allowed font weights for the Text component.
3
+ * @type {TextFontWeight}
4
+ * @typedef {'normal' | 'medium' | 'semibold' | 'bold'} TextFontWeight
5
+ */
6
+ export type TextFontWeight = 'normal' | 'medium' | 'semibold' | 'bold';
7
+ /**
8
+ * Maps font weights to their corresponding CSS classes.
9
+ * @type {Record<TextFontWeight, string>}
10
+ * @constant
11
+ */
12
+ export declare const FONT_MAP: Record<TextFontWeight, string>;
13
+ //# sourceMappingURL=TextFont.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFont.d.ts","sourceRoot":"","sources":["../../src/types/TextFont.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;AACtE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKnD,CAAA"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Maps font weights to their corresponding CSS classes.
5
+ * @type {Record<TextFontWeight, string>}
6
+ * @constant
7
+ */
8
+ const FONT_MAP = {
9
+ normal: 'font-normal',
10
+ medium: 'font-medium',
11
+ semibold: 'font-semibold',
12
+ bold: 'font-bold',
13
+ };
14
+
15
+ exports.FONT_MAP = FONT_MAP;
16
+ //# sourceMappingURL=TextFont.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFont.js","sources":["../../src/types/TextFont.ts"],"sourcesContent":["/**\n * Defines the allowed font weights for the Text component.\n * @type {TextFontWeight}\n * @typedef {'normal' | 'medium' | 'semibold' | 'bold'} TextFontWeight\n */\nexport type TextFontWeight = 'normal' | 'medium' | 'semibold' | 'bold'\n/**\n * Maps font weights to their corresponding CSS classes.\n * @type {Record<TextFontWeight, string>}\n * @constant\n */\nexport const FONT_MAP: Record<TextFontWeight, string> = {\n\tnormal: 'font-normal',\n\tmedium: 'font-medium',\n\tsemibold: 'font-semibold',\n\tbold: 'font-bold',\n}\n"],"names":[],"mappings":";;AAMA;;;;AAIG;AACI,MAAM,QAAQ,GAAmC;AACvD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,QAAQ,EAAE,eAAe;AACzB,IAAA,IAAI,EAAE,WAAW;;;;;"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Maps font weights to their corresponding CSS classes.
3
+ * @type {Record<TextFontWeight, string>}
4
+ * @constant
5
+ */
6
+ const FONT_MAP = {
7
+ normal: 'font-normal',
8
+ medium: 'font-medium',
9
+ semibold: 'font-semibold',
10
+ bold: 'font-bold',
11
+ };
12
+
13
+ export { FONT_MAP };
14
+ //# sourceMappingURL=TextFont.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextFont.mjs","sources":["../../src/types/TextFont.ts"],"sourcesContent":["/**\n * Defines the allowed font weights for the Text component.\n * @type {TextFontWeight}\n * @typedef {'normal' | 'medium' | 'semibold' | 'bold'} TextFontWeight\n */\nexport type TextFontWeight = 'normal' | 'medium' | 'semibold' | 'bold'\n/**\n * Maps font weights to their corresponding CSS classes.\n * @type {Record<TextFontWeight, string>}\n * @constant\n */\nexport const FONT_MAP: Record<TextFontWeight, string> = {\n\tnormal: 'font-normal',\n\tmedium: 'font-medium',\n\tsemibold: 'font-semibold',\n\tbold: 'font-bold',\n}\n"],"names":[],"mappings":"AAMA;;;;AAIG;AACI,MAAM,QAAQ,GAAmC;AACvD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,QAAQ,EAAE,eAAe;AACzB,IAAA,IAAI,EAAE,WAAW;;;;;"}
@@ -0,0 +1,3 @@
1
+ export type TextSize = 'xs' | 'small' | 'base' | 'large' | 'xl' | '2xl';
2
+ export declare const SIZE_MAP: Record<TextSize, string>;
3
+ //# sourceMappingURL=TextSizing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextSizing.d.ts","sourceRoot":"","sources":["../../src/types/TextSizing.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;AACvE,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAO7C,CAAA"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const SIZE_MAP = {
4
+ xs: 'text-xs',
5
+ small: 'text-sm',
6
+ base: 'text-base',
7
+ large: 'text-lg',
8
+ xl: 'text-xl',
9
+ '2xl': 'text-2xl',
10
+ };
11
+
12
+ exports.SIZE_MAP = SIZE_MAP;
13
+ //# sourceMappingURL=TextSizing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextSizing.js","sources":["../../src/types/TextSizing.ts"],"sourcesContent":["export type TextSize = 'xs' | 'small' | 'base' | 'large' | 'xl' | '2xl'\nexport const SIZE_MAP: Record<TextSize, string> = {\n\txs: 'text-xs',\n\tsmall: 'text-sm',\n\tbase: 'text-base',\n\tlarge: 'text-lg',\n\txl: 'text-xl',\n\t'2xl': 'text-2xl',\n}\n"],"names":[],"mappings":";;AACO,MAAM,QAAQ,GAA6B;AACjD,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,KAAK,EAAE,UAAU;;;;;"}
@@ -0,0 +1,11 @@
1
+ const SIZE_MAP = {
2
+ xs: 'text-xs',
3
+ small: 'text-sm',
4
+ base: 'text-base',
5
+ large: 'text-lg',
6
+ xl: 'text-xl',
7
+ '2xl': 'text-2xl',
8
+ };
9
+
10
+ export { SIZE_MAP };
11
+ //# sourceMappingURL=TextSizing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextSizing.mjs","sources":["../../src/types/TextSizing.ts"],"sourcesContent":["export type TextSize = 'xs' | 'small' | 'base' | 'large' | 'xl' | '2xl'\nexport const SIZE_MAP: Record<TextSize, string> = {\n\txs: 'text-xs',\n\tsmall: 'text-sm',\n\tbase: 'text-base',\n\tlarge: 'text-lg',\n\txl: 'text-xl',\n\t'2xl': 'text-2xl',\n}\n"],"names":[],"mappings":"AACO,MAAM,QAAQ,GAA6B;AACjD,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,KAAK,EAAE,UAAU;;;;;"}
@@ -0,0 +1,3 @@
1
+ export type TextVariant = 'default' | 'title' | 'wavy';
2
+ export declare const VARIANT_MAP: Record<TextVariant, string>;
3
+ //# sourceMappingURL=TextVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextVariant.d.ts","sourceRoot":"","sources":["../../src/types/TextVariant.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AACtD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAInD,CAAA"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ const VARIANT_MAP = {
4
+ default: 'text-sm text-neutral-600',
5
+ title: 'text-2xl font-medium text-amber-900',
6
+ wavy: 'text-sm text-neutral-600 decoration-wavy',
7
+ };
8
+
9
+ exports.VARIANT_MAP = VARIANT_MAP;
10
+ //# sourceMappingURL=TextVariant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextVariant.js","sources":["../../src/types/TextVariant.ts"],"sourcesContent":["export type TextVariant = 'default' | 'title' | 'wavy'\nexport const VARIANT_MAP: Record<TextVariant, string> = {\n\tdefault: 'text-sm text-neutral-600',\n\ttitle: 'text-2xl font-medium text-amber-900',\n\twavy: 'text-sm text-neutral-600 decoration-wavy',\n}\n"],"names":[],"mappings":";;AACO,MAAM,WAAW,GAAgC;AACvD,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,KAAK,EAAE,qCAAqC;AAC5C,IAAA,IAAI,EAAE,0CAA0C;;;;;"}
@@ -0,0 +1,8 @@
1
+ const VARIANT_MAP = {
2
+ default: 'text-sm text-neutral-600',
3
+ title: 'text-2xl font-medium text-amber-900',
4
+ wavy: 'text-sm text-neutral-600 decoration-wavy',
5
+ };
6
+
7
+ export { VARIANT_MAP };
8
+ //# sourceMappingURL=TextVariant.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextVariant.mjs","sources":["../../src/types/TextVariant.ts"],"sourcesContent":["export type TextVariant = 'default' | 'title' | 'wavy'\nexport const VARIANT_MAP: Record<TextVariant, string> = {\n\tdefault: 'text-sm text-neutral-600',\n\ttitle: 'text-2xl font-medium text-amber-900',\n\twavy: 'text-sm text-neutral-600 decoration-wavy',\n}\n"],"names":[],"mappings":"AACO,MAAM,WAAW,GAAgC;AACvD,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,KAAK,EAAE,qCAAqC;AAC5C,IAAA,IAAI,EAAE,0CAA0C;;;;;"}
package/package.json ADDED
@@ -0,0 +1,146 @@
1
+ {
2
+ "name": "@1ry/basic-react-primitive-components",
3
+ "version": "0.1.0",
4
+ "description": "some basic react primitive components",
5
+ "keywords": [
6
+ "serializable",
7
+ "typescript",
8
+ "typescript-library"
9
+ ],
10
+ "homepage": "https://github.com/dozro/basic-react-primitive-components#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/dozro/basic-react-primitive-components/issues"
13
+ },
14
+ "license": "MPL-2.0",
15
+ "author": {
16
+ "name": "Rye",
17
+ "email": "contact@itsrye.dev",
18
+ "url": "https://itsrye.dev"
19
+ },
20
+ "contributors": [
21
+ {
22
+ "name": "Rye",
23
+ "email": "contact@itsrye.dev",
24
+ "url": "https://itsrye.dev"
25
+ }
26
+ ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/dozro/basic-react-primitive-components.git"
30
+ },
31
+ "files": [
32
+ "lib/**/*"
33
+ ],
34
+ "main": "./lib/index.js",
35
+ "module": "./lib/index.mjs",
36
+ "types": "./lib/index.d.ts",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./lib/index.d.ts",
40
+ "import": "./lib/index.mjs",
41
+ "require": "./lib/index.js"
42
+ },
43
+ "./lib/index.css": "./lib/index.css"
44
+ },
45
+ "scripts": {
46
+ "build": "rollup -c",
47
+ "clean": "rm -rf ./lib/",
48
+ "cm": "cz",
49
+ "lint": "eslint ./src/ --fix",
50
+ "semantic-release": "semantic-release",
51
+ "fmt": "oxfmt",
52
+ "typecheck": "tsc --noEmit"
53
+ },
54
+ "dependencies": {
55
+ "@1ry/short-id": "^0.1.0",
56
+ "tailwind-variants": "^3.2.2"
57
+ },
58
+ "devDependencies": {
59
+ "@rollup/plugin-alias": "^6.0.0",
60
+ "@rollup/plugin-commonjs": "^29.0.3",
61
+ "@rollup/plugin-node-resolve": "^16.0.3",
62
+ "@rollup/plugin-typescript": "^12.3.0",
63
+ "@ryansonshine/commitizen": "^4.2.8",
64
+ "@ryansonshine/cz-conventional-changelog": "^3.3.4",
65
+ "@types/react": "^19.2.17",
66
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
67
+ "@typescript-eslint/parser": "^4.33.0",
68
+ "conventional-changelog-conventionalcommits": "^5.0.0",
69
+ "eslint": "^7.32.0",
70
+ "eslint-config-prettier": "^8.10.2",
71
+ "eslint-plugin-node": "^11.1.0",
72
+ "eslint-plugin-prettier": "^3.4.1",
73
+ "lint-staged": "^13.3.0",
74
+ "oxfmt": "^0.56.0",
75
+ "postcss": "^8.5.15",
76
+ "prettier": "^2.8.8",
77
+ "rollup": "^4.62.2",
78
+ "rollup-plugin-postcss": "^4.0.2",
79
+ "rollup-plugin-rename-node-modules": "^1.3.1",
80
+ "sass": "^1.101.0",
81
+ "semantic-release": "^21.1.2",
82
+ "typed-scss-modules": "^8.1.1"
83
+ },
84
+ "peerDependencies": {
85
+ "react": "^19.0.0",
86
+ "tailwind-merge": "^3.6.0",
87
+ "tailwindcss": "^4.3.1",
88
+ "typescript": "^4.9.5"
89
+ },
90
+ "lint-staged": {
91
+ "*.ts": "eslint --cache --cache-location .eslintcache --fix"
92
+ },
93
+ "config": {
94
+ "commitizen": {
95
+ "path": "./node_modules/@ryansonshine/cz-conventional-changelog"
96
+ }
97
+ },
98
+ "release": {
99
+ "branches": [
100
+ "main"
101
+ ],
102
+ "plugins": [
103
+ [
104
+ "@semantic-release/commit-analyzer",
105
+ {
106
+ "preset": "conventionalcommits",
107
+ "releaseRules": [
108
+ {
109
+ "type": "build",
110
+ "scope": "deps",
111
+ "release": "patch"
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ [
117
+ "@semantic-release/release-notes-generator",
118
+ {
119
+ "preset": "conventionalcommits",
120
+ "presetConfig": {
121
+ "types": [
122
+ {
123
+ "type": "feat",
124
+ "section": "Features"
125
+ },
126
+ {
127
+ "type": "fix",
128
+ "section": "Bug Fixes"
129
+ },
130
+ {
131
+ "type": "build",
132
+ "section": "Dependencies and Other Build Updates",
133
+ "hidden": false
134
+ }
135
+ ]
136
+ }
137
+ }
138
+ ],
139
+ "@semantic-release/npm",
140
+ "@semantic-release/github"
141
+ ]
142
+ },
143
+ "engines": {
144
+ "node": ">=12.0"
145
+ }
146
+ }