@dimasbaguspm/versaur 0.0.9 → 0.0.11
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/README.md +24 -1
- package/dist/{calendar-DwRERSxq.js → js/calendar-De5dCVnE.js} +149 -137
- package/dist/js/enforce-subpath-import.js +131 -0
- package/dist/{feedbacks → js/feedbacks}/index.js +1 -1
- package/dist/{form-layout-COQbtyW5.js → js/form-layout-BRqZZe8s.js} +55 -55
- package/dist/{forms → js/forms}/index.js +1 -1
- package/dist/{index.js → js/index.js} +7 -7
- package/dist/{layouts → js/layouts}/index.js +1 -1
- package/dist/{menu--hEHXVZf.js → js/menu-Du409VIG.js} +15 -15
- package/dist/js/navigation/index.js +5 -0
- package/dist/{overlays → js/overlays}/index.js +1 -1
- package/dist/{primitive → js/primitive}/index.js +2 -2
- package/dist/{skeleton-DwqjRsF-.js → js/skeleton-BNZyaRjo.js} +19 -19
- package/dist/{styles.css → js/styles.css} +62 -37
- package/dist/{switch-input-DRNFMsqC.js → js/switch-input-B-pwBWbi.js} +266 -262
- package/dist/{tabs-KyFmo5cA.js → js/tabs-BbOkYchB.js} +53 -53
- package/dist/{tile-BinjKW_i.js → js/tile-6SeBYc08.js} +162 -162
- package/dist/types/primitive/anchor/anchor.d.ts +7 -0
- package/dist/types/primitive/anchor/index.d.ts +2 -0
- package/dist/types/primitive/anchor/types.d.ts +19 -0
- package/dist/{primitive → types/primitive}/icon/types.d.ts +1 -1
- package/dist/{primitive → types/primitive}/text/types.d.ts +1 -1
- package/package.json +19 -15
- package/dist/enforce-subpath-import.js +0 -106
- package/dist/navigation/index.js +0 -5
- /package/dist/{drawer-Cn7sreJG.js → js/drawer-Cn7sreJG.js} +0 -0
- /package/dist/{index-DOdDlCoL.js → js/index-DOdDlCoL.js} +0 -0
- /package/dist/{feedbacks → types/feedbacks}/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/loading-indicator.atoms.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/loading-indicator.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/types.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/progress-indicator.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/types.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/skeleton.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/calculator-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/calculator-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/checkbox-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/checkbox-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/chip-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/chip-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.docked.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.modal.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/use-date-single-picker.d.ts +0 -0
- /package/dist/{forms → types/forms}/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/radio-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/radio-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/segment-single-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/segment-single-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/select-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/switch-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/switch-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/text-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/textarea-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/time-picker-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/time-picker-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/types.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/app-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/app-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/bottom-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/bottom-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/form-layout.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/page-layout.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/top-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/top-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/breadcrumbs.atoms.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/breadcrumbs.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/tabs.atoms.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/tabs.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/use-tab-indicator.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/drawer.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/drawer.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/menu.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/menu.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/use-menu.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/modal.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/modal.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/use-escape-close.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/use-focus-trap.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/alert.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/alert.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/avatar.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/avatar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/badge.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/brand.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/brand.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/button.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/button-float.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/use-floating-position.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/button-icon.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/calculator.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/calculator.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/use-calculator.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/calendar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/icon/icon.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/icon/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/snackbar.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/snackbar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/table.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/table.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/text/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/text/text.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/tile.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/types.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AnchorProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Anchor primitive component for rendering links
|
|
4
|
+
* Supports fontSize and fontWeight, and covers pseudo selectors (:hover, :visited)
|
|
5
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
|
|
6
|
+
*/
|
|
7
|
+
export declare const Anchor: import('react').ForwardRefExoticComponent<AnchorProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The content to be rendered inside the anchor
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Color role for the anchor (default: 'primary')
|
|
9
|
+
*/
|
|
10
|
+
color?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'neutral';
|
|
11
|
+
/**
|
|
12
|
+
* Font size utility (default: 'base')
|
|
13
|
+
*/
|
|
14
|
+
fontSize?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Font weight utility (default: 'medium')
|
|
17
|
+
*/
|
|
18
|
+
fontWeight?: string;
|
|
19
|
+
}
|
|
@@ -23,7 +23,7 @@ export type IconProps = Omit<React.SVGProps<SVGSVGElement>, 'children'> & {
|
|
|
23
23
|
/**
|
|
24
24
|
* Color variant
|
|
25
25
|
*/
|
|
26
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
|
|
26
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
27
27
|
/**
|
|
28
28
|
* Size of the icon
|
|
29
29
|
*/
|
|
@@ -12,7 +12,7 @@ export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
|
12
12
|
/** HTML element to render (e.g., 'span', 'h1', 'p') */
|
|
13
13
|
as?: ElementType;
|
|
14
14
|
/** Versaur color system */
|
|
15
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
|
|
15
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'inherit' | 'white' | 'black' | 'gray';
|
|
16
16
|
/** Underline text */
|
|
17
17
|
hasUnderline?: boolean;
|
|
18
18
|
/** Capitalize text */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimasbaguspm/versaur",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "React UI library with Tailwind CSS",
|
|
5
5
|
"author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,31 +11,35 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
14
|
+
"import": "./dist/js/index.js",
|
|
15
|
+
"types": "./dist/types/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./primitive": {
|
|
18
|
+
"import": "./dist/js/primitive/index.js",
|
|
19
|
+
"types": "./dist/types/primitive/index.d.ts"
|
|
16
20
|
},
|
|
17
21
|
"./feedbacks": {
|
|
18
|
-
"import": "./dist/feedbacks/index.js",
|
|
19
|
-
"types": "./dist/feedbacks/index.d.ts"
|
|
22
|
+
"import": "./dist/js/feedbacks/index.js",
|
|
23
|
+
"types": "./dist/types/feedbacks/index.d.ts"
|
|
20
24
|
},
|
|
21
25
|
"./forms": {
|
|
22
|
-
"import": "./dist/forms/index.js",
|
|
23
|
-
"types": "./dist/forms/index.d.ts"
|
|
26
|
+
"import": "./dist/js/forms/index.js",
|
|
27
|
+
"types": "./dist/types/forms/index.d.ts"
|
|
24
28
|
},
|
|
25
29
|
"./layouts": {
|
|
26
|
-
"import": "./dist/layouts/index.js",
|
|
27
|
-
"types": "./dist/layouts/index.d.ts"
|
|
30
|
+
"import": "./dist/js/layouts/index.js",
|
|
31
|
+
"types": "./dist/types/layouts/index.d.ts"
|
|
28
32
|
},
|
|
29
33
|
"./navigation": {
|
|
30
|
-
"import": "./dist/navigation/index.js",
|
|
31
|
-
"types": "./dist/navigation/index.d.ts"
|
|
34
|
+
"import": "./dist/js/navigation/index.js",
|
|
35
|
+
"types": "./dist/types/navigation/index.d.ts"
|
|
32
36
|
},
|
|
33
37
|
"./overlays": {
|
|
34
|
-
"import": "./dist/overlays/index.js",
|
|
35
|
-
"types": "./dist/overlays/index.d.ts"
|
|
38
|
+
"import": "./dist/js/overlays/index.js",
|
|
39
|
+
"types": "./dist/types/overlays/index.d.ts"
|
|
36
40
|
},
|
|
37
|
-
"./styles.css": "./dist/styles.css",
|
|
38
|
-
"./eslint-subpath-import": "./dist/enforce-subpath-import.js"
|
|
41
|
+
"./styles.css": "./dist/js/styles.css",
|
|
42
|
+
"./eslint-subpath-import": "./dist/js/enforce-subpath-import.js"
|
|
39
43
|
},
|
|
40
44
|
"files": [
|
|
41
45
|
"dist"
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ESLint plugin for Versaur: prefer sub-path imports for optimal tree-shaking
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
rules: {
|
|
7
|
-
'versaur-enforce-subpath-import': {
|
|
8
|
-
meta: {
|
|
9
|
-
type: 'suggestion',
|
|
10
|
-
docs: {
|
|
11
|
-
description: 'Prefer sub-path imports for @dimasbaguspm/versaur',
|
|
12
|
-
},
|
|
13
|
-
fixable: 'code',
|
|
14
|
-
},
|
|
15
|
-
create(context) {
|
|
16
|
-
return {
|
|
17
|
-
ImportDeclaration(node) {
|
|
18
|
-
if (node.source.value === '@dimasbaguspm/versaur') {
|
|
19
|
-
const importSpecifiers = node.specifiers
|
|
20
|
-
.filter(s => s.type === 'ImportSpecifier')
|
|
21
|
-
.map(s => s.imported.name)
|
|
22
|
-
|
|
23
|
-
// Map symbol to sub-path
|
|
24
|
-
// Clean, maintainable mapping from symbol to sub-path
|
|
25
|
-
const symbolToSubpath = {
|
|
26
|
-
// primitive
|
|
27
|
-
Button: 'primitive',
|
|
28
|
-
ButtonFloat: 'primitive',
|
|
29
|
-
ButtonIcon: 'primitive',
|
|
30
|
-
Avatar: 'primitive',
|
|
31
|
-
Badge: 'primitive',
|
|
32
|
-
Brand: 'primitive',
|
|
33
|
-
Calculator: 'primitive',
|
|
34
|
-
Calendar: 'primitive',
|
|
35
|
-
Icon: 'primitive',
|
|
36
|
-
Snackbar: 'primitive',
|
|
37
|
-
Table: 'primitive',
|
|
38
|
-
Text: 'primitive',
|
|
39
|
-
Tile: 'primitive',
|
|
40
|
-
Alert: 'primitive',
|
|
41
|
-
// overlays
|
|
42
|
-
Drawer: 'overlays',
|
|
43
|
-
Modal: 'overlays',
|
|
44
|
-
Menu: 'overlays',
|
|
45
|
-
// navigation
|
|
46
|
-
Tabs: 'navigation',
|
|
47
|
-
Breadcrumbs: 'navigation',
|
|
48
|
-
// layouts
|
|
49
|
-
AppBar: 'layouts',
|
|
50
|
-
BottomBar: 'layouts',
|
|
51
|
-
FormLayout: 'layouts',
|
|
52
|
-
PageLayout: 'layouts',
|
|
53
|
-
TopBar: 'layouts',
|
|
54
|
-
// feedbacks
|
|
55
|
-
LoadingIndicator: 'feedbacks',
|
|
56
|
-
ProgressIndicator: 'feedbacks',
|
|
57
|
-
Skeleton: 'feedbacks',
|
|
58
|
-
// forms
|
|
59
|
-
CalculatorInput: 'forms',
|
|
60
|
-
CheckboxInput: 'forms',
|
|
61
|
-
ChipInput: 'forms',
|
|
62
|
-
DateSinglePickerInput: 'forms',
|
|
63
|
-
RadioInput: 'forms',
|
|
64
|
-
SegmentMultipleInput: 'forms',
|
|
65
|
-
SegmentSingleInput: 'forms',
|
|
66
|
-
SelectInput: 'forms',
|
|
67
|
-
SwitchInput: 'forms',
|
|
68
|
-
TextInput: 'forms',
|
|
69
|
-
TextareaInput: 'forms',
|
|
70
|
-
TimePickerInput: 'forms',
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Find first known symbol
|
|
74
|
-
const known = importSpecifiers.find(name => symbolToSubpath[name])
|
|
75
|
-
const subpath = known ? symbolToSubpath[known] : null
|
|
76
|
-
|
|
77
|
-
let message =
|
|
78
|
-
'Use sub-path import for better tree-shaking (e.g., @dimasbaguspm/versaur/primitive)'
|
|
79
|
-
if (subpath) {
|
|
80
|
-
message = `Import { ${known} } from '@dimasbaguspm/versaur/${subpath}' instead.`
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
context.report({
|
|
84
|
-
node,
|
|
85
|
-
message,
|
|
86
|
-
suggest: subpath
|
|
87
|
-
? [
|
|
88
|
-
{
|
|
89
|
-
desc: `Change to import { ${known} } from '@dimasbaguspm/versaur/${subpath}'`,
|
|
90
|
-
fix(fixer) {
|
|
91
|
-
return fixer.replaceText(
|
|
92
|
-
node.source,
|
|
93
|
-
`'@dimasbaguspm/versaur/${subpath}'`
|
|
94
|
-
)
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
]
|
|
98
|
-
: [],
|
|
99
|
-
})
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
}
|
package/dist/navigation/index.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.atoms.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.docked.d.ts
RENAMED
|
File without changes
|
/package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.modal.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.atoms.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|