@allxsmith/bestax-bulma 5.27.2 → 5.27.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/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/esm/form/File.js +1 -0
- package/dist/esm/form/File.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/types/form/File.d.ts +3 -2
- package/dist/types-cjs/form/File.d.ts +3 -2
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/form/_file.scss +9 -0
|
@@ -34,8 +34,9 @@ export interface FileProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
34
34
|
/**
|
|
35
35
|
* Show a file name area. Without `fileName` it shows what the user picked: the file's name, or
|
|
36
36
|
* a count when `multiple` lets them pick several (see `pickedFilesLabel`). Before a pick there is
|
|
37
|
-
* no name area
|
|
38
|
-
* fires no change event and leaves it showing, so pass
|
|
37
|
+
* no name area, and the root takes Bulma's `is-empty`. A reset of the input's form clears the
|
|
38
|
+
* name, but clearing the input from code fires no change event and leaves it showing, so pass
|
|
39
|
+
* `fileName` to control the text then.
|
|
39
40
|
*/
|
|
40
41
|
hasName?: boolean;
|
|
41
42
|
/** Text on the file CTA button (defaults to "Choose a file…"). */
|
|
@@ -34,8 +34,9 @@ export interface FileProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
34
34
|
/**
|
|
35
35
|
* Show a file name area. Without `fileName` it shows what the user picked: the file's name, or
|
|
36
36
|
* a count when `multiple` lets them pick several (see `pickedFilesLabel`). Before a pick there is
|
|
37
|
-
* no name area
|
|
38
|
-
* fires no change event and leaves it showing, so pass
|
|
37
|
+
* no name area, and the root takes Bulma's `is-empty`. A reset of the input's form clears the
|
|
38
|
+
* name, but clearing the input from code fires no change event and leaves it showing, so pass
|
|
39
|
+
* `fileName` to control the text then.
|
|
39
40
|
*/
|
|
40
41
|
hasName?: boolean;
|
|
41
42
|
/** Text on the file CTA button (defaults to "Choose a file…"). */
|