create-bestax 4.2.17 → 4.2.18
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 +13 -5
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +6 -1
- package/dist/display.d.ts +9 -0
- package/dist/display.d.ts.map +1 -1
- package/dist/display.js +19 -1
- package/dist/file-system.d.ts +16 -3
- package/dist/file-system.d.ts.map +1 -1
- package/dist/file-system.js +41 -5
- package/dist/project-creator.d.ts +16 -1
- package/dist/project-creator.d.ts.map +1 -1
- package/dist/project-creator.js +35 -6
- package/dist/prompts.d.ts +1 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +3 -2
- package/dist/validators.d.ts +8 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +18 -1
- package/package.json +3 -3
- package/templates/skills/bestax-custom-component/references/component-catalog.md +3 -1
- package/templates/skills/bestax-form/SKILL.md +6 -2
- package/templates/skills/bestax-form/references/api.md +3 -0
- package/templates/skills/bestax-form/references/patterns.md +7 -3
- package/templates/skills/bestax-layout-scaffold/SKILL.md +20 -3
- package/templates/skills/bestax-layout-scaffold/references/layout-components.md +3 -3
- package/templates/skills/bestax-migrate/SKILL.md +23 -2
- package/templates/skills/bestax-migrate/references/bloomer/prop-map.md +4 -4
- package/templates/skills/bestax-migrate/references/bulma-classes/component-map.md +9 -4
- package/templates/skills/bestax-migrate/references/bulma-classes/prop-map.md +1 -1
- package/templates/skills/bestax-migrate/references/bulma-classes/unmappables.md +317 -4
- package/templates/skills/bestax-migrate/references/css-migration.md +5 -1
- package/templates/skills/bestax-migrate/references/rbx/prop-map.md +4 -4
- package/templates/skills/bestax-migrate/references/react-bulma-components/unmappables.md +4 -4
- package/templates/skills/bestax-optimize/references/modular-build.md +5 -3
- package/templates/skills/bestax-theming/references/css-variables.md +43 -0
- package/templates/skills/bestax-theming/references/themeable-components.md +2 -0
|
@@ -74,7 +74,8 @@ is **more complete** than the docs page's Option C example, which omits several)
|
|
|
74
74
|
|
|
75
75
|
**Components** (`@allxsmith/bestax-bulma/scss/components/<name>`):
|
|
76
76
|
`loading`, `collapse`, `tooltip`, `popover`, `hovercard`, `contextmenu`, `steps`, `sidebar`,
|
|
77
|
-
`toast`, `dialog`, `carousel`, `tabs`, `reveal`, `avatar`, `avatars`, `badge`, `emptystate
|
|
77
|
+
`toast`, `dialog`, `carousel`, `tabs`, `reveal`, `avatar`, `avatars`, `badge`, `emptystate`,
|
|
78
|
+
`timeline`, `treeview`
|
|
78
79
|
|
|
79
80
|
**Form** (`@allxsmith/bestax-bulma/scss/form/<name>`):
|
|
80
81
|
`checkbox`, `radio`, `switch`, `slider`, `numberinput`, `rate`, `autocomplete`, `taginput`,
|
|
@@ -100,8 +101,9 @@ Notes:
|
|
|
100
101
|
`bulma/sass/components/dropdown` next to `scss/components/contextmenu`.
|
|
101
102
|
- `Loader` is stock Bulma styled by `bulma/sass/elements/loader`, and the `isLoading`
|
|
102
103
|
spinners on `Button`, `Control` and `Select` are Bulma's too. The `loader` extras partial
|
|
103
|
-
stops all of them under `prefers-reduced-motion: reduce
|
|
104
|
-
|
|
104
|
+
stops all of them under `prefers-reduced-motion: reduce` and keeps each ring open in forced
|
|
105
|
+
colors (Windows' contrast themes), so include it next to the Bulma modules in any build that
|
|
106
|
+
shows one. Its rules are `!important`, so the order of the two
|
|
105
107
|
`@use` lines does not matter.
|
|
106
108
|
- `Progress` and the skeletons are stock Bulma too (`bulma/sass/elements/progress`,
|
|
107
109
|
`bulma/sass/base/skeleton`). The `progress` and `skeleton` extras partials stop the
|
|
@@ -502,6 +502,28 @@ them. See the constituent-element exception above.
|
|
|
502
502
|
`--bulma-timeinput-wheel-item-height` is registered but has no effect: the component sets each
|
|
503
503
|
wheel item's height inline.
|
|
504
504
|
|
|
505
|
+
### Timeline
|
|
506
|
+
|
|
507
|
+
Declared on the root, `.timeline`. The states and the color classes set
|
|
508
|
+
`--bulma-timeline-marker-color` for each marker, and the layouts set
|
|
509
|
+
`--bulma-timeline-rail-center`, so retheme the markers through `--bulma-timeline-neutral-color`
|
|
510
|
+
and `--bulma-timeline-active-color` rather than those two. `--bulma-timeline-marker-background`
|
|
511
|
+
fills the upcoming rings and the pending loader, and a reached icon marker's tint is mixed into
|
|
512
|
+
it. It's the page's color by default, so it hides the line behind them. A record's icon circles
|
|
513
|
+
take `--bulma-timeline-marker-icon-background`, which the color classes set. Every size is in
|
|
514
|
+
`em`, so `textSize` scales them all.
|
|
515
|
+
|
|
516
|
+
`--bulma-timeline-active-color`, `--bulma-timeline-content-gap`, `--bulma-timeline-dot-size`,
|
|
517
|
+
`--bulma-timeline-gap`, `--bulma-timeline-halo-offset`, `--bulma-timeline-line-color`,
|
|
518
|
+
`--bulma-timeline-line-width`, `--bulma-timeline-marker-background`,
|
|
519
|
+
`--bulma-timeline-marker-color`, `--bulma-timeline-marker-icon-background`,
|
|
520
|
+
`--bulma-timeline-marker-icon-color`, `--bulma-timeline-marker-size`,
|
|
521
|
+
`--bulma-timeline-neutral-color`, `--bulma-timeline-pending-duration`,
|
|
522
|
+
`--bulma-timeline-pending-size`,
|
|
523
|
+
`--bulma-timeline-rail-center`, `--bulma-timeline-rail-size`, `--bulma-timeline-rail-size-icon`,
|
|
524
|
+
`--bulma-timeline-time-color`, `--bulma-timeline-time-size`, `--bulma-timeline-title-color`,
|
|
525
|
+
`--bulma-timeline-title-weight`
|
|
526
|
+
|
|
505
527
|
### Toast
|
|
506
528
|
|
|
507
529
|
`--bulma-toast-action-hover-opacity`, `--bulma-toast-action-radius`,
|
|
@@ -525,6 +547,27 @@ trigger and the tooltip past what the pointer can cross on its own, so give the
|
|
|
525
547
|
`--bulma-tooltip-multiline-width`, `--bulma-tooltip-padding`, `--bulma-tooltip-radius`,
|
|
526
548
|
`--bulma-tooltip-z-index`
|
|
527
549
|
|
|
550
|
+
### TreeView
|
|
551
|
+
|
|
552
|
+
Declared on the root, `.tree-view`. A tree looks like Bulma's menu, but the menu's variables
|
|
553
|
+
don't reach it: `--bulma-menu-*` is registered on `.menu` alone, so retheme a tree through these.
|
|
554
|
+
Each default is the base token the matching menu variable defaults to (`scheme-h`, `text-l`,
|
|
555
|
+
`link-l`, `radius-small`, `border` and so on), so a theme's base tokens move the tree and the menu
|
|
556
|
+
together. A selected row swaps in the `item-selected-*` values on its own row, and a row's hover
|
|
557
|
+
and press tints change `--bulma-tree-view-item-background-l-delta` there. A checkbox tree's boxes
|
|
558
|
+
are `Checkbox`'s, themed through `--bulma-checkbox-*`.
|
|
559
|
+
|
|
560
|
+
`--bulma-tree-view-gap`, `--bulma-tree-view-group-border`, `--bulma-tree-view-group-margin`,
|
|
561
|
+
`--bulma-tree-view-group-padding`, `--bulma-tree-view-item-active-background-l-delta`,
|
|
562
|
+
`--bulma-tree-view-item-background-l`, `--bulma-tree-view-item-background-l-delta`,
|
|
563
|
+
`--bulma-tree-view-item-color-l`, `--bulma-tree-view-item-disabled-color`,
|
|
564
|
+
`--bulma-tree-view-item-h`, `--bulma-tree-view-item-hover-background-l-delta`,
|
|
565
|
+
`--bulma-tree-view-item-padding`, `--bulma-tree-view-item-radius`, `--bulma-tree-view-item-s`,
|
|
566
|
+
`--bulma-tree-view-item-selected-background-l`, `--bulma-tree-view-item-selected-color-l`,
|
|
567
|
+
`--bulma-tree-view-item-selected-h`, `--bulma-tree-view-item-selected-s`,
|
|
568
|
+
`--bulma-tree-view-line-height`, `--bulma-tree-view-toggle-color`,
|
|
569
|
+
`--bulma-tree-view-toggle-duration`, `--bulma-tree-view-toggle-size`
|
|
570
|
+
|
|
528
571
|
## Dark mode (`Theme colorMode`)
|
|
529
572
|
|
|
530
573
|
Drive the light/dark scheme with the `Theme` component's **`colorMode`** prop —
|
|
@@ -86,8 +86,10 @@ Shades (`colorShade` / `backgroundColorShade`): `00, 05, 10, … 95, invert, lig
|
|
|
86
86
|
| `Taginput` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | also `tagColor` (the 6 + `dark \| light`) for the tags |
|
|
87
87
|
| `TextArea` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | `small \| medium \| large` | — |
|
|
88
88
|
| `TimeInput` | `primary \| link \| info \| success \| warning \| danger` | `small \| medium \| large` | — |
|
|
89
|
+
| `Timeline` | `primary \| link \| info \| success \| warning \| danger` (the markers and the progress, never the text) | no `size` (sized in `em`; size it with `textSize`) | `Timeline.Item` takes `color` too, over the root's; neutral with no `color`, and progress in `link`; retheme through `--bulma-timeline-*` |
|
|
89
90
|
| `ToggleButton` | `primary \| link \| info \| success \| warning \| danger` | `small \| normal \| medium \| large` | fills only while pressed (default `link`); **no `isLight`/`isOutlined`/`isInverted`/`textColor`/`bgColor`** |
|
|
90
91
|
| `Tooltip` | `primary \| link \| info \| success \| warning \| danger \| dark \| light` | `small \| medium \| large` | — |
|
|
92
|
+
| `TreeView` | only the text helper, which doesn't reach the rows: each row sets its own text color, so retheme them through `--bulma-tree-view-*` | `small \| medium \| large` | the menu's sizes; its variables copy the menu's defaults, and `--bulma-menu-*` doesn't reach it; the boxes are `Checkbox`'s |
|
|
91
93
|
| `Tr` / `Td` / `Th` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | — | cell background; cells take `textAlign`/`textWeight`/`textSize` directly |
|
|
92
94
|
|
|
93
95
|
The 6 brand colors (`primary, link, info, success, warning, danger`) are the ones a custom theme
|