@agilekit/ui 0.1.0-alpha.0 → 0.1.0-alpha.10

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.
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  export type BreadcrumbItem = {
3
3
  text: string;
4
4
  href?: string;
5
+ type?: string;
5
6
  };
6
7
  export interface IBreadcrumbsProps {
7
8
  items: BreadcrumbItem[];
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ export interface SectionMessageAction {
3
+ key?: string;
4
+ text: string;
5
+ href?: string;
6
+ onClick?: () => void;
7
+ target?: string;
8
+ rel?: string;
9
+ }
10
+ export interface SectionMessageProps {
11
+ title: string;
12
+ appearance?: 'information' | 'success' | 'warning' | 'error' | 'discovery';
13
+ size?: 'small' | 'medium';
14
+ children?: React.ReactNode;
15
+ actions?: SectionMessageAction[];
16
+ className?: string;
17
+ }
18
+ declare const SectionMessage: React.FC<SectionMessageProps>;
19
+ export default SectionMessage;
@@ -5,6 +5,7 @@ export { default as ActionList } from './components/ActionList/ActionList';
5
5
  export { default as AgileTable } from './components/AgileTable/AgileTable';
6
6
  export { default as Alert } from './components/Alert/Alert';
7
7
  export { default as AlertInline } from './components/AlertInline/AlertInline';
8
+ export { default as SectionMessage } from './components/SectionMessage/SectionMessage';
8
9
  export { default as AppFrame } from './components/AppFrame/AppFrame';
9
10
  export { default as AppProvider } from './components/AppProvider/AppProvider';
10
11
  export { default as Avatar } from './components/Avatar/Avatar';
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@agilekit/ui",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.10",
4
4
  "description": "Agile's product component library",
5
5
  "author": "Michael de Lima Alves <michaelalves@outlook.com>",
6
6
  "license": "MIT",
7
7
  "main": "lib/index",
8
+ "style": "lib/index.css",
8
9
  "types": "lib/src/index.d.ts",
9
- "source": "src/index.ts",
10
+ "sideEffects": [
11
+ "*.css",
12
+ "*.scss"
13
+ ],
10
14
  "files": [
11
15
  "/lib",
12
16
  "/src/assets",
@@ -23,8 +27,7 @@
23
27
  }
24
28
  },
25
29
  "publishConfig": {
26
- "access": "public",
27
- "tag": "alpha"
30
+ "access": "public"
28
31
  },
29
32
  "repository": {
30
33
  "type": "git"
@@ -116,6 +119,7 @@
116
119
  "jest": "^29.5.0",
117
120
  "jest-axe": "^7.0.1",
118
121
  "jest-environment-jsdom": "^29.5.0",
122
+ "mini-css-extract-plugin": "^2.10.0",
119
123
  "postcss-loader": "^7.1.0",
120
124
  "prettier": "^2.8.4",
121
125
  "react-docgen-typescript-loader": "^3.7.2",
@@ -1,4 +1,5 @@
1
1
  @use "sass:math";
2
+ @use "../../shared/settings/colors" as *;
2
3
  // Variables
3
4
  //
4
5
  // Variables should follow the `$component-state-property-size` formula for
@@ -1086,4 +1087,4 @@ sticky !default;
1086
1087
  // Printing
1087
1088
 
1088
1089
  $print-page-size: a3 !default;
1089
- $print-body-min-width: map-get($grid-breakpoints, "lg") !default;
1090
+ $print-body-min-width: map-get($grid-breakpoints, "lg") !default;
@@ -1,5 +1,5 @@
1
+ @use "../shared/shared" as *;
1
2
  @import "../../fonts/fontello/css/fontello.css";
2
- @import "../shared/shared.scss";
3
3
 
4
4
  @import "./bootstrap/bootstrap";
5
5
  @import "./bootstrap-extended/bootstrap-extended";
@@ -22,4 +22,4 @@ body {
22
22
  padding: 0;
23
23
  position: absolute;
24
24
  width: 1px;
25
- }
25
+ }
@@ -1,9 +1,9 @@
1
- @import "./settings/typography.scss";
2
- @import "./settings/colors.scss";
3
- @import "./settings/layout.scss";
4
- @import "./settings/breakpoints.scss";
5
- @import "./settings/depth.scss";
1
+ @forward "./settings/typography";
2
+ @forward "./settings/colors";
3
+ @forward "./settings/layout";
4
+ @forward "./settings/breakpoints";
5
+ @forward "./settings/depth";
6
6
 
7
- @import "./tools/respond-to.scss";
7
+ @forward "./tools/respond-to";
8
8
 
9
- @import "./elements/scrollbar.scss";
9
+ @forward "./elements/scrollbar";