snice 7.0.0 → 7.0.2
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/adapters/react/SniceProvider.js +1 -1
- package/adapters/react/SniceRouter.js +1 -1
- package/adapters/react/matchRoute.js +1 -1
- package/adapters/react/useRequestHandler.js +1 -1
- package/bin/snice.js +3 -1
- package/bin/templates/default/package.json +1 -1
- package/bin/templates/gitignore +27 -0
- package/bin/templates/react/package.json +1 -1
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/action-bar/snice-action-bar.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
- package/dist/cdn/alert/snice-alert.js +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
- package/dist/cdn/availability/snice-availability.js +1 -1
- package/dist/cdn/avatar/snice-avatar.js +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.js +1 -1
- package/dist/cdn/badge/snice-badge.js +1 -1
- package/dist/cdn/banner/snice-banner.js +1 -1
- package/dist/cdn/binpack/snice-binpack.js +1 -1
- package/dist/cdn/book/snice-book.js +1 -1
- package/dist/cdn/booking/snice-booking.js +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
- package/dist/cdn/button/snice-button.js +1 -1
- package/dist/cdn/calendar/snice-calendar.js +1 -1
- package/dist/cdn/camera/snice-camera.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.js +1 -1
- package/dist/cdn/card/snice-card.js +1 -1
- package/dist/cdn/carousel/snice-carousel.js +1 -1
- package/dist/cdn/cart/snice-cart.js +1 -1
- package/dist/cdn/chart/snice-chart.js +1 -1
- package/dist/cdn/chat/snice-chat.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +1 -1
- package/dist/cdn/chip/snice-chip.js +1 -1
- package/dist/cdn/code-block/snice-code-block.js +1 -1
- package/dist/cdn/color-display/snice-color-display.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +1 -1
- package/dist/cdn/comments/snice-comments.js +1 -1
- package/dist/cdn/countdown/snice-countdown.js +1 -1
- package/dist/cdn/cropper/snice-cropper.js +1 -1
- package/dist/cdn/data-card/snice-data-card.js +1 -1
- package/dist/cdn/date-picker/snice-date-picker.js +1 -1
- package/dist/cdn/date-range-picker/snice-date-range-picker.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.js +1 -1
- package/dist/cdn/diff/snice-diff.js +1 -1
- package/dist/cdn/divider/snice-divider.js +1 -1
- package/dist/cdn/doc/snice-doc.js +1 -1
- package/dist/cdn/draw/snice-draw.js +1 -1
- package/dist/cdn/drawer/snice-drawer.js +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +1 -1
- package/dist/cdn/estimate/snice-estimate.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.js +1 -1
- package/dist/cdn/flip-card/snice-flip-card.js +1 -1
- package/dist/cdn/flow/snice-flow.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.js +1 -1
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/gantt/snice-gantt.js +1 -1
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/grid/snice-grid.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +1 -1
- package/dist/cdn/image/snice-image.js +1 -1
- package/dist/cdn/input/snice-input.js +1 -1
- package/dist/cdn/invoice/snice-invoice.js +1 -1
- package/dist/cdn/kanban/snice-kanban.js +1 -1
- package/dist/cdn/key-value/snice-key-value.js +1 -1
- package/dist/cdn/kpi/snice-kpi.js +1 -1
- package/dist/cdn/layout/snice-layout.js +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.js +1 -1
- package/dist/cdn/link/snice-link.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +1 -1
- package/dist/cdn/list/snice-list.js +1 -1
- package/dist/cdn/location/snice-location.js +1 -1
- package/dist/cdn/login/snice-login.js +1 -1
- package/dist/cdn/map/snice-map.js +1 -1
- package/dist/cdn/markdown/snice-markdown.js +1 -1
- package/dist/cdn/masonry/snice-masonry.js +1 -1
- package/dist/cdn/menu/snice-menu.js +1 -1
- package/dist/cdn/message-strip/snice-message-strip.js +1 -1
- package/dist/cdn/modal/snice-modal.js +1 -1
- package/dist/cdn/music-player/snice-music-player.js +1 -1
- package/dist/cdn/nav/snice-nav.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +1 -1
- package/dist/cdn/notification-center/snice-notification-center.js +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +1 -1
- package/dist/cdn/pagination/snice-pagination.js +1 -1
- package/dist/cdn/paint/snice-paint.js +1 -1
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
- package/dist/cdn/popover/snice-popover.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
- package/dist/cdn/product-card/snice-product-card.js +1 -1
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
- package/dist/cdn/radio/snice-radio.js +1 -1
- package/dist/cdn/range-slider/snice-range-slider.js +1 -1
- package/dist/cdn/rating/snice-rating.js +1 -1
- package/dist/cdn/receipt/snice-receipt.js +1 -1
- package/dist/cdn/recipe/snice-recipe.js +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.js +4 -4
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +4 -4
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/snice-sankey.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.js +1 -1
- package/dist/cdn/select/snice-select.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.js +1 -1
- package/dist/cdn/slider/snice-slider.js +1 -1
- package/dist/cdn/sortable/snice-sortable.js +1 -1
- package/dist/cdn/sparkline/snice-sparkline.js +1 -1
- package/dist/cdn/spinner/snice-spinner.js +1 -1
- package/dist/cdn/split-button/snice-split-button.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.js +1 -1
- package/dist/cdn/spotlight/snice-spotlight.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.js +1 -1
- package/dist/cdn/step-input/snice-step-input.js +1 -1
- package/dist/cdn/stepper/snice-stepper.js +1 -1
- package/dist/cdn/switch/snice-switch.js +1 -1
- package/dist/cdn/table/snice-table.esm.js +1 -1
- package/dist/cdn/table/snice-table.js +1 -1
- package/dist/cdn/tabs/snice-tabs.js +1 -1
- package/dist/cdn/tag/snice-tag.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.js +1 -1
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.js +1 -1
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/cdn/timeline/snice-timeline.js +1 -1
- package/dist/cdn/timer/snice-timer.js +1 -1
- package/dist/cdn/toast/snice-toast.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.js +1 -1
- package/dist/cdn/tree/snice-tree.js +1 -1
- package/dist/cdn/treemap/snice-treemap.js +1 -1
- package/dist/cdn/user-card/snice-user-card.js +1 -1
- package/dist/cdn/video-player/snice-video-player.js +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
- package/dist/cdn/waterfall/snice-waterfall.js +1 -1
- package/dist/cdn/weather/snice-weather.js +1 -1
- package/dist/cdn/work-order/snice-work-order.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/react/SniceProvider.js +1 -1
- package/dist/react/SniceRouter.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/matchRoute.js +1 -1
- package/dist/react/useRequestHandler.js +1 -1
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/ai/components/chat.md +4 -0
- package/docs/ai/components/doc.md +1 -0
- package/docs/ai/components/drawer.md +2 -0
- package/docs/ai/components/estimate.md +15 -0
- package/docs/ai/components/layout.md +7 -0
- package/docs/ai/components/modal.md +4 -0
- package/docs/ai/components/product-card.md +4 -0
- package/docs/ai/components/receipt.md +34 -0
- package/docs/ai/components/select.md +4 -0
- package/docs/ai/components/tabs.md +5 -0
- package/docs/ai/components/terminal.md +17 -0
- package/docs/ai/components/tooltip.md +5 -0
- package/docs/components/chat.md +7 -38
- package/docs/components/doc.md +1 -0
- package/docs/components/drawer.md +2 -0
- package/docs/components/estimate.md +15 -0
- package/docs/components/layout.md +9 -0
- package/docs/components/modal.md +6 -0
- package/docs/components/notification-center.md +0 -3
- package/docs/components/product-card.md +6 -0
- package/docs/components/receipt.md +31 -0
- package/docs/components/select.md +6 -0
- package/docs/components/tabs.md +7 -0
- package/docs/components/terminal.md +17 -0
- package/docs/components/tooltip.md +7 -0
- package/package.json +2 -2
package/docs/components/chat.md
CHANGED
|
@@ -115,44 +115,13 @@ React, edit, and delete are applied to the local `messages` model by the compone
|
|
|
115
115
|
|
|
116
116
|
| Property | Description |
|
|
117
117
|
|----------|-------------|
|
|
118
|
-
| `--snice-chat-height` |
|
|
119
|
-
| `--snice-chat-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
| `--snice-chat-system-color` | System message color |
|
|
126
|
-
| `--snice-chat-placeholder-color` | Input placeholder color |
|
|
127
|
-
| `--snice-chat-scrollbar-color` | Scrollbar thumb color |
|
|
128
|
-
| `--snice-chat-scrollbar-hover-color` | Scrollbar hover color |
|
|
129
|
-
| `--snice-chat-avatar-background` | Avatar background color |
|
|
130
|
-
| `--snice-chat-avatar-text-color` | Avatar text color |
|
|
131
|
-
| `--snice-chat-attachment-border` | Attachment border color |
|
|
132
|
-
| `--snice-chat-attachment-background` | Attachment background |
|
|
133
|
-
| `--snice-chat-attachment-icon-background` | Attachment icon background |
|
|
134
|
-
| `--snice-chat-attachment-icon-color` | Attachment icon color |
|
|
135
|
-
| `--snice-chat-reaction-background` | Reaction background |
|
|
136
|
-
| `--snice-chat-reaction-border` | Reaction border |
|
|
137
|
-
| `--snice-chat-reaction-hover-background` | Reaction hover background |
|
|
138
|
-
| `--snice-chat-reaction-active-background` | Active reaction background |
|
|
139
|
-
| `--snice-chat-reaction-active-color` | Active reaction text color |
|
|
140
|
-
| `--snice-chat-reaction-active-border` | Active reaction border |
|
|
141
|
-
| `--snice-chat-actions-background` | Actions menu background |
|
|
142
|
-
| `--snice-chat-action-color` | Action icon color |
|
|
143
|
-
| `--snice-chat-action-hover-background` | Action hover background |
|
|
144
|
-
| `--snice-chat-typing-color` | Typing indicator text color |
|
|
145
|
-
| `--snice-chat-typing-dot-color` | Typing indicator dot color |
|
|
146
|
-
| `--snice-chat-input-background` | Input field background |
|
|
147
|
-
| `--snice-chat-input-container-background` | Input area background |
|
|
148
|
-
| `--snice-chat-input-border` | Input border |
|
|
149
|
-
| `--snice-chat-input-focus-border` | Input focus border |
|
|
150
|
-
| `--snice-chat-button-color` | Button icon color |
|
|
151
|
-
| `--snice-chat-button-hover-background` | Button hover background |
|
|
152
|
-
| `--snice-chat-send-color` | Send button text color |
|
|
153
|
-
| `--snice-chat-send-background` | Send button background |
|
|
154
|
-
| `--snice-chat-send-hover-background` | Send button hover background |
|
|
155
|
-
| `--snice-chat-empty-color` | Empty state text color |
|
|
118
|
+
| `--snice-chat-height` | Height of the chat container |
|
|
119
|
+
| `--snice-chat-author-color` | Message author name colour |
|
|
120
|
+
|
|
121
|
+
Everything else follows the theme: colours come from `--snice-color-*`, spacing
|
|
122
|
+
from `--snice-spacing-*`, radii from `--snice-border-radius-*`. Override those
|
|
123
|
+
tokens on the host to restyle the component, or use the [CSS parts](#css-parts)
|
|
124
|
+
for structural changes.
|
|
156
125
|
|
|
157
126
|
## CSS Parts
|
|
158
127
|
|
package/docs/components/doc.md
CHANGED
|
@@ -38,6 +38,7 @@ A simple WYSIWYG document editor component with formatting toolbar and content i
|
|
|
38
38
|
|
|
39
39
|
| Property | Description |
|
|
40
40
|
|----------|-------------|
|
|
41
|
+
| `--snice-doc-active-background` | Doc active background |
|
|
41
42
|
| `--snice-doc-font-family` | Editor font family |
|
|
42
43
|
| `--snice-doc-font-size` | Editor font size |
|
|
43
44
|
| `--snice-doc-text-color` | Text color |
|
|
@@ -63,6 +63,8 @@ Slide-out panel from any viewport side with focus trap and dismissal options. Su
|
|
|
63
63
|
|
|
64
64
|
| Property | Description | Default |
|
|
65
65
|
|----------|-------------|---------|
|
|
66
|
+
| `--snice-drawer-backdrop` | Drawer backdrop | -- |
|
|
67
|
+
| `--snice-drawer-control-size` | Drawer control size | -- |
|
|
66
68
|
| `--drawer-width-small` | Small drawer width | `var(--snice-size-drawer-small, 15rem)` |
|
|
67
69
|
| `--drawer-width-medium` | Medium drawer width | `var(--snice-size-drawer-medium, 20rem)` |
|
|
68
70
|
| `--drawer-width-large` | Large drawer width | `var(--snice-size-drawer-large, 30rem)` |
|
|
@@ -126,6 +126,21 @@ interface EstimateItem {
|
|
|
126
126
|
|
|
127
127
|
| Property | Default | Description |
|
|
128
128
|
|----------|---------|-------------|
|
|
129
|
+
| `--snice-estimate-border-inverse` | Estimate border inverse | -- |
|
|
130
|
+
| `--snice-estimate-border-inverse-light` | Estimate border inverse light | -- |
|
|
131
|
+
| `--snice-estimate-creative-alpha` | Estimate creative tint | -- |
|
|
132
|
+
| `--snice-estimate-creative-alpha-strong` | Estimate creative tint strong | -- |
|
|
133
|
+
| `--snice-estimate-creative-end` | Estimate creative end stop | -- |
|
|
134
|
+
| `--snice-estimate-creative-mid` | Estimate creative midpoint | -- |
|
|
135
|
+
| `--snice-estimate-creative-shadow` | Estimate creative shadow | -- |
|
|
136
|
+
| `--snice-estimate-creative-start` | Estimate creative start | -- |
|
|
137
|
+
| `--snice-estimate-surface-alt` | Estimate surface alt | -- |
|
|
138
|
+
| `--snice-estimate-surface-inverse-alpha` | Estimate surface inverse tint | -- |
|
|
139
|
+
| `--snice-estimate-text-inverse-muted` | Estimate text inverse muted | -- |
|
|
140
|
+
| `--snice-estimate-text-inverse-subtle` | Estimate text inverse subtle | -- |
|
|
141
|
+
| `--snice-estimate-text-muted` | Estimate text muted | -- |
|
|
142
|
+
| `--snice-estimate-text-muted-light` | Estimate text muted light | -- |
|
|
143
|
+
| `--snice-estimate-warning-text` | Estimate warning text | -- |
|
|
129
144
|
| `--estimate-max-width` | `50rem` | Maximum width |
|
|
130
145
|
| `--estimate-bg` | `white` | Background color |
|
|
131
146
|
| `--estimate-bg-element` | `rgb(252 251 249)` | Element background |
|
|
@@ -118,6 +118,15 @@ Use the `update()` method to sync navigation with the router.
|
|
|
118
118
|
layout.update(appContext, placards, currentRoute, routeParams);
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
## CSS Custom Properties
|
|
122
|
+
|
|
123
|
+
| Property | Description |
|
|
124
|
+
|----------|-------------|
|
|
125
|
+
| `--snice-layout-auth-panel-bg` | Layout auth panel background |
|
|
126
|
+
| `--snice-layout-control-size` | Layout control size |
|
|
127
|
+
| `--snice-layout-docs-header-height` | Layout docs header height |
|
|
128
|
+
| `--snice-layout-docs-header-height-compact` | Layout docs header height compact |
|
|
129
|
+
|
|
121
130
|
## Shell variants
|
|
122
131
|
|
|
123
132
|
`<snice-layout>` is the stacked shell (header / main / footer). These siblings cover the
|
package/docs/components/modal.md
CHANGED
|
@@ -191,6 +191,12 @@ modal.addEventListener('modal-close', () => console.log('Closed'));
|
|
|
191
191
|
| Tab | Cycle through focusable elements within the modal |
|
|
192
192
|
| Shift+Tab | Cycle backwards through focusable elements |
|
|
193
193
|
|
|
194
|
+
## CSS Custom Properties
|
|
195
|
+
|
|
196
|
+
| Property | Description |
|
|
197
|
+
|----------|-------------|
|
|
198
|
+
| `--snice-modal-backdrop` | Modal backdrop |
|
|
199
|
+
|
|
194
200
|
## Accessibility
|
|
195
201
|
|
|
196
202
|
- Uses `role="dialog"` with `aria-modal="true"` and `aria-label`
|
|
@@ -76,13 +76,10 @@ snice-notification-center::part(panel) {
|
|
|
76
76
|
| `--snice-color-primary` | Mark-all-read link color and unread highlight |
|
|
77
77
|
| `--snice-color-primary-subtle` | Unread item background |
|
|
78
78
|
| `--snice-color-danger` | Badge background and dismiss hover color |
|
|
79
|
-
| `--snice-color-text-inverse` | Badge text color |
|
|
80
79
|
| `--snice-color-text-secondary` | Message text color |
|
|
81
80
|
| `--snice-color-text-tertiary` | Timestamp, empty state text, and dismiss icon color |
|
|
82
81
|
| `--snice-color-border` | Panel and item border color |
|
|
83
82
|
| `--snice-color-surface` | Panel background color |
|
|
84
|
-
| `--snice-color-surface-container-high` | Item hover and bell hover background |
|
|
85
|
-
| `--snice-shadow-lg` | Panel drop shadow |
|
|
86
83
|
|
|
87
84
|
## Basic Usage
|
|
88
85
|
|
|
@@ -154,6 +154,12 @@ card.addEventListener('add-to-cart', (e) => {
|
|
|
154
154
|
- Out-of-stock state disables the CTA button
|
|
155
155
|
- All interactive elements are keyboard-focusable
|
|
156
156
|
|
|
157
|
+
## CSS Custom Properties
|
|
158
|
+
|
|
159
|
+
| Property | Description |
|
|
160
|
+
|----------|-------------|
|
|
161
|
+
| `--snice-product-card-badge-bg` | Product card badge background |
|
|
162
|
+
|
|
157
163
|
## Data Types
|
|
158
164
|
|
|
159
165
|
```typescript
|
|
@@ -92,6 +92,37 @@ interface ReceiptTaxLine {
|
|
|
92
92
|
|
|
93
93
|
| Property | Description | Default |
|
|
94
94
|
|----------|-------------|---------|
|
|
95
|
+
| `--snice-receipt-accent` | Receipt accent | -- |
|
|
96
|
+
| `--snice-receipt-bg` | Receipt background | -- |
|
|
97
|
+
| `--snice-receipt-bg-element` | Receipt background element | -- |
|
|
98
|
+
| `--snice-receipt-border` | Receipt border | -- |
|
|
99
|
+
| `--snice-receipt-border-color` | Receipt border color | -- |
|
|
100
|
+
| `--snice-receipt-border-radius` | Receipt border radius | -- |
|
|
101
|
+
| `--snice-receipt-divider-color` | Receipt divider color | -- |
|
|
102
|
+
| `--snice-receipt-divider-style` | Receipt divider style | -- |
|
|
103
|
+
| `--snice-receipt-divider-width` | Receipt divider width | -- |
|
|
104
|
+
| `--snice-receipt-font-family` | Receipt font family | -- |
|
|
105
|
+
| `--snice-receipt-footer-font-size` | Receipt footer font size | -- |
|
|
106
|
+
| `--snice-receipt-header-bg` | Receipt header background | -- |
|
|
107
|
+
| `--snice-receipt-item-font-size` | Receipt item font size | -- |
|
|
108
|
+
| `--snice-receipt-max-width` | Receipt maximum width | -- |
|
|
109
|
+
| `--snice-receipt-merchant-font-size` | Receipt merchant font size | -- |
|
|
110
|
+
| `--snice-receipt-meta-font-size` | Receipt meta font size | -- |
|
|
111
|
+
| `--snice-receipt-modern-radius` | Receipt modern radius | -- |
|
|
112
|
+
| `--snice-receipt-modern-section-bg` | Receipt modern section background | -- |
|
|
113
|
+
| `--snice-receipt-modern-section-radius` | Receipt modern section radius | -- |
|
|
114
|
+
| `--snice-receipt-modern-shadow` | Receipt modern shadow | -- |
|
|
115
|
+
| `--snice-receipt-padding` | Receipt padding | -- |
|
|
116
|
+
| `--snice-receipt-qr-size` | Receipt qr size | -- |
|
|
117
|
+
| `--snice-receipt-shadow` | Receipt shadow | -- |
|
|
118
|
+
| `--snice-receipt-text` | Receipt text | -- |
|
|
119
|
+
| `--snice-receipt-text-secondary` | Receipt text secondary | -- |
|
|
120
|
+
| `--snice-receipt-text-tertiary` | Receipt text tertiary | -- |
|
|
121
|
+
| `--snice-receipt-thermal-bg` | Receipt thermal background | -- |
|
|
122
|
+
| `--snice-receipt-thermal-font` | Receipt thermal font | -- |
|
|
123
|
+
| `--snice-receipt-thermal-width` | Receipt thermal width | -- |
|
|
124
|
+
| `--snice-receipt-total-font-size` | Receipt total font size | -- |
|
|
125
|
+
| `--snice-receipt-total-font-weight` | Receipt total font weight | -- |
|
|
95
126
|
| `--receipt-max-width` | Maximum width | `22rem` |
|
|
96
127
|
| `--receipt-padding` | Internal padding | `1.5rem` |
|
|
97
128
|
| `--receipt-bg` | Background color | `white` |
|
|
@@ -286,6 +286,12 @@ An enabled empty `required` select reports `validity.valueMissing`, including mu
|
|
|
286
286
|
| `Escape` | Close dropdown |
|
|
287
287
|
| `Tab` | Close dropdown and move focus |
|
|
288
288
|
|
|
289
|
+
## CSS Custom Properties
|
|
290
|
+
|
|
291
|
+
| Property | Description |
|
|
292
|
+
|----------|-------------|
|
|
293
|
+
| `--snice-select-min-height` | Select minimum height |
|
|
294
|
+
|
|
289
295
|
## Accessibility
|
|
290
296
|
|
|
291
297
|
- Native explicit and wrapping label association through the form-associated host
|
package/docs/components/tabs.md
CHANGED
|
@@ -107,6 +107,13 @@ import 'snice/components/tabs/snice-tab-panel';
|
|
|
107
107
|
</snice-tabs>
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
+
## CSS Custom Properties
|
|
111
|
+
|
|
112
|
+
| Property | Description |
|
|
113
|
+
|----------|-------------|
|
|
114
|
+
| `--snice-tabs-panel-padding` | Tabs panel padding |
|
|
115
|
+
| `--snice-tabs-transition-duration` | Tabs transition duration |
|
|
116
|
+
|
|
110
117
|
## Examples
|
|
111
118
|
|
|
112
119
|
### Placement
|
|
@@ -50,6 +50,23 @@ A shell terminal emulator with command execution, history navigation, and ANSI c
|
|
|
50
50
|
|
|
51
51
|
| Property | Description | Default |
|
|
52
52
|
|----------|-------------|---------|
|
|
53
|
+
| `--snice-terminal-ansi-black` | Terminal ANSI black | -- |
|
|
54
|
+
| `--snice-terminal-ansi-blue` | Terminal ANSI blue | -- |
|
|
55
|
+
| `--snice-terminal-ansi-bright-black` | Terminal ANSI bright black | -- |
|
|
56
|
+
| `--snice-terminal-ansi-bright-blue` | Terminal ANSI bright blue | -- |
|
|
57
|
+
| `--snice-terminal-ansi-bright-cyan` | Terminal ANSI bright cyan | -- |
|
|
58
|
+
| `--snice-terminal-ansi-bright-green` | Terminal ANSI bright green | -- |
|
|
59
|
+
| `--snice-terminal-ansi-bright-magenta` | Terminal ANSI bright magenta | -- |
|
|
60
|
+
| `--snice-terminal-ansi-bright-red` | Terminal ANSI bright red | -- |
|
|
61
|
+
| `--snice-terminal-ansi-bright-white` | Terminal ANSI bright white | -- |
|
|
62
|
+
| `--snice-terminal-ansi-bright-yellow` | Terminal ANSI bright yellow | -- |
|
|
63
|
+
| `--snice-terminal-ansi-cyan` | Terminal ANSI cyan | -- |
|
|
64
|
+
| `--snice-terminal-ansi-green` | Terminal ANSI green | -- |
|
|
65
|
+
| `--snice-terminal-ansi-magenta` | Terminal ANSI magenta | -- |
|
|
66
|
+
| `--snice-terminal-ansi-red` | Terminal ANSI red | -- |
|
|
67
|
+
| `--snice-terminal-ansi-white` | Terminal ANSI white | -- |
|
|
68
|
+
| `--snice-terminal-ansi-yellow` | Terminal ANSI yellow | -- |
|
|
69
|
+
| `--snice-terminal-scrollbar-hover-color` | Terminal scrollbar hover color | -- |
|
|
53
70
|
| `--snice-terminal-height` | Terminal height | `400px` |
|
|
54
71
|
| `--snice-terminal-font-size` | Font size | `0.875rem` |
|
|
55
72
|
| `--snice-terminal-line-height` | Line height | `1.2` |
|
|
@@ -183,6 +183,13 @@ Set the `strict-positioning` attribute to disable automatic repositioning when n
|
|
|
183
183
|
</div>
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
## CSS Custom Properties
|
|
187
|
+
|
|
188
|
+
| Property | Description |
|
|
189
|
+
|----------|-------------|
|
|
190
|
+
| `--snice-tooltip-bg` | Tooltip background |
|
|
191
|
+
| `--snice-tooltip-color` | Tooltip color |
|
|
192
|
+
|
|
186
193
|
## Attribute-Based Tooltips
|
|
187
194
|
|
|
188
195
|
Wrapping elements in `<snice-tooltip>` can break parent-child relationships in components that require direct children (accordion, tabs, stepper, breadcrumbs, table, etc.). The attribute-based approach uses a plain `tooltip` attribute on any element, avoiding DOM disruption entirely.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snice",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A decorator-driven web component library with differential rendering, routing, controllers, and 130+ ready-made UI components. Use as much or as little as you want. Zero dependencies, works anywhere.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"test:browsers:install": "playwright install chromium firefox webkit",
|
|
151
151
|
"test:live:components": "npx playwright test tests/live/components --config=tests/playwright.config.ts",
|
|
152
152
|
"test:live:templates": "npx playwright test tests/live/templates --config=tests/playwright.config.ts",
|
|
153
|
-
"prerelease": "NEXT_VERSION=$(node tooling/release/get-next-version.js) && node tooling/generators/sync-template-versions.js $NEXT_VERSION && npm run build",
|
|
153
|
+
"prerelease": "export NEXT_VERSION=$(node tooling/release/get-next-version.js) && node tooling/generators/sync-template-versions.js $NEXT_VERSION && npm run build",
|
|
154
154
|
"release": "semantic-release --no-ci",
|
|
155
155
|
"postrelease": "npm run deploy:website",
|
|
156
156
|
"release:dry-run": "semantic-release --dry-run --no-ci",
|