beesoft-components 0.3.2 → 0.3.3
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/LICENSE +1 -1
- package/README.md +23 -22
- package/dist/index.es.js +11163 -0
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +812 -0
- package/dist/index.umd.js.gz +0 -0
- package/dist/style.css +1 -0
- package/dist/style.css.gz +0 -0
- package/package.json +80 -103
- package/types/index.d.ts +323 -0
- package/build/index.cjs.js +0 -32807
- package/build/index.js +0 -32802
- package/build/index.min.js +0 -37
- package/build/index.min.js.gz +0 -0
- package/build/types/src/components/common/beesoft-transition/beesoft-transition.component.d.ts +0 -22
- package/build/types/src/components/common/template-outlet/template-outlet.component.d.ts +0 -8
- package/build/types/src/components/common-event-handlers.d.ts +0 -4
- package/build/types/src/components/common-functions.d.ts +0 -16
- package/build/types/src/components/common-hooks.d.ts +0 -1
- package/build/types/src/components/common-interfaces.d.ts +0 -13
- package/build/types/src/components/dom-handler.d.ts +0 -30
- package/build/types/src/components/font-awesome.d.ts +0 -1
- package/build/types/src/components/form/date-time/date-time-calendar.component.d.ts +0 -34
- package/build/types/src/components/form/date-time/date-time-context.d.ts +0 -10
- package/build/types/src/components/form/date-time/date-time-day-selector.component.d.ts +0 -13
- package/build/types/src/components/form/date-time/date-time-format-creator.d.ts +0 -28
- package/build/types/src/components/form/date-time/date-time-functions.d.ts +0 -19
- package/build/types/src/components/form/date-time/date-time-month-selector.component.d.ts +0 -10
- package/build/types/src/components/form/date-time/date-time-range-selector.component.d.ts +0 -11
- package/build/types/src/components/form/date-time/date-time-scroller.component.d.ts +0 -19
- package/build/types/src/components/form/date-time/date-time-time-selector.component.d.ts +0 -13
- package/build/types/src/components/form/date-time/date-time-types.d.ts +0 -48
- package/build/types/src/components/form/date-time/date-time-year-selector.component.d.ts +0 -8
- package/build/types/src/components/form/date-time/date-time.component.d.ts +0 -36
- package/build/types/src/components/form/date-time/date-time.component.stories.d.ts +0 -43
- package/build/types/src/components/form/date-time/date-time.reducer.d.ts +0 -36
- package/build/types/src/components/form/date-time/hooks/get-date-time-format.hook.d.ts +0 -4
- package/build/types/src/components/form/form-control.interface.d.ts +0 -12
- package/build/types/src/components/form/input/content-editable-input/content-editable-input.component.d.ts +0 -25
- package/build/types/src/components/form/input/content-editable-input/content-editable-input.component.stories.d.ts +0 -6
- package/build/types/src/components/form/input/formatted-input/formatted-input.component.d.ts +0 -11
- package/build/types/src/components/form/input/formatted-input/formatted-input.component.stories.d.ts +0 -6
- package/build/types/src/components/form/input/formatted-input/input-format.interfaces.d.ts +0 -23
- package/build/types/src/components/form/input/formatted-input/parser/format-instance-collection.d.ts +0 -13
- package/build/types/src/components/form/input/formatted-input/parser/format-navigator.d.ts +0 -31
- package/build/types/src/components/form/input/formatted-input/parser/format-parser.d.ts +0 -27
- package/build/types/src/components/form/input/formatted-input/parser/format-renderer.d.ts +0 -10
- package/build/types/src/components/form/input/formatted-input/parser/input-rule-processor.d.ts +0 -20
- package/build/types/src/components/form/input/formatted-input/parser/input-slot-collection.d.ts +0 -14
- package/build/types/src/components/form/input/formatted-input/parser/input-slot-creator.d.ts +0 -4
- package/build/types/src/components/form/input/formatted-input/parser/key-processor.d.ts +0 -14
- package/build/types/src/components/form/input/formatted-input/parser/key-type-checker.d.ts +0 -11
- package/build/types/src/components/form/input/formatted-input/parser/parser.interfaces.d.ts +0 -24
- package/build/types/src/components/form/input/formatted-input/parser/part-entry-creator.d.ts +0 -5
- package/build/types/src/components/form/input/formatted-input/parser/part-entry-iterator.d.ts +0 -14
- package/build/types/src/components/overlay/overlay-panel/overlay-panel.component.d.ts +0 -23
- package/build/types/src/index.d.ts +0 -12
- package/build/types/src/interfaces/iterator.interface.d.ts +0 -7
- package/build/types/src/setupTests.d.ts +0 -1
|
Binary file
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.bsc-fixed{position:fixed}.bsc-col-span-3{grid-column:span 3 / span 3}.bsc-col-span-4{grid-column:span 4 / span 4}.bsc-ml-2{margin-left:.5rem}.bsc-mr-2{margin-right:.5rem}.bsc-flex{display:flex}.bsc-grid{display:grid}.bsc-h-3\/4{height:75%}.bsc-h-full{height:100%}.bsc-h-screen{height:100vh}.bsc-w-24{width:6rem}.bsc-w-full{width:100%}.bsc-min-w-\[329px\]{min-width:329px}.bsc-flex-shrink{flex-shrink:1}.bsc-flex-grow{flex-grow:1}.bsc-cursor-not-allowed{cursor:not-allowed}.bsc-cursor-pointer{cursor:pointer}.bsc-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.bsc-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.bsc-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.bsc-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.bsc-flex-row{flex-direction:row}.bsc-flex-col{flex-direction:column}.bsc-justify-center{justify-content:center}.bsc-gap-3{gap:.75rem}.bsc-gap-4{gap:1rem}.bsc-overflow-hidden{overflow:hidden}.bsc-overflow-scroll{overflow:scroll}.bsc-overflow-x-auto{overflow-x:auto}.bsc-overflow-y-hidden{overflow-y:hidden}.bsc-whitespace-pre{white-space:pre}.bsc-rounded-md{border-radius:.375rem}.bsc-border{border-width:1px}.bsc-border-r{border-right-width:1px}.bsc-border-solid{border-style:solid}.\!bsc-border-none{border-style:none!important}.\!bsc-border-error{border-color:var(--theme-bsc-error)!important}.\!bsc-border-transparent{border-color:transparent!important}.bsc-border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bsc-border-gray-3{border-color:var(--theme-bsc-gray-3)}.bsc-bg-gray-2{background-color:var(--theme-bsc-gray-2)}.bsc-bg-mono-dark-1{background-color:var(--theme-bsc-mono-dark-1)}.bsc-bg-primary-3{background-color:var(--theme-bsc-primary-3)}.bsc-bg-primary-5{background-color:var(--theme-bsc-primary-5)}.bsc-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bsc-p-2{padding:.5rem}.bsc-p-4{padding:1rem}.bsc-px-2{padding-left:.5rem;padding-right:.5rem}.bsc-py-1{padding-top:.25rem;padding-bottom:.25rem}.bsc-pb-2{padding-bottom:.5rem}.bsc-pb-8{padding-bottom:2rem}.bsc-pl-4{padding-left:1rem}.bsc-pr-2{padding-right:.5rem}.bsc-pr-4{padding-right:1rem}.bsc-text-left{text-align:left}.bsc-text-center{text-align:center}.\!bsc-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.bsc-text-sm{font-size:.875rem;line-height:1.25rem}.bsc-font-bold{font-weight:700}.bsc-text-error{color:var(--theme-bsc-error)}.bsc-text-gray-3{color:var(--theme-bsc-gray-3)}.bsc-text-gray-4{color:var(--theme-bsc-gray-4)}.bsc-text-mono-dark-1{color:var(--theme-bsc-mono-dark-1)}.bsc-text-primary-1{color:var(--theme-bsc-primary-1)}.bsc-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.bsc-shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:root{--theme-bsc-primary-1: #2f54ff;--theme-bsc-primary-2: #5f7bff;--theme-bsc-primary-3: #899eff;--theme-bsc-primary-4: #b4c1ff;--theme-bsc-primary-5: #dee4ff;--theme-bsc-gray-1: #303030;--theme-bsc-gray-2: #5f5f5f;--theme-bsc-gray-3: #8f8f8f;--theme-bsc-gray-4: #bebebe;--theme-bsc-gray-5: #eeeeee;--theme-bsc-mono-dark-1: #222222;--theme-bsc-mono-dark-2: #3c3c3c;--theme-bsc-mono-dark-3: #4e4e4e;--theme-bsc-mono-light-1: #fefefe;--theme-bsc-mono-light-2: #eeeeee;--theme-bsc-mono-light-3: #cccccc;--theme-bsc-info: #2e7ff8;--theme-bsc-success: #53ae0c;--theme-bsc-warning: #ff6914;--theme-bsc-error: #f01616}.hover\:bsc-bg-gray-4:hover{background-color:var(--theme-bsc-gray-4)}.focus\:bsc-outline-none:focus{outline:2px solid transparent;outline-offset:2px}:is(.bsc-dark .dark\:bsc-border-mono-light-1){border-color:var(--theme-bsc-mono-light-1)}:is(.bsc-dark .dark\:bsc-border-white){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}:is(.bsc-dark .dark\:bsc-bg-mono-dark-1){background-color:var(--theme-bsc-mono-dark-1)}:is(.bsc-dark .dark\:bsc-bg-mono-light-1){background-color:var(--theme-bsc-mono-light-1)}:is(.bsc-dark .dark\:bsc-bg-mono-light-3){background-color:var(--theme-bsc-mono-light-3)}:is(.bsc-dark .dark\:bsc-text-mono-dark-1){color:var(--theme-bsc-mono-dark-1)}:is(.bsc-dark .dark\:bsc-text-mono-light-1){color:var(--theme-bsc-mono-light-1)}:is(.bsc-dark .dark\:hover\:bsc-bg-mono-light-1:hover){background-color:var(--theme-bsc-mono-light-1)}:is(.bsc-dark .dark\:hover\:bsc-bg-mono-light-2:hover){background-color:var(--theme-bsc-mono-light-2)}:is(.bsc-dark .dark\:hover\:bsc-text-mono-dark-1:hover){color:var(--theme-bsc-mono-dark-1)}:is(.bsc-dark .dark\:hover\:bsc-text-mono-dark-2:hover){color:var(--theme-bsc-mono-dark-2)}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,133 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beesoft-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Brandon Trabon"
|
|
8
|
+
},
|
|
6
9
|
"keywords": [
|
|
7
10
|
"react",
|
|
8
11
|
"ui components",
|
|
9
|
-
"date time"
|
|
12
|
+
"date time",
|
|
13
|
+
"mobile"
|
|
10
14
|
],
|
|
11
15
|
"repository": {
|
|
12
16
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/Beehive-Software-Consultants/beesoft-components"
|
|
17
|
+
"url": "git+https://github.com/Beehive-Software-Consultants/beesoft-components.git"
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
16
|
-
"
|
|
20
|
+
"dist",
|
|
17
21
|
"types"
|
|
18
22
|
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"registry": "https://registry.npmjs.org/"
|
|
21
|
-
},
|
|
22
23
|
"license": "MIT",
|
|
23
|
-
"main": "
|
|
24
|
-
"module": "
|
|
25
|
-
"types": "
|
|
24
|
+
"main": "./dist/index.umd.js",
|
|
25
|
+
"module": "./dist/index.es.js",
|
|
26
|
+
"types": "./types/index.d.ts",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "bunx --bun vite",
|
|
29
|
+
"build": "rimraf build && rimraf types && bunx --bun vite build",
|
|
30
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
31
|
+
"preview": "vite preview",
|
|
32
|
+
"storybook": "storybook dev -p 6006",
|
|
33
|
+
"build-storybook": "storybook build",
|
|
34
|
+
"chromatic": "chromatic"
|
|
35
|
+
},
|
|
26
36
|
"dependencies": {
|
|
27
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.
|
|
28
|
-
"@fortawesome/free-regular-svg-icons": "^6.4.
|
|
29
|
-
"@fortawesome/free-solid-svg-icons": "^6.4.
|
|
37
|
+
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
38
|
+
"@fortawesome/free-regular-svg-icons": "^6.4.2",
|
|
39
|
+
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
|
30
40
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
31
|
-
"classnames": "^2.3.
|
|
32
|
-
"date-fns": "^2.
|
|
41
|
+
"classnames": "^2.3.2",
|
|
42
|
+
"date-fns": "^2.30.0",
|
|
33
43
|
"lodash": "^4.17.21",
|
|
34
44
|
"react-transition-group": "^4.4.5",
|
|
35
|
-
"uuid": "^9.0.
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"start": "start-storybook -p 6006 -s public",
|
|
39
|
-
"build": "rimraf build && rimraf types && rollup -c --environment NODE_ENV:production",
|
|
40
|
-
"build:app": "craco build",
|
|
41
|
-
"test": "echo \"craco test\"",
|
|
42
|
-
"eject": "react-scripts eject",
|
|
43
|
-
"storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 -s public",
|
|
44
|
-
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -s public"
|
|
45
|
-
},
|
|
46
|
-
"eslintConfig": {
|
|
47
|
-
"extends": [
|
|
48
|
-
"react-app",
|
|
49
|
-
"react-app/jest"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"browserslist": {
|
|
53
|
-
"production": [
|
|
54
|
-
">0.2%",
|
|
55
|
-
"not dead",
|
|
56
|
-
"not op_mini all"
|
|
57
|
-
],
|
|
58
|
-
"development": [
|
|
59
|
-
"last 1 chrome version",
|
|
60
|
-
"last 1 firefox version",
|
|
61
|
-
"last 1 safari version"
|
|
62
|
-
]
|
|
45
|
+
"uuid": "^9.0.1"
|
|
63
46
|
},
|
|
64
47
|
"devDependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"@types/uuid": "^9.0.1",
|
|
94
|
-
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
95
|
-
"@typescript-eslint/parser": "^5.57.0",
|
|
96
|
-
"autoprefixer": "^10.4.14",
|
|
97
|
-
"babel-plugin-macros": "^3.1.0",
|
|
98
|
-
"cross-env": "^7.0.3",
|
|
99
|
-
"eslint": "^8.37.0",
|
|
100
|
-
"eslint-config-prettier": "^8.8.0",
|
|
101
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
102
|
-
"eslint-plugin-react": "^7.32.2",
|
|
48
|
+
"@release-it/bumper": "^5.1.0",
|
|
49
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
50
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
51
|
+
"@storybook/addon-interactions": "^7.5.3",
|
|
52
|
+
"@storybook/addon-links": "^7.5.3",
|
|
53
|
+
"@storybook/blocks": "^7.5.3",
|
|
54
|
+
"@storybook/builder-vite": "^7.5.3",
|
|
55
|
+
"@storybook/react": "^7.5.3",
|
|
56
|
+
"@storybook/react-vite": "^7.5.3",
|
|
57
|
+
"@storybook/testing-library": "^0.2.2",
|
|
58
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
59
|
+
"@testing-library/react": "^14.1.0",
|
|
60
|
+
"@testing-library/user-event": "^14.5.1",
|
|
61
|
+
"@types/lodash-es": "^4.17.11",
|
|
62
|
+
"@types/react": "^18.2.15",
|
|
63
|
+
"@types/react-dom": "^18.2.7",
|
|
64
|
+
"@types/react-transition-group": "^4.4.9",
|
|
65
|
+
"@types/uuid": "^9.0.7",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
67
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
68
|
+
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
69
|
+
"autoprefixer": "^10.4.16",
|
|
70
|
+
"bun-types": "^1.0.12",
|
|
71
|
+
"chromatic": "^9.1.0",
|
|
72
|
+
"eslint": "^8.45.0",
|
|
73
|
+
"eslint-config-prettier": "^9.0.0",
|
|
74
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
75
|
+
"eslint-plugin-react": "^7.33.2",
|
|
103
76
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
104
|
-
"eslint-plugin-
|
|
105
|
-
"
|
|
106
|
-
"
|
|
77
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
78
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
79
|
+
"postcss": "^8.4.31",
|
|
80
|
+
"prettier": "^3.0.3",
|
|
107
81
|
"react": "^18.2.0",
|
|
108
|
-
"react-docgen-typescript-loader": "^3.7.2",
|
|
109
82
|
"react-dom": "^18.2.0",
|
|
110
|
-
"
|
|
111
|
-
"release-it": "^15.10.1",
|
|
112
|
-
"rollup": "^3.20.2",
|
|
113
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
83
|
+
"release-it": "^16.2.1",
|
|
114
84
|
"rollup-plugin-gzip": "^3.1.0",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"tslib": "^2.5.0",
|
|
121
|
-
"typescript": "^5.0.3",
|
|
122
|
-
"webpack": "^5"
|
|
85
|
+
"storybook": "^7.5.3",
|
|
86
|
+
"tailwindcss": "^3.3.5",
|
|
87
|
+
"typescript": "^5.0.2",
|
|
88
|
+
"vite": "^4.4.5",
|
|
89
|
+
"vite-plugin-dts": "^3.6.3"
|
|
123
90
|
},
|
|
124
91
|
"peerDependencies": {
|
|
125
92
|
"react": "^18.2.0",
|
|
126
93
|
"react-dom": "^18.2.0"
|
|
127
94
|
},
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
95
|
+
"exports": {
|
|
96
|
+
".": {
|
|
97
|
+
"import": "./dist/index.es.js",
|
|
98
|
+
"require": "./dist/index.umd.js"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"publishConfig": {
|
|
102
|
+
"access": "public",
|
|
103
|
+
"registry": "https://registry.npmjs.org/"
|
|
104
|
+
},
|
|
105
|
+
"bugs": {
|
|
106
|
+
"url": "https://github.com/Beehive-Software-Consultants/beesoft-components/issues"
|
|
107
|
+
},
|
|
108
|
+
"readme": "ERROR: No README data found!",
|
|
109
|
+
"homepage": "https://github.com/Beehive-Software-Consultants/beesoft-components#readme"
|
|
133
110
|
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
|
+
import { default as React_2 } from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare function applyBeeSoftTheme(theme: Record<string, unknown>): void;
|
|
6
|
+
|
|
7
|
+
declare enum CalendarIconPosition {
|
|
8
|
+
Right = 0,
|
|
9
|
+
Left = 1,
|
|
10
|
+
None = 2
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare enum CalendarSelectionMode {
|
|
14
|
+
Normal = 0,
|
|
15
|
+
Range = 1
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare const ContentEditableInput: React_2.ForwardRefExoticComponent<ContentEditableInputProps & React_2.RefAttributes<ContentEditableInputRef>>;
|
|
19
|
+
|
|
20
|
+
declare interface ContentEditableInputProps extends FormInputControl<string> {
|
|
21
|
+
debounceTime?: number;
|
|
22
|
+
fillContainer?: boolean;
|
|
23
|
+
leftElement?: React_2.JSX.Element;
|
|
24
|
+
rightElement?: React_2.JSX.Element;
|
|
25
|
+
leftElementClassName?: string;
|
|
26
|
+
rightElementClassName?: string;
|
|
27
|
+
isSingleLine?: boolean;
|
|
28
|
+
allowSingleLineScroll?: boolean;
|
|
29
|
+
onInnerTextChange?: (value: string) => void;
|
|
30
|
+
onInnerHTMLChange?: (value: string) => void;
|
|
31
|
+
onElementCreate?: (element: HTMLElement) => void;
|
|
32
|
+
onLeftElementClick?: (event: React_2.MouseEvent) => void;
|
|
33
|
+
onRightElementClick?: (event: React_2.MouseEvent) => void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare interface ContentEditableInputRef {
|
|
37
|
+
inputElement?: HTMLElement;
|
|
38
|
+
setInnerText: (innerText: string) => void;
|
|
39
|
+
setInnerHTML: (innerHTML: string) => void;
|
|
40
|
+
focus: () => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare function createBeeSoftTheme(primary1: string, primary2: string, primary3: string, primary4: string, primary5: string, gray1: string, gray2: string, gray3: string, gray4: string, gray5: string, monoDark1: string, monoDark2: string, monoDark3: string, monoLight1: string, monoLight2: string, monoLight3: string, info: string, success: string, warning: string, error: string): {
|
|
44
|
+
'--theme-bsc-primary-1': string;
|
|
45
|
+
'--theme-bsc-primary-2': string;
|
|
46
|
+
'--theme-bsc-primary-3': string;
|
|
47
|
+
'--theme-bsc-primary-4': string;
|
|
48
|
+
'--theme-bsc-primary-5': string;
|
|
49
|
+
'--theme-bsc-gray-1': string;
|
|
50
|
+
'--theme-bsc-gray-2': string;
|
|
51
|
+
'--theme-bsc-gray-3': string;
|
|
52
|
+
'--theme-bsc-gray-4': string;
|
|
53
|
+
'--theme-bsc-gray-5': string;
|
|
54
|
+
'--theme-bsc-mono-dark-1': string;
|
|
55
|
+
'--theme-bsc-mono-dark-2': string;
|
|
56
|
+
'--theme-bsc-mono-dark-3': string;
|
|
57
|
+
'--theme-bsc-mono-light-1': string;
|
|
58
|
+
'--theme-bsc-mono-light-2': string;
|
|
59
|
+
'--theme-bsc-mono-light-3': string;
|
|
60
|
+
'--theme-bsc-info': string;
|
|
61
|
+
'--theme-bsc-success': string;
|
|
62
|
+
'--theme-bsc-warning': string;
|
|
63
|
+
'--theme-bsc-error': string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
declare enum DateFormatType {
|
|
67
|
+
Short = 0,
|
|
68
|
+
Medium = 1,
|
|
69
|
+
Long = 2
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare enum DateScrollerType {
|
|
73
|
+
Day = 0,
|
|
74
|
+
Month = 1,
|
|
75
|
+
Year = 2,
|
|
76
|
+
Range = 3
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare enum DateSelectionType {
|
|
80
|
+
DateTime = 0,
|
|
81
|
+
DateOnly = 1,
|
|
82
|
+
TimeOnly = 2,
|
|
83
|
+
DateRange = 3
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export declare const DateTime: ({ value, readOnly, label, useDefaultDateValue, useFormattedInput, allowClear, locale, className, dateSelection, dateFormat, timeConstraints, icon, iconPosition, inputElement, selectableDate, isValidDate, onChange, calendarTemplate, dateScrollerTemplate, inputTemplate, }: DateTimeProps) => JSX_2.Element;
|
|
87
|
+
|
|
88
|
+
declare type DateTimeCalendarTemplate = TemplateFunction<DateTimeCalendarTemplateProps>;
|
|
89
|
+
|
|
90
|
+
export declare interface DateTimeCalendarTemplateProps {
|
|
91
|
+
viewDate: Date;
|
|
92
|
+
selectedDate?: Date;
|
|
93
|
+
selectedStartDate?: Date;
|
|
94
|
+
selectedEndDate?: Date;
|
|
95
|
+
selectionMode?: CalendarSelectionMode;
|
|
96
|
+
locale?: Locale;
|
|
97
|
+
weekDays?: Array<string>;
|
|
98
|
+
monthMatrix?: Array<Array<DayType>>;
|
|
99
|
+
selectableDate?: (currentDate: Date) => boolean;
|
|
100
|
+
isValidDate?: (selectedDate: Date) => boolean;
|
|
101
|
+
onDateClicked: (date: Date) => void;
|
|
102
|
+
isSelectedDate: (currentDate: Date) => boolean;
|
|
103
|
+
isInSelectedDateRange: (currentDate: Date) => boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare type DateTimeInputTemplate = TemplateFunction<DateTimeInputTemplateProps>;
|
|
107
|
+
|
|
108
|
+
export declare interface DateTimeInputTemplateProps {
|
|
109
|
+
label?: string;
|
|
110
|
+
readOnly: boolean;
|
|
111
|
+
allowClear: boolean;
|
|
112
|
+
getValue: () => string;
|
|
113
|
+
onFocus: (event: FocusEvent) => void;
|
|
114
|
+
onInput: (event: React_2.FormEvent) => void;
|
|
115
|
+
iconPosition: CalendarIconPosition;
|
|
116
|
+
iconElement?: React_2.JSX.Element;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare interface DateTimeProps extends FormInputControl<string | TypeOrArray<Date>, TypeOrArray<Date>> {
|
|
120
|
+
useDefaultDateValue?: boolean;
|
|
121
|
+
useFormattedInput?: boolean;
|
|
122
|
+
allowClear?: boolean;
|
|
123
|
+
locale?: string;
|
|
124
|
+
dateSelection?: DateSelectionType;
|
|
125
|
+
dateFormat?: DateFormatType;
|
|
126
|
+
timeConstraints?: TimeConstraints;
|
|
127
|
+
icon?: React_2.JSX.Element;
|
|
128
|
+
iconPosition?: CalendarIconPosition;
|
|
129
|
+
inputElement?: HTMLElement;
|
|
130
|
+
/**
|
|
131
|
+
* If the passed function returns false then that date will not be selectable and will be marked with the error style.
|
|
132
|
+
* @param {Date} currentDate - The date to test.
|
|
133
|
+
* @returns {boolean} false indicates the date should not be selectable.
|
|
134
|
+
*/
|
|
135
|
+
selectableDate?: (currentDate: Date) => boolean;
|
|
136
|
+
/**
|
|
137
|
+
* If the passed function returns false then the date will not be selected in the input.
|
|
138
|
+
* @param {Date} selectedDate - The selected date to test.
|
|
139
|
+
* @returns {boolean} false indicates the date is not valid.
|
|
140
|
+
*/
|
|
141
|
+
isValidDate?: (selectedDate: Date) => boolean;
|
|
142
|
+
calendarTemplate?: DateTimeCalendarTemplate;
|
|
143
|
+
dateScrollerTemplate?: DateTimeScrollerTemplate;
|
|
144
|
+
inputTemplate?: DateTimeInputTemplate;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare type DateTimeScrollerTemplate = TemplateFunction<DateTimeScrollerTemplateProps>;
|
|
148
|
+
|
|
149
|
+
export declare interface DateTimeScrollerTemplateProps {
|
|
150
|
+
title: string;
|
|
151
|
+
scrollerType: DateScrollerType;
|
|
152
|
+
onTitleClicked?: () => void;
|
|
153
|
+
onMovePrevious: () => void;
|
|
154
|
+
onMoveNext: () => void;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare type DayType = {
|
|
158
|
+
dayValue: Date | null;
|
|
159
|
+
isCurrent: boolean;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
declare enum DomElementAlignment {
|
|
163
|
+
TopLeft = 0,
|
|
164
|
+
TopRight = 1,
|
|
165
|
+
BottomLeft = 2,
|
|
166
|
+
BottomRight = 3
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare enum DomTargetPosition {
|
|
170
|
+
TopLeft = 0,
|
|
171
|
+
TopRight = 1,
|
|
172
|
+
BottomLeft = 2,
|
|
173
|
+
BottomRight = 3
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare interface FormatPart {
|
|
177
|
+
/**
|
|
178
|
+
* The number of characters available for this part of the format.
|
|
179
|
+
*/
|
|
180
|
+
characterCount: number;
|
|
181
|
+
/**
|
|
182
|
+
* In a separator this will be the character displayed between format sections; in a format section this is displayed
|
|
183
|
+
* when no text has been entered in the inputs.
|
|
184
|
+
*/
|
|
185
|
+
placeholder?: string;
|
|
186
|
+
/**
|
|
187
|
+
* The text displayed when the inputs are focused and no text has been entered at that spot.
|
|
188
|
+
*/
|
|
189
|
+
inputText?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Determines if this is a placeholder (true) or format section (false).
|
|
192
|
+
*/
|
|
193
|
+
isSeparator: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* This will determine if the character count should be met. An example of false would be a month or day of a date
|
|
196
|
+
* field; an example of true would be the area code of a phone number.
|
|
197
|
+
*/
|
|
198
|
+
allCharactersRequired?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Allows for a specific list of values to be defined.
|
|
201
|
+
*/
|
|
202
|
+
possibleValues?: Array<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Used to specify the allowable format value.
|
|
205
|
+
*/
|
|
206
|
+
valueType?: FormatValueType;
|
|
207
|
+
/**
|
|
208
|
+
* If the value type is number then the minimum value can be set.
|
|
209
|
+
*/
|
|
210
|
+
minimumValue?: number;
|
|
211
|
+
/**
|
|
212
|
+
* If the value type is number then the maximum value can be set.
|
|
213
|
+
*/
|
|
214
|
+
maximumValue?: number;
|
|
215
|
+
/**
|
|
216
|
+
* If the maximum value is exceeded this will cause the inputs to show an error.
|
|
217
|
+
*/
|
|
218
|
+
exceedingMaximumValueCausesError?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* If the maximum value is exceeded this will cause the inputs to tab to the next section.
|
|
221
|
+
*/
|
|
222
|
+
exceedingMaximumValueCausesTab?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* If all places in a numeric format part are not completed then this will fill the remaining space with zeros.
|
|
225
|
+
*/
|
|
226
|
+
padWithZeros?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* If the part is a separator then this will determine if this separator will be displayed in the final output
|
|
229
|
+
* (default true).
|
|
230
|
+
*/
|
|
231
|
+
addInOutputValue?: boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export declare const FormattedInput: React_2.ForwardRefExoticComponent<FormattedInputProps & React_2.RefAttributes<FormattedInputRef>>;
|
|
235
|
+
|
|
236
|
+
declare interface FormattedInputProps extends Omit<ContentEditableInputProps, 'placeholder'> {
|
|
237
|
+
format?: InputFormat;
|
|
238
|
+
isInputValid?: (value?: string) => boolean;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
declare interface FormattedInputRef {
|
|
242
|
+
focus: () => void;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare enum FormatValueType {
|
|
246
|
+
Text = 0,
|
|
247
|
+
Numeric = 1
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare interface FormInputControl<V = unknown, C = undefined> {
|
|
251
|
+
label?: string;
|
|
252
|
+
value?: V;
|
|
253
|
+
readOnly?: boolean;
|
|
254
|
+
placeholder?: string;
|
|
255
|
+
onFocus?: (event: FocusEvent) => void;
|
|
256
|
+
onBlur?: (event: FocusEvent) => void;
|
|
257
|
+
onInput?: (event: React_2.FormEvent) => void;
|
|
258
|
+
onChange?: (value?: C extends undefined ? V : C) => void;
|
|
259
|
+
className?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare interface IncrementConstraint {
|
|
263
|
+
min: number;
|
|
264
|
+
max: number;
|
|
265
|
+
step: number;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare interface InputFormat {
|
|
269
|
+
/**
|
|
270
|
+
* When true deleting a character earlier in the inputs text will shift the other characters into other format parts
|
|
271
|
+
* (default false). This would probably be used in a credit card or phone number format.
|
|
272
|
+
*/
|
|
273
|
+
deleteShiftsFormatPart?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Contains all format parts that will combine to create a single format string.
|
|
276
|
+
*/
|
|
277
|
+
formatParts: Array<FormatPart>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Allows a component to have its markup overridden.
|
|
282
|
+
*/
|
|
283
|
+
declare interface MarkupEvents {
|
|
284
|
+
markupCreated?: (element: Element) => void;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export declare const OverlayPanel: ({ visible, target, targetPosition, elementAlignment, shouldTargetCloseOverlay, shouldMatchTargetWidth, shouldScrollCloseOverlay, shouldCheckZIndex, shouldRemainOnScreen, unmountWhenHidden, transitionDuration, showTransitionOptions, hideTransitionOptions, shown, hidden, isClickedWithin, markupCreated, children, }: OverlayPanelProps & MarkupEvents) => JSX_2.Element;
|
|
288
|
+
|
|
289
|
+
declare interface OverlayPanelProps {
|
|
290
|
+
visible: boolean;
|
|
291
|
+
target?: React_2.MouseEvent<Element, MouseEvent> | HTMLElement | Element | null;
|
|
292
|
+
targetPosition?: DomTargetPosition;
|
|
293
|
+
elementAlignment?: DomElementAlignment;
|
|
294
|
+
shouldTargetCloseOverlay?: boolean;
|
|
295
|
+
shouldMatchTargetWidth?: boolean;
|
|
296
|
+
shouldScrollCloseOverlay?: boolean;
|
|
297
|
+
shouldCheckZIndex?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* When set to true this will cause the overlay panel to adjust itself, relative to its target, to remain on the
|
|
300
|
+
* screen.
|
|
301
|
+
*/
|
|
302
|
+
shouldRemainOnScreen?: boolean;
|
|
303
|
+
unmountWhenHidden?: boolean;
|
|
304
|
+
transitionDuration?: number;
|
|
305
|
+
showTransitionOptions?: string;
|
|
306
|
+
hideTransitionOptions?: string;
|
|
307
|
+
shown?: () => void;
|
|
308
|
+
hidden?: () => void;
|
|
309
|
+
isClickedWithin?: () => void;
|
|
310
|
+
children: TypeOrArray<ReactNode>;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare type TemplateFunction<TF> = (props: TF, children?: TypeOrArray<ReactNode>) => React_2.JSX.Element;
|
|
314
|
+
|
|
315
|
+
declare interface TimeConstraints {
|
|
316
|
+
hours?: IncrementConstraint;
|
|
317
|
+
minutes?: IncrementConstraint;
|
|
318
|
+
seconds?: IncrementConstraint;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare type TypeOrArray<T> = T | Array<T>;
|
|
322
|
+
|
|
323
|
+
export { }
|