diff --git a/examples/official-site/content/components/alert.md b/examples/official-site/content/components/alert.md new file mode 100644 index 000000000..5f4661c0c --- /dev/null +++ b/examples/official-site/content/components/alert.md @@ -0,0 +1,53 @@ +--- +icon: alert-triangle +category: forms-and-feedback +summary: Draw attention to a message with a color and an icon. +top: + - name: close_label + type: TEXT + description: Accessible name of the close button of a dismissible alert, which screen readers announce. + The default is "Close". + - class + - name: color + type: COLOR + description: The color theme for the alert message. + - name: description + type: TEXT + description: Detailed description or content of the alert message. + - name: description_md + type: TEXT + description: Detailed description or content of the alert message, in Markdown format, allowing you to + use rich text formatting, including `**bold**` and `*italic*` text. + - name: dismissible + type: BOOLEAN + description: Whether the user can close the alert message. + - name: icon + type: TEXT + description: Icon name (from tabler-icons.io) to display next to the alert message. + - id + - name: important + type: BOOLEAN + description: Set this to TRUE to make the alert message more prominent. + - name: link + type: URL + description: A URL to link to from the alert message. + - name: link_text + type: TEXT + description: Customize the text of the link in the alert message. The default is "Ok". + - name: title + type: TEXT + required: true + description: Title of the alert message. +row: + - name: color + type: COLOR + description: Customize the color of the link. + - name: link + type: URL + description: A URL to link to from the alert message. + - name: title + type: TEXT + description: Customize the text of the link in the alert message. The default is "Ok". +--- + +A visually distinctive message or notification. diff --git a/examples/official-site/content/components/alert/examples/01-basic.md b/examples/official-site/content/components/alert/examples/01-basic.md new file mode 100644 index 000000000..980732ae5 --- /dev/null +++ b/examples/official-site/content/components/alert/examples/01-basic.md @@ -0,0 +1,8 @@ +--- +rows: + - component: alert + title: Attention + description: This is an important message. +--- + +A basic alert message diff --git a/examples/official-site/content/components/alert/examples/02-notifications.md b/examples/official-site/content/components/alert/examples/02-notifications.md new file mode 100644 index 000000000..177d145f7 --- /dev/null +++ b/examples/official-site/content/components/alert/examples/02-notifications.md @@ -0,0 +1,20 @@ +--- +rows: + - component: alert + title: Success + description: Item successfully added to your cart. + icon: check + color: green + - component: alert + title: Warning + description: Your cart is almost full. + icon: alert-triangle + color: yellow + - component: alert + title: Error + description: Your cart is full. + icon: alert-circle + color: red +--- + +A list of notifications diff --git a/examples/official-site/content/components/alert/examples/03-multiple-links.md b/examples/official-site/content/components/alert/examples/03-multiple-links.md new file mode 100644 index 000000000..76635214e --- /dev/null +++ b/examples/official-site/content/components/alert/examples/03-multiple-links.md @@ -0,0 +1,16 @@ +--- +rows: + - component: alert + title: Your dashboard is ready! + icon: analyze + color: teal + dismissible: true + description: Your public web dashboard was successfully created. + - link: dashboard.sql + title: View your dashboard + - link: index.sql + title: Back to home + color: secondary +--- + +A full-featured notification message with multiple links diff --git a/examples/official-site/content/components/alert/examples/04-danger.md b/examples/official-site/content/components/alert/examples/04-danger.md new file mode 100644 index 000000000..f56a0c417 --- /dev/null +++ b/examples/official-site/content/components/alert/examples/04-danger.md @@ -0,0 +1,15 @@ +--- +rows: + - component: alert + title: Alert + icon: alert-circle + color: red + important: true + dismissible: true + close_label: Dismiss this alert + description: SQLPage is entirely free and open source. + link: https://github.com/sqlpage/SQLPage + link_text: See source code +--- + +A dismissible alert. `close_label` names the close button for screen readers. diff --git a/examples/official-site/content/components/alert/examples/05-markdown.md b/examples/official-site/content/components/alert/examples/05-markdown.md new file mode 100644 index 000000000..b91bd0460 --- /dev/null +++ b/examples/official-site/content/components/alert/examples/05-markdown.md @@ -0,0 +1,10 @@ +--- +rows: + - component: alert + title: Free and open source + icon: free-rights + color: info + description_md: '*SQLPage* is entirely free and open source. You can **contribute** to it on [GitHub](https://github.com/sqlpage/SQLPage).' +--- + +An alert message with a Markdown-formatted description diff --git a/examples/official-site/content/components/empty_state.md b/examples/official-site/content/components/empty_state.md new file mode 100644 index 000000000..8b511fe90 --- /dev/null +++ b/examples/official-site/content/components/empty_state.md @@ -0,0 +1,46 @@ +--- +icon: info-circle +since: 0.35.0 +category: forms-and-feedback +summary: Explain an empty view and offer the reader a next step. +top: + - class + - name: description + type: TEXT + description: A short text displayed below the title. + - name: description_md + type: TEXT + description: A short text displayed below the title, formatted using markdown. + - name: header + type: TEXT + description: Text displayed on the top of the empty state. + - name: icon + type: ICON + description: Name of an icon to be displayed on the top of the empty state. + - id + - name: image + type: URL + description: The URL (absolute or relative) of an image to display at the top of the empty state. + - name: link + type: URL + required: true + description: The URL to which the button should navigate when clicked. + - name: link_icon + type: ICON + required: true + description: Name of an icon to be displayed on the left side of the button. + - name: link_text + type: TEXT + required: true + description: The text displayed on the button. + - name: title + type: TEXT + required: true + description: Description of the empty state. +--- + +Displays a large placeholder message to communicate a single information to the user and invite them to take action. + +Typically includes a title, an optional icon/image, descriptive text (rich text formatting and images supported via Markdown), and a call-to-action button. + +Ideal for first-use screens, empty data sets, "no results" pages, or error messages. diff --git a/examples/official-site/content/components/empty_state/examples/01-not-found.md b/examples/official-site/content/components/empty_state/examples/01-not-found.md new file mode 100644 index 000000000..f1342e3db --- /dev/null +++ b/examples/official-site/content/components/empty_state/examples/01-not-found.md @@ -0,0 +1,16 @@ +--- +rows: + - component: empty_state + title: No results found + header: '404' + description: Try adjusting your search or filter to find what you're looking for. + link_text: Search again + link_icon: search + link: '#not-found' + id: not-found +--- + +This example shows how to create a 404-style "Not Found" empty state with + - a prominent header displaying "404", + - a helpful description suggesting to adjust search parameters, and + - a "Search again" button with a search icon that links back to the search page. diff --git a/examples/official-site/content/components/empty_state/examples/02-illustration.md b/examples/official-site/content/components/empty_state/examples/02-illustration.md new file mode 100644 index 000000000..d5836daf0 --- /dev/null +++ b/examples/official-site/content/components/empty_state/examples/02-illustration.md @@ -0,0 +1,15 @@ +--- +rows: + - component: empty_state + title: A critical problem has occurred + icon: mood-wrrr + description_md: |- + SQLPage can do a lot of things, but this is not one of them. + + Please restart your browser and **cross your fingers**. + link_text: Close and restart + link_icon: rotate-clockwise + link: '#' +--- + +It's possible to use an icon or an image to illustrate the problem. diff --git a/examples/official-site/content/components/toast.md b/examples/official-site/content/components/toast.md new file mode 100644 index 000000000..cd190a9a7 --- /dev/null +++ b/examples/official-site/content/components/toast.md @@ -0,0 +1,47 @@ +--- +icon: notification +since: 0.46.0 +category: forms-and-feedback +summary: Show a brief notification above the page. +top: + - class + - name: color + type: COLOR + description: Optional Tabler color. The default is the neutral toast appearance; colored variants use the + matching contrasting foreground utility. + - name: description + type: TEXT + description: Escaped plain-text body. This is used only when `description_md` is not supplied. + - name: description_md + type: TEXT + description: Rich-text alternative to `description`, rendered as Markdown. When both properties are supplied, + `description_md` takes precedence. + - name: dismissible + type: BOOLEAN + description: Whether to render an accessible manual close button. Defaults to true and is independent of + automatic dismissal. + - name: duration + type: INTEGER + description: Automatic dismissal delay in milliseconds. Defaults to 5000. Set to 0 to keep the toast visible + until manually dismissed (when `dismissible` is true) or the page is left. + - name: icon + type: ICON + description: Optional [Tabler icon](https://tabler.io/icons) name. + - id + - name: position + type: TEXT + description: 'Screen placement: `top-start`, `top-center`, `top-end`, `bottom-start`, `bottom-center`, + or `bottom-end`. Defaults to `top-end`; invalid values safely fall back to that default.' + - name: title + type: TEXT + description: Optional notification heading. + - name: trigger + type: TEXT + description: Optional URL fragment that opens the toast without reloading the page, with or without the + leading `#`. When set, the toast does not open on page load and can be opened repeatedly by a link or + button whose target is that fragment. Multiple toasts can share a trigger to open as a stack. +--- + +Displays a brief notification above the page. Each top-level `toast` row creates one notification, and consecutive toasts at the same position are queued in a shared stack. + +Ordinary notifications use `role="status"` and `aria-live="polite"`. Colored variants retain a readable contrasting foreground. Automatic dismissal and the manual close control are configured independently. diff --git a/examples/official-site/content/components/toast/examples/01-automatic.md b/examples/official-site/content/components/toast/examples/01-automatic.md new file mode 100644 index 000000000..2f8d5a163 --- /dev/null +++ b/examples/official-site/content/components/toast/examples/01-automatic.md @@ -0,0 +1,11 @@ +--- +rows: + - component: toast + id: toast-auto + title: This is a SQLPage toast + description: This toast will open automatically when the page loads. + icon: check + color: green +--- + +A toast that opens when the page loads and disappears automatically after the default 5000 milliseconds. diff --git a/examples/official-site/content/components/toast/examples/02-manual-dismissal.md b/examples/official-site/content/components/toast/examples/02-manual-dismissal.md new file mode 100644 index 000000000..d9ae49a2b --- /dev/null +++ b/examples/official-site/content/components/toast/examples/02-manual-dismissal.md @@ -0,0 +1,27 @@ +--- +rows: + - component: toast + id: toast-dismissible + trigger: persistent-error + title: Could not save + description: Review the highlighted fields and try again. + icon: alert-triangle + color: black + duration: 0 + dismissible: true + - component: toast + id: toast-nondismissible + trigger: persistent-status + title: Connection unavailable + description: This persistent notification has no manual close control. + duration: 0 + dismissible: false + - component: button + - title: Show dismissible error + link: '#persistent-error' + color: red + - title: Show non-dismissible status + link: '#persistent-status' +--- + +A persistent error notification that disables automatic dismissal and requires the user to activate its close button. diff --git a/examples/official-site/content/components/toast/examples/03-markdown.md b/examples/official-site/content/components/toast/examples/03-markdown.md new file mode 100644 index 000000000..a1853a575 --- /dev/null +++ b/examples/official-site/content/components/toast/examples/03-markdown.md @@ -0,0 +1,22 @@ +--- +rows: + - component: toast + id: toast-markdown + trigger: rich-notifications + title: Release available + description: This fallback stays escaped + description_md: Version **2.0** is ready. [Read the notes](https://example.com/releases). + color: blue + duration: 0 + - component: toast + id: toast-plain + trigger: rich-notifications + description: Plain text stays escaped + color: white + duration: 0 + - component: button + - title: Show rich notifications + link: '#rich-notifications' +--- + +A persistent rich Markdown notification. Markdown takes precedence over plain text and renders emphasis and a link as HTML, while plain-text content remains escaped. diff --git a/examples/official-site/content/components/toast/examples/04-queue.md b/examples/official-site/content/components/toast/examples/04-queue.md new file mode 100644 index 000000000..fb766ce5c --- /dev/null +++ b/examples/official-site/content/components/toast/examples/04-queue.md @@ -0,0 +1,26 @@ +--- +rows: + - component: toast + id: toast-stack-one + trigger: queued notifications + title: Import started + description: Preparing records. + duration: 0 + - component: toast + id: toast-stack-two + trigger: queued notifications + title: Import running + description: Processing records. + duration: 0 + - component: toast + id: toast-short + trigger: queued notifications + title: Temporary update + description: This message closes shortly. + duration: 2000 + - component: button + - title: Show queued notifications + link: '#queued notifications' +--- + +Several persistent queued notifications. Toasts with the same position share a container and stack instead of overlapping. diff --git a/examples/official-site/content/components/toast/examples/05-placement.md b/examples/official-site/content/components/toast/examples/05-placement.md new file mode 100644 index 000000000..9452db113 --- /dev/null +++ b/examples/official-site/content/components/toast/examples/05-placement.md @@ -0,0 +1,15 @@ +--- +rows: + - component: toast + id: toast-bottom-center + trigger: bottom-notification + title: Download ready + description: Your export is ready. + position: bottom-center + duration: 0 + - component: button + - title: Show bottom notification + link: '#bottom-notification' +--- + +A notification placed at the bottom center of the screen instead of the default top end. diff --git a/examples/official-site/sqlpage/migrations/03_alert_component.sql b/examples/official-site/sqlpage/migrations/03_alert_component.sql deleted file mode 100644 index f1c663a82..000000000 --- a/examples/official-site/sqlpage/migrations/03_alert_component.sql +++ /dev/null @@ -1,197 +0,0 @@ --- Alert component -INSERT INTO component(name, icon, description) -VALUES ( - 'alert', - 'alert-triangle', - 'A visually distinctive message or notification.' - ); -INSERT INTO parameter( - component, - name, - description, - type, - top_level, - optional - ) -VALUES ( - 'alert', - 'title', - 'Title of the alert message.', - 'TEXT', - TRUE, - FALSE - ), - ( - 'alert', - 'icon', - 'Icon name (from tabler-icons.io) to display next to the alert message.', - 'TEXT', - TRUE, - TRUE - ), - ( - 'alert', - 'color', - 'The color theme for the alert message.', - 'COLOR', - TRUE, - TRUE - ), - ( - 'alert', - 'description', - 'Detailed description or content of the alert message.', - 'TEXT', - TRUE, - TRUE - ), - ( - 'alert', - 'description_md', - 'Detailed description or content of the alert message, in Markdown format, allowing you to use rich text formatting, including `**bold**` and `*italic*` text.', - 'TEXT', - TRUE, - TRUE - ), - ( - 'alert', - 'dismissible', - 'Whether the user can close the alert message.', - 'BOOLEAN', - TRUE, - TRUE - ), - ( - 'alert', - 'close_label', - 'Accessible name of the close button of a dismissible alert, which screen readers announce. The default is "Close".', - 'TEXT', - TRUE, - TRUE - ), - ( - 'alert', - 'important', - 'Set this to TRUE to make the alert message more prominent.', - 'BOOLEAN', - TRUE, - TRUE - ), - ( - 'alert', - 'link', - 'A URL to link to from the alert message.', - 'URL', - TRUE, - TRUE - ), - ( - 'alert', - 'link_text', - 'Customize the text of the link in the alert message. The default is "Ok".', - 'TEXT', - TRUE, - TRUE - ), - ( - 'alert', - 'link', - 'A URL to link to from the alert message.', - 'URL', - FALSE, - TRUE - ), - ( - 'alert', - 'title', - 'Customize the text of the link in the alert message. The default is "Ok".', - 'TEXT', - FALSE, - TRUE - ), - ( - 'alert', - 'color', - 'Customize the color of the link.', - 'COLOR', - FALSE, - TRUE - ); --- Insert example(s) for the component -INSERT INTO example(component, description, properties) -VALUES ( - 'alert', - 'A basic alert message', - JSON( - '[{"component":"alert", "title":"Attention", "description":"This is an important message."}]' - ) - ), - ( - 'alert', - 'A list of notifications', - JSON( - '[ - {"component" :"alert", "title":"Success","description":"Item successfully added to your cart.", "icon":"check", "color": "green"}, - {"component":"alert", "title":"Warning","description":"Your cart is almost full.", "icon":"alert-triangle", "color": "yellow"}, - {"component":"alert", "title":"Error","description":"Your cart is full.", "icon":"alert-circle", "color": "red"} - ]' - ) - ), - ( - 'alert', - 'A full-featured notification message with multiple links', - JSON( - '[ - { - "component" :"alert", - "title": "Your dashboard is ready!", - "icon":"analyze", - "color":"teal", - "dismissible": true, - "description":"Your public web dashboard was successfully created." - }, - { - "link":"dashboard.sql", - "title": "View your dashboard" - }, - { - "link" :"index.sql", - "title": "Back to home", - "color": "secondary" - } - ]' - ) - ), - ( - 'alert', - 'A dismissible alert. `close_label` names the close button for screen readers.', - JSON( - '[ - { - "component":"alert", - "title":"Alert", - "icon":"alert-circle", - "color":"red", - "important": true, - "dismissible": true, - "close_label": "Dismiss this alert", - "description":"SQLPage is entirely free and open source.", - "link":"https://github.com/sqlpage/SQLPage", - "link_text":"See source code" - }]' - ) - ), - ( - 'alert', - 'An alert message with a Markdown-formatted description', - JSON( - '[ - { - "component":"alert", - "title":"Free and open source", - "icon": "free-rights", - "color": "info", - "description_md":"*SQLPage* is entirely free and open source. You can **contribute** to it on [GitHub](https://github.com/sqlpage/SQLPage)." - }]' - ) - ); diff --git a/examples/official-site/sqlpage/migrations/60_empty_state.sql b/examples/official-site/sqlpage/migrations/60_empty_state.sql deleted file mode 100644 index 1f0b65518..000000000 --- a/examples/official-site/sqlpage/migrations/60_empty_state.sql +++ /dev/null @@ -1,52 +0,0 @@ -INSERT INTO component(name, icon, description, introduced_in_version) VALUES - ('empty_state', 'info-circle', 'Displays a large placeholder message to communicate a single information to the user and invite them to take action. - -Typically includes a title, an optional icon/image, descriptive text (rich text formatting and images supported via Markdown), and a call-to-action button. - -Ideal for first-use screens, empty data sets, "no results" pages, or error messages.', '0.35.0'); - -INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'empty_state', * FROM (VALUES - ('title','Description of the empty state.','TEXT',TRUE,FALSE), - ('header','Text displayed on the top of the empty state.','TEXT',TRUE,TRUE), - ('icon','Name of an icon to be displayed on the top of the empty state.','ICON',TRUE,TRUE), - ('image','The URL (absolute or relative) of an image to display at the top of the empty state.','URL',TRUE,TRUE), - ('description','A short text displayed below the title.','TEXT',TRUE,TRUE), - ('description_md','A short text displayed below the title, formatted using markdown.','TEXT',TRUE,TRUE), - ('link_text','The text displayed on the button.','TEXT',TRUE,FALSE), - ('link_icon','Name of an icon to be displayed on the left side of the button.','ICON',TRUE,FALSE), - ('link','The URL to which the button should navigate when clicked.','URL',TRUE,FALSE) - -- id and class come from 99_shared_id_class_attributes.sql -) x; - -INSERT INTO example(component, description, properties) VALUES - ('empty_state', ' -This example shows how to create a 404-style "Not Found" empty state with - - a prominent header displaying "404", - - a helpful description suggesting to adjust search parameters, and - - a "Search again" button with a search icon that links back to the search page. -', - json('[{ - "component": "empty_state", - "title": "No results found", - "header": "404", - "description": "Try adjusting your search or filter to find what you''re looking for.", - "link_text": "Search again", - "link_icon": "search", - "link": "#not-found", - "id": "not-found" - }]')), - ('empty_state', ' -It''s possible to use an icon or an image to illustrate the problem. -', - json('[{ - "component": "empty_state", - "title": "A critical problem has occurred", - "icon": "mood-wrrr", - "description_md": "SQLPage can do a lot of things, but this is not one of them. - -Please restart your browser and **cross your fingers**.", - "link_text": "Close and restart", - "link_icon": "rotate-clockwise", - "link": "#" - }]')); - diff --git a/examples/official-site/sqlpage/migrations/76_toast.sql b/examples/official-site/sqlpage/migrations/76_toast.sql deleted file mode 100644 index 4afc43fbd..000000000 --- a/examples/official-site/sqlpage/migrations/76_toast.sql +++ /dev/null @@ -1,48 +0,0 @@ -INSERT INTO component(name, icon, description, introduced_in_version) VALUES - ('toast', 'notification', ' -Displays a brief notification above the page. Each top-level `toast` row creates one notification, and consecutive toasts at the same position are queued in a shared stack. - -Ordinary notifications use `role="status"` and `aria-live="polite"`. Colored variants retain a readable contrasting foreground. Automatic dismissal and the manual close control are configured independently.', '0.46.0'); - -INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'toast', * FROM (VALUES - ('title', 'Optional notification heading.', 'TEXT', TRUE, TRUE), - ('description', 'Escaped plain-text body. This is used only when `description_md` is not supplied.', 'TEXT', TRUE, TRUE), - ('description_md', 'Rich-text alternative to `description`, rendered as Markdown. When both properties are supplied, `description_md` takes precedence.', 'TEXT', TRUE, TRUE), - ('icon', 'Optional [Tabler icon](https://tabler.io/icons) name.', 'ICON', TRUE, TRUE), - ('color', 'Optional Tabler color. The default is the neutral toast appearance; colored variants use the matching contrasting foreground utility.', 'COLOR', TRUE, TRUE), - ('dismissible', 'Whether to render an accessible manual close button. Defaults to true and is independent of automatic dismissal.', 'BOOLEAN', TRUE, TRUE), - ('duration', 'Automatic dismissal delay in milliseconds. Defaults to 5000. Set to 0 to keep the toast visible until manually dismissed (when `dismissible` is true) or the page is left.', 'INTEGER', TRUE, TRUE), - ('position', 'Screen placement: `top-start`, `top-center`, `top-end`, `bottom-start`, `bottom-center`, or `bottom-end`. Defaults to `top-end`; invalid values safely fall back to that default.', 'TEXT', TRUE, TRUE), - ('trigger', 'Optional URL fragment that opens the toast without reloading the page, with or without the leading `#`. When set, the toast does not open on page load and can be opened repeatedly by a link or button whose target is that fragment. Multiple toasts can share a trigger to open as a stack.', 'TEXT', TRUE, TRUE) - -- id and class come from 99_shared_id_class_attributes.sql -) x; - -INSERT INTO example(component, description, properties) VALUES - ('toast', 'A toast that opens when the page loads and disappears automatically after the default 5000 milliseconds.', json('[ - {"component":"toast","id":"toast-auto","title":"This is a SQLPage toast","description":"This toast will open automatically when the page loads.","icon":"check","color":"green"} - ]')), - ('toast', 'A persistent error notification that disables automatic dismissal and requires the user to activate its close button.', json('[ - {"component":"toast","id":"toast-dismissible","trigger":"persistent-error","title":"Could not save","description":"Review the highlighted fields and try again.","icon":"alert-triangle","color":"black","duration":0,"dismissible":true}, - {"component":"toast","id":"toast-nondismissible","trigger":"persistent-status","title":"Connection unavailable","description":"This persistent notification has no manual close control.","duration":0,"dismissible":false}, - {"component":"button"}, - {"title":"Show dismissible error","link":"#persistent-error","color":"red"}, - {"title":"Show non-dismissible status","link":"#persistent-status"} - ]')), - ('toast', 'A persistent rich Markdown notification. Markdown takes precedence over plain text and renders emphasis and a link as HTML, while plain-text content remains escaped.', json('[ - {"component":"toast","id":"toast-markdown","trigger":"rich-notifications","title":"Release available","description":"This fallback stays escaped","description_md":"Version **2.0** is ready. [Read the notes](https://example.com/releases).","color":"blue","duration":0}, - {"component":"toast","id":"toast-plain","trigger":"rich-notifications","description":"Plain text stays escaped","color":"white","duration":0}, - {"component":"button"}, - {"title":"Show rich notifications","link":"#rich-notifications"} - ]')), - ('toast', 'Several persistent queued notifications. Toasts with the same position share a container and stack instead of overlapping.', json('[ - {"component":"toast","id":"toast-stack-one","trigger":"queued notifications","title":"Import started","description":"Preparing records.","duration":0}, - {"component":"toast","id":"toast-stack-two","trigger":"queued notifications","title":"Import running","description":"Processing records.","duration":0}, - {"component":"toast","id":"toast-short","trigger":"queued notifications","title":"Temporary update","description":"This message closes shortly.","duration":2000}, - {"component":"button"}, - {"title":"Show queued notifications","link":"#queued notifications"} - ]')), - ('toast', 'A notification placed at the bottom center of the screen instead of the default top end.', json('[ - {"component":"toast","id":"toast-bottom-center","trigger":"bottom-notification","title":"Download ready","description":"Your export is ready.","position":"bottom-center","duration":0}, - {"component":"button"}, - {"title":"Show bottom notification","link":"#bottom-notification"} - ]')); diff --git a/examples/official-site/sqlpage/migrations/82_reference_catalog.sql b/examples/official-site/sqlpage/migrations/82_reference_catalog.sql index b2a79f89f..6da77a1cf 100644 --- a/examples/official-site/sqlpage/migrations/82_reference_catalog.sql +++ b/examples/official-site/sqlpage/migrations/82_reference_catalog.sql @@ -37,13 +37,10 @@ WITH copy(name, category, summary) AS (VALUES ('timeline', 'display-data', 'Arrange events along a vertical timeline.'), ('tracking', 'display-data', 'Show a sequence of activity or status changes as colored segments.'), - ('alert', 'forms-and-feedback', 'Draw attention to a message with a color and an icon.'), ('button', 'forms-and-feedback', 'Follow a link, download a file, or submit a form.'), - ('empty_state', 'forms-and-feedback', 'Explain an empty view and offer the reader a next step.'), ('form', 'forms-and-feedback', 'Collect input with text fields, file uploads, and other controls.'), ('login', 'forms-and-feedback', 'Display a sign-in form for a username and password.'), ('modal', 'forms-and-feedback', 'Open a dialog over the page for details, forms, or media.'), - ('toast', 'forms-and-feedback', 'Show a brief notification above the page.'), ('breadcrumb', 'navigation', 'Link the current page to its parent pages.'), ('facet', 'navigation', 'Let readers choose filters for a dataset.'), diff --git a/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql b/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql index 883c0b6a2..d6a1f33c3 100644 --- a/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql +++ b/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql @@ -13,7 +13,6 @@ INSERT INTO parameter(component, top_level, name, description, type, optional) SELECT *, 'id', 'id attribute added to the container in HTML. It can be used to target this item through css or for scrolling to this item through links (use "#id" in link url).', 'TEXT', TRUE FROM (VALUES - ('alert', TRUE), ('big_number', TRUE), ('big_number', FALSE), ('breadcrumb', TRUE), @@ -23,7 +22,6 @@ FROM (VALUES ('csv', TRUE), ('datagrid', TRUE), ('datagrid', FALSE), - ('empty_state', TRUE), ('hero', TRUE), ('list', TRUE), ('list', FALSE), @@ -34,7 +32,6 @@ FROM (VALUES ('table', TRUE), ('timeline', TRUE), ('timeline', FALSE), - ('toast', TRUE), ('tracking', TRUE), ('carousel', TRUE), ('login', TRUE), @@ -51,7 +48,6 @@ FROM (VALUES INSERT INTO parameter(component, top_level, name, description, type, optional) SELECT *, 'class', 'class attribute added to the container in HTML. It can be used to apply custom styling to this item through css. Added in v0.18.0.', 'TEXT', TRUE FROM (VALUES - ('alert', TRUE), ('big_number', TRUE), ('big_number', FALSE), ('breadcrumb', TRUE), @@ -63,7 +59,6 @@ FROM (VALUES ('csv', TRUE), ('datagrid', TRUE), ('divider', TRUE), - ('empty_state', TRUE), ('form', TRUE), ('list', TRUE), ('list', FALSE), @@ -75,7 +70,6 @@ FROM (VALUES ('table', TRUE), ('timeline', TRUE), ('timeline', FALSE), - ('toast', TRUE), ('tracking', TRUE), ('carousel', TRUE), ('login', TRUE),