@brandsync/wc 0.0.9 → 0.0.11
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/custom-elements.json +310 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-8d12ed96.entry.js → p-030a8ba7.entry.js} +1 -1
- package/dist/brandsync-wc/p-073e5fee.entry.js +1 -0
- package/dist/brandsync-wc/{p-ce0914a7.entry.js → p-0b858120.entry.js} +1 -1
- package/dist/brandsync-wc/{p-575ce905.entry.js → p-1bf0b2d5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bc72439a.entry.js → p-2598ca88.entry.js} +1 -1
- package/dist/brandsync-wc/p-3c8fbaa8.entry.js +1 -0
- package/dist/brandsync-wc/p-3dd9b814.entry.js +1 -0
- package/dist/brandsync-wc/{p-94ed898a.entry.js → p-41edb0a2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3dacae70.entry.js → p-4ca15322.entry.js} +1 -1
- package/dist/brandsync-wc/p-6254dcbe.entry.js +1 -0
- package/dist/brandsync-wc/{p-880ea3f8.entry.js → p-7131d0a1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a34f460d.entry.js → p-74a4dd91.entry.js} +1 -1
- package/dist/brandsync-wc/{p-30a0e168.entry.js → p-7a605d98.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a78d6ea.entry.js → p-84ae4420.entry.js} +1 -1
- package/dist/brandsync-wc/{p-16a54578.entry.js → p-8c302968.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dd747a12.entry.js → p-8d78171b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7776b57b.entry.js → p-8dff4f24.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dad4a92c.entry.js → p-93e44903.entry.js} +1 -1
- package/dist/brandsync-wc/{p-nLORuTUY.js → p-DP_bvuvB.js} +2 -2
- package/dist/brandsync-wc/{p-eb4d87f0.entry.js → p-aa45d877.entry.js} +1 -1
- package/dist/brandsync-wc/{p-805644e4.entry.js → p-b174403d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d682675e.entry.js → p-c6d330c3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1515498e.entry.js → p-d1dc2ced.entry.js} +1 -1
- package/dist/brandsync-wc/{p-18af02df.entry.js → p-dd224cb3.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-card.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +83 -0
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +2 -2
- package/dist/cjs/bs-data-table.cjs.entry.js +3 -3
- package/dist/cjs/bs-input.cjs.entry.js +3 -3
- package/dist/cjs/bs-menu_2.cjs.entry.js +9 -4
- package/dist/cjs/bs-modal.cjs.entry.js +1 -1
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-CVh-sqA_.js → index-CGrdFg95.js} +73 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.cmp.test.js +107 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.css +193 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +234 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +65 -0
- package/dist/collection/components/bs-composer/bs-composer.js +1 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.cmp.test.js +18 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.css +19 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +34 -2
- package/dist/collection/components/bs-menu-item/bs-menu-item.stories.js +3 -0
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox.d.ts +11 -0
- package/dist/components/bs-checkbox.js +1 -0
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-modal.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Cz2nfz2j.js → p-B9PrXIl_.js} +1 -1
- package/dist/components/{p-DndQiCMP.js → p-BUbGEXL7.js} +1 -1
- package/dist/components/{p-BpvhHQSw.js → p-D1cYtKyN.js} +1 -1
- package/dist/components/p-D2HDHZjz.js +1 -0
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +1 -1
- package/dist/esm/bs-card.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
- package/dist/esm/bs-chatbot-header.entry.js +2 -2
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +81 -0
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +2 -2
- package/dist/esm/bs-data-table.entry.js +3 -3
- package/dist/esm/bs-input.entry.js +3 -3
- package/dist/esm/bs-menu_2.entry.js +9 -4
- package/dist/esm/bs-modal.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-nLORuTUY.js → index-DP_bvuvB.js} +73 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-checkbox/bs-checkbox.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.d.ts +53 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.stories.d.ts +23 -0
- package/dist/types/components/bs-menu-item/bs-menu-item.d.ts +7 -1
- package/dist/types/components/bs-menu-item/bs-menu-item.stories.d.ts +1 -0
- package/dist/types/components.d.ts +165 -5
- package/package.json +1 -1
- package/dist/brandsync-wc/p-0d64ea40.entry.js +0 -1
- package/dist/brandsync-wc/p-5333bb5a.entry.js +0 -1
- package/dist/brandsync-wc/p-96f374be.entry.js +0 -1
- package/dist/components/p-_vXDfB3V.js +0 -1
package/custom-elements.json
CHANGED
|
@@ -1568,6 +1568,292 @@
|
|
|
1568
1568
|
}
|
|
1569
1569
|
]
|
|
1570
1570
|
},
|
|
1571
|
+
{
|
|
1572
|
+
"kind": "javascript-module",
|
|
1573
|
+
"path": "src/components/bs-checkbox/bs-checkbox.tsx",
|
|
1574
|
+
"declarations": [
|
|
1575
|
+
{
|
|
1576
|
+
"kind": "class",
|
|
1577
|
+
"customElement": true,
|
|
1578
|
+
"tagName": "bs-checkbox",
|
|
1579
|
+
"name": "BsCheckbox",
|
|
1580
|
+
"description": "A single checkbox with its label, for a binary choice or one item within a group of independent\nchoices.\n\n## When to use\n- A single standalone binary setting (e.g. \"Remember me\", \"I agree to the terms\").\n- One item within a set of independent, non-exclusive choices (a checkbox group/list).\n- `indeterminate` for a \"select all\" checkbox representing a partially-selected group.\n\n## When not to use\n- A single mutually-exclusive choice from a set -- use a radio group instead.\n- An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.",
|
|
1581
|
+
"attributes": [
|
|
1582
|
+
{
|
|
1583
|
+
"name": "checked",
|
|
1584
|
+
"description": "Whether the checkbox is checked. Mutable so clicking the label/input toggles it directly.\nWhen `indeterminate` is also true, `indeterminate` wins visually (shows the minus icon)\nregardless of this value -- same as native checkboxes.",
|
|
1585
|
+
"type": {
|
|
1586
|
+
"text": "boolean"
|
|
1587
|
+
},
|
|
1588
|
+
"default": "false",
|
|
1589
|
+
"fieldName": "checked"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"name": "disabled",
|
|
1593
|
+
"description": "Disables the checkbox: sets the native `disabled` attribute, suppresses hover/focus styling,\nand prevents toggling.",
|
|
1594
|
+
"type": {
|
|
1595
|
+
"text": "boolean"
|
|
1596
|
+
},
|
|
1597
|
+
"default": "false",
|
|
1598
|
+
"fieldName": "disabled"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "error",
|
|
1602
|
+
"description": "Applies the error border/label-color treatment. This component's spec has no error message\ntext of its own (unlike `bs-input`'s `error: string`), so it's a plain boolean.",
|
|
1603
|
+
"type": {
|
|
1604
|
+
"text": "boolean"
|
|
1605
|
+
},
|
|
1606
|
+
"default": "false",
|
|
1607
|
+
"fieldName": "error"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "indeterminate",
|
|
1611
|
+
"description": "Whether the checkbox is in the indeterminate (\"partially selected\") state -- shows a minus\nicon instead of a check, and takes visual precedence over `checked`. Unlike `checked`, native\ncheckboxes have no `indeterminate` HTML attribute; it can only be set as a JS property on the\nelement. This `@Prop` still works as an attribute for the *host* (`<bs-checkbox>`) since that's\nthis component's own reflected state, not the native control's -- the native `<input>` inside\nhas its `.indeterminate` property set imperatively in `componentDidLoad`/`componentDidUpdate`.",
|
|
1612
|
+
"type": {
|
|
1613
|
+
"text": "boolean"
|
|
1614
|
+
},
|
|
1615
|
+
"default": "false",
|
|
1616
|
+
"fieldName": "indeterminate"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"name": "size",
|
|
1620
|
+
"description": "Sizing scale. Controls the box's width/height and border width; corner radius is constant\nacross all sizes.",
|
|
1621
|
+
"type": {
|
|
1622
|
+
"text": "\"lg\" | \"md\" | \"sm\"",
|
|
1623
|
+
"references": [
|
|
1624
|
+
{
|
|
1625
|
+
"name": "BsCheckboxSize"
|
|
1626
|
+
}
|
|
1627
|
+
]
|
|
1628
|
+
},
|
|
1629
|
+
"default": "'lg'",
|
|
1630
|
+
"fieldName": "size"
|
|
1631
|
+
}
|
|
1632
|
+
],
|
|
1633
|
+
"members": [
|
|
1634
|
+
{
|
|
1635
|
+
"kind": "field",
|
|
1636
|
+
"name": "checked",
|
|
1637
|
+
"description": "Whether the checkbox is checked. Mutable so clicking the label/input toggles it directly.\nWhen `indeterminate` is also true, `indeterminate` wins visually (shows the minus icon)\nregardless of this value -- same as native checkboxes.",
|
|
1638
|
+
"type": {
|
|
1639
|
+
"text": "boolean"
|
|
1640
|
+
},
|
|
1641
|
+
"default": "false",
|
|
1642
|
+
"attribute": "checked",
|
|
1643
|
+
"reflects": true
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"kind": "field",
|
|
1647
|
+
"name": "disabled",
|
|
1648
|
+
"description": "Disables the checkbox: sets the native `disabled` attribute, suppresses hover/focus styling,\nand prevents toggling.",
|
|
1649
|
+
"type": {
|
|
1650
|
+
"text": "boolean"
|
|
1651
|
+
},
|
|
1652
|
+
"default": "false",
|
|
1653
|
+
"readonly": true,
|
|
1654
|
+
"attribute": "disabled"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"kind": "field",
|
|
1658
|
+
"name": "error",
|
|
1659
|
+
"description": "Applies the error border/label-color treatment. This component's spec has no error message\ntext of its own (unlike `bs-input`'s `error: string`), so it's a plain boolean.",
|
|
1660
|
+
"type": {
|
|
1661
|
+
"text": "boolean"
|
|
1662
|
+
},
|
|
1663
|
+
"default": "false",
|
|
1664
|
+
"readonly": true,
|
|
1665
|
+
"attribute": "error"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"kind": "field",
|
|
1669
|
+
"name": "indeterminate",
|
|
1670
|
+
"description": "Whether the checkbox is in the indeterminate (\"partially selected\") state -- shows a minus\nicon instead of a check, and takes visual precedence over `checked`. Unlike `checked`, native\ncheckboxes have no `indeterminate` HTML attribute; it can only be set as a JS property on the\nelement. This `@Prop` still works as an attribute for the *host* (`<bs-checkbox>`) since that's\nthis component's own reflected state, not the native control's -- the native `<input>` inside\nhas its `.indeterminate` property set imperatively in `componentDidLoad`/`componentDidUpdate`.",
|
|
1671
|
+
"type": {
|
|
1672
|
+
"text": "boolean"
|
|
1673
|
+
},
|
|
1674
|
+
"default": "false",
|
|
1675
|
+
"attribute": "indeterminate",
|
|
1676
|
+
"reflects": true
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"kind": "field",
|
|
1680
|
+
"name": "size",
|
|
1681
|
+
"description": "Sizing scale. Controls the box's width/height and border width; corner radius is constant\nacross all sizes.",
|
|
1682
|
+
"type": {
|
|
1683
|
+
"text": "\"lg\" | \"md\" | \"sm\"",
|
|
1684
|
+
"references": [
|
|
1685
|
+
{
|
|
1686
|
+
"name": "BsCheckboxSize"
|
|
1687
|
+
}
|
|
1688
|
+
]
|
|
1689
|
+
},
|
|
1690
|
+
"default": "'lg'",
|
|
1691
|
+
"readonly": true,
|
|
1692
|
+
"attribute": "size"
|
|
1693
|
+
}
|
|
1694
|
+
],
|
|
1695
|
+
"events": [
|
|
1696
|
+
{
|
|
1697
|
+
"name": "bsChange",
|
|
1698
|
+
"description": "Emitted when the checked state changes via user interaction, with the new `checked` value.",
|
|
1699
|
+
"type": {
|
|
1700
|
+
"text": "CustomEvent<boolean>"
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
],
|
|
1704
|
+
"slots": [
|
|
1705
|
+
{
|
|
1706
|
+
"name": "",
|
|
1707
|
+
"description": "Default slot: the label text."
|
|
1708
|
+
}
|
|
1709
|
+
],
|
|
1710
|
+
"cssParts": [
|
|
1711
|
+
{
|
|
1712
|
+
"name": "box",
|
|
1713
|
+
"description": "The visual checkbox square."
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"name": "icon",
|
|
1717
|
+
"description": "The check/minus icon shown inside the box when `checked` or `indeterminate`."
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"name": "label",
|
|
1721
|
+
"description": "The label text wrapper."
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"cssProperties": [
|
|
1725
|
+
{
|
|
1726
|
+
"name": "--bs-checkbox-bg-disabled",
|
|
1727
|
+
"description": "Box background, disabled. Aliased to --bs-surface-action-disabled."
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"name": "--bs-checkbox-bg-focus",
|
|
1731
|
+
"description": "Box background, deselected/focused. Aliased to --bs-surface-raised."
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"name": "--bs-checkbox-bg-hover",
|
|
1735
|
+
"description": "Box background, deselected/hovered. Aliased to --bs-surface-hover."
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"name": "--bs-checkbox-bg-selected",
|
|
1739
|
+
"description": "Box background, selected or indeterminate/enabled. Aliased to --bs-color-primary-default."
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"name": "--bs-checkbox-bg-selected-error",
|
|
1743
|
+
"description": "Box background, selected or indeterminate/error. Aliased to --bs-icon-error."
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "--bs-checkbox-bg-selected-hover",
|
|
1747
|
+
"description": "Box background, selected or indeterminate/hovered. Aliased to --bs-color-primary-hover."
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"name": "--bs-checkbox-border-default",
|
|
1751
|
+
"description": "Border color, deselected/enabled. Aliased to --bs-border-default."
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"name": "--bs-checkbox-border-disabled",
|
|
1755
|
+
"description": "Border color, disabled. Aliased to --bs-border-neutral-disabled."
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"name": "--bs-checkbox-border-error",
|
|
1759
|
+
"description": "Border color, deselected/error. Aliased to --bs-border-error."
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "--bs-checkbox-border-focus",
|
|
1763
|
+
"description": "Border color, deselected/focused. Aliased to --bs-border-neutral-hover."
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"name": "--bs-checkbox-border-hover",
|
|
1767
|
+
"description": "Border color, deselected/hovered. Aliased to --bs-border-neutral-hover."
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"name": "--bs-checkbox-border-selected",
|
|
1771
|
+
"description": "Border color, selected or indeterminate/enabled. Aliased to --bs-color-primary-default."
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"name": "--bs-checkbox-border-selected-error",
|
|
1775
|
+
"description": "Border color, selected or indeterminate/error. Aliased to --bs-icon-error."
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"name": "--bs-checkbox-border-selected-hover",
|
|
1779
|
+
"description": "Border color, selected or indeterminate/hovered. Aliased to --bs-color-primary-hover."
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"name": "--bs-checkbox-border-width-lg",
|
|
1783
|
+
"description": "Border width at size=\"lg\"."
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"name": "--bs-checkbox-border-width-md",
|
|
1787
|
+
"description": "Border width at size=\"md\"."
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"name": "--bs-checkbox-border-width-sm",
|
|
1791
|
+
"description": "Border width at size=\"sm\"."
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"name": "--bs-checkbox-focus-ring-color",
|
|
1795
|
+
"description": "Focus ring color, drawn outside the box. Aliased to --bs-border-neutral-focus."
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "--bs-checkbox-gap",
|
|
1799
|
+
"description": "Gap between the box and the label text. Aliased to --bs-spacing-100."
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"name": "--bs-checkbox-icon-color",
|
|
1803
|
+
"description": "Check/minus icon color. Aliased to --bs-icon-static-white."
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "--bs-checkbox-icon-color-disabled",
|
|
1807
|
+
"description": "Check/minus icon color, disabled. Aliased to --bs-icon-disabled."
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"name": "--bs-checkbox-label-color",
|
|
1811
|
+
"description": "Label text color. Aliased to --bs-text-default."
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "--bs-checkbox-label-color-disabled",
|
|
1815
|
+
"description": "Label text color, disabled. Aliased to --bs-text-on-disabled."
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"name": "--bs-checkbox-label-color-error",
|
|
1819
|
+
"description": "Label text color, error. Aliased to --bs-text-error."
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "--bs-checkbox-radius",
|
|
1823
|
+
"description": "Corner radius of the box, constant across all sizes. Aliased to --bs-border-radius-50."
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"name": "--bs-checkbox-size-lg",
|
|
1827
|
+
"description": "Box width/height at size=\"lg\". Aliased to --bs-spacing-300."
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "--bs-checkbox-size-md",
|
|
1831
|
+
"description": "Box width/height at size=\"md\". Aliased to --bs-spacing-250."
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"name": "--bs-checkbox-size-sm",
|
|
1835
|
+
"description": "Box width/height at size=\"sm\". Aliased to --bs-spacing-200."
|
|
1836
|
+
}
|
|
1837
|
+
]
|
|
1838
|
+
}
|
|
1839
|
+
],
|
|
1840
|
+
"exports": [
|
|
1841
|
+
{
|
|
1842
|
+
"kind": "js",
|
|
1843
|
+
"name": "BsCheckbox",
|
|
1844
|
+
"declaration": {
|
|
1845
|
+
"name": "BsCheckbox"
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"kind": "custom-element-definition",
|
|
1850
|
+
"name": "bs-checkbox",
|
|
1851
|
+
"declaration": {
|
|
1852
|
+
"name": "BsCheckbox"
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
]
|
|
1856
|
+
},
|
|
1571
1857
|
{
|
|
1572
1858
|
"kind": "javascript-module",
|
|
1573
1859
|
"path": "src/components/bs-composer/bs-composer.tsx",
|
|
@@ -2792,6 +3078,30 @@
|
|
|
2792
3078
|
"tagName": "bs-menu-item",
|
|
2793
3079
|
"name": "BsMenuItem",
|
|
2794
3080
|
"description": "A single selectable row inside a `bs-menu`: an optional icon plus a text label, rendered as a\nreal `<button>` for correct keyboard/click semantics.\n\n## When to use\n- As a child of `bs-menu`, one per selectable action/option.\n\n## When not to use\n- Outside of `bs-menu` -- this component's sizing/hover treatment is designed to sit inside the\n menu's rounded, padded list box.",
|
|
3081
|
+
"attributes": [
|
|
3082
|
+
{
|
|
3083
|
+
"name": "disabled",
|
|
3084
|
+
"description": "Disables the item: no hover/pressed/focus styling, no pointer cursor, not reachable by\nkeyboard tabbing, and clicking it does not emit `bsSelect`.",
|
|
3085
|
+
"type": {
|
|
3086
|
+
"text": "boolean"
|
|
3087
|
+
},
|
|
3088
|
+
"default": "false",
|
|
3089
|
+
"fieldName": "disabled"
|
|
3090
|
+
}
|
|
3091
|
+
],
|
|
3092
|
+
"members": [
|
|
3093
|
+
{
|
|
3094
|
+
"kind": "field",
|
|
3095
|
+
"name": "disabled",
|
|
3096
|
+
"description": "Disables the item: no hover/pressed/focus styling, no pointer cursor, not reachable by\nkeyboard tabbing, and clicking it does not emit `bsSelect`.",
|
|
3097
|
+
"type": {
|
|
3098
|
+
"text": "boolean"
|
|
3099
|
+
},
|
|
3100
|
+
"default": "false",
|
|
3101
|
+
"readonly": true,
|
|
3102
|
+
"attribute": "disabled"
|
|
3103
|
+
}
|
|
3104
|
+
],
|
|
2795
3105
|
"events": [
|
|
2796
3106
|
{
|
|
2797
3107
|
"name": "bsSelect",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as a,b as t}from"./p-
|
|
1
|
+
import{p as e,g as a,b as t}from"./p-DP_bvuvB.js";export{s as setNonce}from"./p-DP_bvuvB.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t([["p-41edb0a2",[[785,"bs-input",{value:[1025],type:[1],label:[1],placeholder:[1],description:[1],error:[1],disabled:[4],required:[4],step:[2],min:[2],max:[2],options:[16],rows:[2],chips:[16],titleOptions:[16],initialsTitle:[1,"initials-title"],countryOptions:[16],country:[1],length:[2],open:[1540],hasIcon:[32],hasEndIcon:[32],passwordVisible:[32],chipDraft:[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["p-8dff4f24",[[769,"bs-chatbot-header",{heading:[1],expanded:[1540]}]]],["p-7a605d98",[[257,"bs-ai-disclaimer"]]],["p-dd224cb3",[[513,"bs-ai-greeting",{assistantName:[1,"assistant-name"],productName:[1,"product-name"]}]]],["p-b174403d",[[513,"bs-ai-thinking",{label:[1]}]]],["p-8c302968",[[513,"bs-attachment",{type:[1],fileName:[1,"file-name"],imageSrc:[1,"image-src"],imageAlt:[1,"image-alt"],loading:[4],removable:[4]}]]],["p-4ca15322",[[769,"bs-attachment-list",{ariaLabel:[1,"aria-label"],canScrollRight:[32]}]]],["p-74a4dd91",[[769,"bs-badge",{variant:[1]}]]],["p-aa45d877",[[785,"bs-button",{variant:[1],size:[1],disabled:[4],type:[1],ariaLabel:[1,"aria-label"],hasIcon:[32],hasEndIcon:[32],hasLabel:[32]}]]],["p-0b858120",[[513,"bs-button-skeleton",{size:[1]}]]],["p-8d78171b",[[769,"bs-card",{surface:[1]}]]],["p-030a8ba7",[[513,"bs-chatbot-feedback",{rating:[1538],submitted:[1540],comment:[1025],heading:[1],subtitle:[1]}]]],["p-84ae4420",[[769,"bs-chatbot-response-action",{sourcesCount:[2,"sources-count"],menuOpen:[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["p-073e5fee",[[769,"bs-chatbot-sources-drawer",{heading:[1],count:[2],slottedCount:[32]}]]],["p-c6d330c3",[[769,"bs-chatbot-suggestion-button",{disabled:[4]}]]],["p-3dd9b814",[[785,"bs-checkbox",{size:[1],checked:[1540],indeterminate:[1540],disabled:[4],error:[4]},null,{indeterminate:[{onIndeterminateChange:0}]}]]],["p-2598ca88",[[785,"bs-composer",{variant:[1],placeholder:[1],value:[1],state:[1],ariaLabel:[1,"aria-label"],hasAttachments:[32]}]]],["p-93e44903",[[769,"bs-composer-status-banner",{type:[1],message:[1],showIcon:[4,"show-icon"],showButton:[4,"show-button"],actionLabel:[1,"action-label"],allowClose:[4,"allow-close"]}]]],["p-3c8fbaa8",[[513,"bs-data-table",{columns:[16],rows:[16],sortColumn:[1,"sort-column"],sortDirection:[1,"sort-direction"],selectable:[4],cellRenderer:[16],selectedIds:[32]}]]],["p-7131d0a1",[[769,"bs-modal",{open:[1540],heading:[1],size:[1],hasFooter:[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]],["p-1bf0b2d5",[[769,"bs-source-link",{fileName:[1,"file-name"],sourceName:[1,"source-name"],version:[1],href:[1],target:[1]}]]],["p-d1dc2ced",[[769,"bs-tooltip",{placement:[1]}]]],["p-6254dcbe",[[257,"bs-menu"],[769,"bs-menu-item",{disabled:[4],hasIcon:[32]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as a}from"./p-nLORuTUY.js";const b={1:{heading:"We're sorry we couldn't help.",subtitle:"We'll use your feedback to improve."},2:{heading:"We're sorry we didn't get it right.",subtitle:"We'll use your feedback to improve."},3:{heading:"Thanks for your feedback.",subtitle:"We're always looking for ways to improve."},4:{heading:"Thanks! We're glad we could help.",subtitle:"We appreciate your feedback."},5:{heading:"Thanks for the great rating!",subtitle:"We're happy we could help."}},o=class{constructor(a){e(this,a),this.bsRatingChange=t(this,"bsRatingChange"),this.bsCommentInput=t(this,"bsCommentInput"),this.bsSubmit=t(this,"bsSubmit"),this.bsNewChat=t(this,"bsNewChat"),this.bsClose=t(this,"bsClose")}rating=0;submitted=!1;comment="";heading;subtitle;bsRatingChange;bsCommentInput;bsSubmit;bsNewChat;bsClose;onStarClick=e=>{this.submitted||(this.rating=e,this.bsRatingChange.emit(e))};onCommentInput=e=>{this.comment=e.target.value,this.bsCommentInput.emit(this.comment)};onSubmitClick=()=>{0!==this.rating&&(this.submitted=!0,this.bsSubmit.emit({rating:this.rating,comment:this.comment}))};onNewChatClick=()=>{this.bsNewChat.emit()};onCloseClick=()=>{this.bsClose.emit()};computedHeading(){return this.heading?this.heading:this.submitted&&b[this.rating]?b[this.rating].heading:"How was your experience with us?"}computedSubtitle(){return this.subtitle?this.subtitle:this.submitted&&b[this.rating]?b[this.rating].subtitle:"Your feedback helps us make Genie better."}render(){return a("div",{key:"e509feb04a65ee7908c9021befe43ddb0727fd00",class:"bs-chatbot-feedback",role:"region","aria-label":this.computedHeading()},a("button",{key:"3c1e7f84bb1a2e0e6f89323f2c45102c3714c0f6",type:"button",part:"close",class:"bs-chatbot-feedback__close","aria-label":"Close",onClick:this.onCloseClick},a(c,{key:"30202380a79f55d4187ff6f50fc0a11d7a282b81"})),a("div",{key:"228f8195087f1d6d3ec6ba53f954ab722cae2971",class:"bs-chatbot-feedback__top"},a("div",{key:"d7fb1f58d21aed4fa9b0e5da83a5506e8082c5ff",class:"bs-chatbot-feedback__text"},a("p",{key:"7e275ebb91562a2f3b4eaf8076a7238f82260bcf",part:"heading",class:"bs-chatbot-feedback__heading"},this.computedHeading()),a("p",{key:"0bd022e0594dee0a084a83fcce90abeb2b8c8a98",part:"subtitle",class:"bs-chatbot-feedback__subtitle"},this.computedSubtitle())),a("div",{key:"0c54cd7cfc1b14c4feac0859e1ad2dd3ee2af8a1",class:"bs-chatbot-feedback__stars",role:"radiogroup","aria-label":"Rating"},[1,2,3,4,5].map((e=>a("button",{type:"button",part:"star",class:"bs-chatbot-feedback__star",role:"radio","aria-checked":(this.rating>=e).toString(),"aria-label":`${e} star${e>1?"s":""}`,disabled:this.submitted,onClick:()=>this.onStarClick(e)},a(r,{filled:this.rating>=e}))))),!this.submitted&&a("div",{key:"4e00821d17646c1d71d9893a7459557f9fcf24d2",class:"bs-chatbot-feedback__field"},a("label",{key:"11d31fb2ff6897e97e2ec4196ead7269d60cec7b",part:"label",class:"bs-chatbot-feedback__label",htmlFor:"bs-chatbot-feedback-comment"},"Tell us what you think"),a("textarea",{key:"d6228e4d737e90ab61cca91d633e36ac69f1c172",part:"textarea",id:"bs-chatbot-feedback-comment",class:"bs-chatbot-feedback__textarea",placeholder:"e.g.The response was helpful ....",value:this.comment,onInput:this.onCommentInput})),this.submitted&&this.comment&&a("p",{key:"bb5fdd240b07a6051cb784077b3476af1e1217fb",part:"comment",class:"bs-chatbot-feedback__comment"},this.comment)),a("div",{key:"0d262521f8f13b464f4cbfa746ce49bd330986c6",class:"bs-chatbot-feedback__actions"},!this.submitted&&a("button",{key:"a5e8cc2a7bdd290cc95afeefe5d1fc5a1dde86ce",type:"button",part:"submit",class:"bs-chatbot-feedback__submit",disabled:0===this.rating,onClick:this.onSubmitClick},a(s,{key:"163b0c11e0038ae01d7bc61ae1f8c50930b7f8f2"}),"Submit feedback"),a("button",{key:"3cf2d4b2cd6b9043d4194a991cc0e33fa09c69e4",type:"button",part:"new-chat",class:"bs-chatbot-feedback__new-chat "+(this.submitted?"bs-chatbot-feedback__new-chat--primary":"bs-chatbot-feedback__new-chat--outlined"),onClick:this.onNewChatClick},a(i,{key:"a0fddede710c06b60302e4cb12b7affe9ed8afec"}),"Start new chat")))}},r=({filled:e})=>a("svg",{viewBox:"0 0 24 24",fill:e?"currentColor":"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M12 2.5L15.09 8.75L22 9.77L17 14.62L18.18 21.5L12 18.22L5.82 21.5L7 14.62L2 9.77L8.91 8.75L12 2.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),s=()=>a("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M13.5 12H7.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M4.55 20.75C4.44 20.99 4.47 21.27 4.63 21.48C4.79 21.69 5.05 21.79 5.31 21.75L21.37 12.65C21.6 12.52 21.75 12.27 21.75 12C21.75 11.73 21.6 11.48 21.37 11.35L5.31 2.25C5.05 2.21 4.79 2.31 4.63 2.52C4.47 2.73 4.44 3.01 4.55 3.25L7.5 12L4.55 20.75Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),i=()=>a("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M16.5 3.5L20.5 7.5L8 20H4V16L16.5 3.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),c=()=>a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M15 5L5 15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M15 15L5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));o.style=":host{display:block;--bs-chatbot-feedback-bg:var(--bs-surface-raised);--bs-chatbot-feedback-border:var(--bs-border-default);--bs-chatbot-feedback-radius:var(--bs-border-radius-200);--bs-chatbot-feedback-padding-x:var(--bs-spacing-250);--bs-chatbot-feedback-padding-y:var(--bs-spacing-550);--bs-chatbot-feedback-max-width:762px;--bs-chatbot-feedback-gap:var(--bs-spacing-300);--bs-chatbot-feedback-top-gap:var(--bs-spacing-250);--bs-chatbot-feedback-heading-color:var(--bs-text-default);--bs-chatbot-feedback-subtitle-color:var(--bs-text-secondary);--bs-chatbot-feedback-star-filled:var(--bs-color-primary-default);--bs-chatbot-feedback-star-empty:var(--bs-border-neutral-container);--bs-chatbot-feedback-comment-color:var(--bs-text-default);--bs-chatbot-feedback-close-hover:var(--bs-surface-hover);--bs-chatbot-feedback-primary-bg:var(--bs-button-primary-default);--bs-chatbot-feedback-primary-bg-hover:var(--bs-button-primary-hover);--bs-chatbot-feedback-primary-bg-disabled:var(--bs-button-primary-disabled);--bs-chatbot-feedback-outlined-border:var(--bs-border-primary);--bs-chatbot-feedback-outlined-hover:var(--bs-color-primary-container-hover);--bs-chatbot-feedback-outlined-text:var(--bs-text-action)}.bs-chatbot-feedback{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--bs-chatbot-feedback-gap);max-width:var(--bs-chatbot-feedback-max-width);padding:var(--bs-chatbot-feedback-padding-y) var(--bs-chatbot-feedback-padding-x);background:var(--bs-chatbot-feedback-bg);border:1px solid var(--bs-chatbot-feedback-border);border-radius:var(--bs-chatbot-feedback-radius);font-family:inherit}.bs-chatbot-feedback__close{box-sizing:border-box;position:absolute;top:var(--bs-spacing-100);right:var(--bs-spacing-100);display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-feedback__close svg{width:20px;height:20px}.bs-chatbot-feedback__close:hover{background:var(--bs-chatbot-feedback-close-hover)}.bs-chatbot-feedback__top{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:var(--bs-chatbot-feedback-top-gap);width:100%}.bs-chatbot-feedback__text{display:flex;flex-direction:column;gap:var(--bs-spacing-50);width:100%;text-align:center}.bs-chatbot-feedback__heading{margin:0;color:var(--bs-chatbot-feedback-heading-color);font-size:var(--bs-font-size-xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h5) * 1px)}.bs-chatbot-feedback__subtitle{margin:0;color:var(--bs-chatbot-feedback-subtitle-color);font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-chatbot-feedback__stars{display:flex;gap:var(--bs-spacing-350)}.bs-chatbot-feedback__star{box-sizing:border-box;display:inline-flex;width:36px;height:36px;padding:0;background:transparent;border:none;color:var(--bs-chatbot-feedback-star-empty);cursor:pointer}.bs-chatbot-feedback__star[aria-checked='true']{color:var(--bs-chatbot-feedback-star-filled)}.bs-chatbot-feedback__star:disabled{cursor:default}.bs-chatbot-feedback__star:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px;border-radius:var(--bs-border-radius-50)}.bs-chatbot-feedback__field{display:flex;flex-direction:column;gap:var(--bs-spacing-50);width:100%}.bs-chatbot-feedback__label{color:var(--bs-input-label);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-chatbot-feedback__textarea{box-sizing:border-box;width:100%;min-height:103px;padding:var(--bs-spacing-100) var(--bs-spacing-150);border:1px solid var(--bs-input-border-default);border-radius:var(--bs-border-radius-100);background:var(--bs-input-bg-default);color:var(--bs-input-text);font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);resize:vertical}.bs-chatbot-feedback__textarea::placeholder{color:var(--bs-input-placeholder)}.bs-chatbot-feedback__textarea:hover{border-color:var(--bs-input-border-hover)}.bs-chatbot-feedback__textarea:focus-visible{outline:none;border-color:var(--bs-input-border-focus)}.bs-chatbot-feedback__comment{box-sizing:border-box;width:100%;min-height:103px;margin:0;padding:var(--bs-spacing-100) var(--bs-spacing-150);border:1px solid var(--bs-input-border-default);border-radius:var(--bs-border-radius-100);background:var(--bs-input-bg-filled);color:var(--bs-chatbot-feedback-comment-color);font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);word-break:break-word}.bs-chatbot-feedback__actions{display:flex;flex-direction:column;gap:var(--bs-spacing-150);width:100%}.bs-chatbot-feedback__submit,.bs-chatbot-feedback__new-chat{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:var(--bs-spacing-50);width:100%;height:44px;padding:0 var(--bs-spacing-250) 0 var(--bs-spacing-150);border-radius:var(--bs-border-radius-100);font-family:inherit;font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-medium);cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-feedback__submit svg,.bs-chatbot-feedback__new-chat svg{width:24px;height:24px;flex-shrink:0}.bs-chatbot-feedback__submit,.bs-chatbot-feedback__new-chat--primary{background:var(--bs-chatbot-feedback-primary-bg);border:none;color:var(--bs-text-on-action)}.bs-chatbot-feedback__submit:hover:not(:disabled),.bs-chatbot-feedback__new-chat--primary:hover{background:var(--bs-chatbot-feedback-primary-bg-hover)}.bs-chatbot-feedback__submit:disabled{background:var(--bs-chatbot-feedback-primary-bg-disabled);color:var(--bs-text-on-disabled);cursor:not-allowed}.bs-chatbot-feedback__new-chat--outlined{background:transparent;border:1px solid var(--bs-chatbot-feedback-outlined-border);color:var(--bs-chatbot-feedback-outlined-text)}.bs-chatbot-feedback__new-chat--outlined:hover{background:var(--bs-chatbot-feedback-outlined-hover)}.bs-chatbot-feedback__submit:focus-visible,.bs-chatbot-feedback__new-chat:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}";export{o as bs_chatbot_feedback}
|
|
1
|
+
import{r as e,c as t,h as a}from"./p-DP_bvuvB.js";const b={1:{heading:"We're sorry we couldn't help.",subtitle:"We'll use your feedback to improve."},2:{heading:"We're sorry we didn't get it right.",subtitle:"We'll use your feedback to improve."},3:{heading:"Thanks for your feedback.",subtitle:"We're always looking for ways to improve."},4:{heading:"Thanks! We're glad we could help.",subtitle:"We appreciate your feedback."},5:{heading:"Thanks for the great rating!",subtitle:"We're happy we could help."}},o=class{constructor(a){e(this,a),this.bsRatingChange=t(this,"bsRatingChange"),this.bsCommentInput=t(this,"bsCommentInput"),this.bsSubmit=t(this,"bsSubmit"),this.bsNewChat=t(this,"bsNewChat"),this.bsClose=t(this,"bsClose")}rating=0;submitted=!1;comment="";heading;subtitle;bsRatingChange;bsCommentInput;bsSubmit;bsNewChat;bsClose;onStarClick=e=>{this.submitted||(this.rating=e,this.bsRatingChange.emit(e))};onCommentInput=e=>{this.comment=e.target.value,this.bsCommentInput.emit(this.comment)};onSubmitClick=()=>{0!==this.rating&&(this.submitted=!0,this.bsSubmit.emit({rating:this.rating,comment:this.comment}))};onNewChatClick=()=>{this.bsNewChat.emit()};onCloseClick=()=>{this.bsClose.emit()};computedHeading(){return this.heading?this.heading:this.submitted&&b[this.rating]?b[this.rating].heading:"How was your experience with us?"}computedSubtitle(){return this.subtitle?this.subtitle:this.submitted&&b[this.rating]?b[this.rating].subtitle:"Your feedback helps us make Genie better."}render(){return a("div",{key:"278496768d42fffdf8df4d4688ecb2a845b709f0",class:"bs-chatbot-feedback",role:"region","aria-label":this.computedHeading()},a("button",{key:"29507aa7b8d4047c49360eebe9705c04f5cf635a",type:"button",part:"close",class:"bs-chatbot-feedback__close","aria-label":"Close",onClick:this.onCloseClick},a(c,{key:"598403a5f96cb5e3b242da19c67f888f6e5442b5"})),a("div",{key:"44de5b26f1e9dd202ba55d71c4ef831608a9b7e2",class:"bs-chatbot-feedback__top"},a("div",{key:"2ab88191c765a53cf72b1edd3ebfe22aa5ac6bee",class:"bs-chatbot-feedback__text"},a("p",{key:"9f60601413f81b5120516197e239ce1baf42dad4",part:"heading",class:"bs-chatbot-feedback__heading"},this.computedHeading()),a("p",{key:"d2a7c2b250c5ca5d9e46c52e534d38ab2efb96c5",part:"subtitle",class:"bs-chatbot-feedback__subtitle"},this.computedSubtitle())),a("div",{key:"1c4564a3a48f483b6285ffabea8b2cd875154907",class:"bs-chatbot-feedback__stars",role:"radiogroup","aria-label":"Rating"},[1,2,3,4,5].map((e=>a("button",{type:"button",part:"star",class:"bs-chatbot-feedback__star",role:"radio","aria-checked":(this.rating>=e).toString(),"aria-label":`${e} star${e>1?"s":""}`,disabled:this.submitted,onClick:()=>this.onStarClick(e)},a(r,{filled:this.rating>=e}))))),!this.submitted&&a("div",{key:"92c3340c38bf2c4f0b54e3a9ea67403c6f4155e1",class:"bs-chatbot-feedback__field"},a("label",{key:"87d7a0faeb236d72ddc066d2d390c8ad77a346c2",part:"label",class:"bs-chatbot-feedback__label",htmlFor:"bs-chatbot-feedback-comment"},"Tell us what you think"),a("textarea",{key:"d8a424d825fbac92a98475e496bfc5186a4adeb9",part:"textarea",id:"bs-chatbot-feedback-comment",class:"bs-chatbot-feedback__textarea",placeholder:"e.g.The response was helpful ....",value:this.comment,onInput:this.onCommentInput})),this.submitted&&this.comment&&a("p",{key:"d9fda026f57448ebc537967e5a8bbab5faa96dd1",part:"comment",class:"bs-chatbot-feedback__comment"},this.comment)),a("div",{key:"5fa34ac127e5525a0f3279c240ca57288329ce56",class:"bs-chatbot-feedback__actions"},!this.submitted&&a("button",{key:"9165d3f98cbb39974ffdc3831c27bef0abd55b4d",type:"button",part:"submit",class:"bs-chatbot-feedback__submit",disabled:0===this.rating,onClick:this.onSubmitClick},a(s,{key:"69c0c8a74e7d3fbb1c06d7c05be4f9766ea141ea"}),"Submit feedback"),a("button",{key:"97634f47527312fdc6752a203fc0781a0e88c79f",type:"button",part:"new-chat",class:"bs-chatbot-feedback__new-chat "+(this.submitted?"bs-chatbot-feedback__new-chat--primary":"bs-chatbot-feedback__new-chat--outlined"),onClick:this.onNewChatClick},a(i,{key:"55699b3a298e25f3e0584e05d3f751f3d6bfbb9a"}),"Start new chat")))}},r=({filled:e})=>a("svg",{viewBox:"0 0 24 24",fill:e?"currentColor":"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M12 2.5L15.09 8.75L22 9.77L17 14.62L18.18 21.5L12 18.22L5.82 21.5L7 14.62L2 9.77L8.91 8.75L12 2.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),s=()=>a("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M13.5 12H7.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M4.55 20.75C4.44 20.99 4.47 21.27 4.63 21.48C4.79 21.69 5.05 21.79 5.31 21.75L21.37 12.65C21.6 12.52 21.75 12.27 21.75 12C21.75 11.73 21.6 11.48 21.37 11.35L5.31 2.25C5.05 2.21 4.79 2.31 4.63 2.52C4.47 2.73 4.44 3.01 4.55 3.25L7.5 12L4.55 20.75Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),i=()=>a("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M16.5 3.5L20.5 7.5L8 20H4V16L16.5 3.5Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),c=()=>a("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M15 5L5 15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M15 15L5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));o.style=":host{display:block;--bs-chatbot-feedback-bg:var(--bs-surface-raised);--bs-chatbot-feedback-border:var(--bs-border-default);--bs-chatbot-feedback-radius:var(--bs-border-radius-200);--bs-chatbot-feedback-padding-x:var(--bs-spacing-250);--bs-chatbot-feedback-padding-y:var(--bs-spacing-550);--bs-chatbot-feedback-max-width:762px;--bs-chatbot-feedback-gap:var(--bs-spacing-300);--bs-chatbot-feedback-top-gap:var(--bs-spacing-250);--bs-chatbot-feedback-heading-color:var(--bs-text-default);--bs-chatbot-feedback-subtitle-color:var(--bs-text-secondary);--bs-chatbot-feedback-star-filled:var(--bs-color-primary-default);--bs-chatbot-feedback-star-empty:var(--bs-border-neutral-container);--bs-chatbot-feedback-comment-color:var(--bs-text-default);--bs-chatbot-feedback-close-hover:var(--bs-surface-hover);--bs-chatbot-feedback-primary-bg:var(--bs-button-primary-default);--bs-chatbot-feedback-primary-bg-hover:var(--bs-button-primary-hover);--bs-chatbot-feedback-primary-bg-disabled:var(--bs-button-primary-disabled);--bs-chatbot-feedback-outlined-border:var(--bs-border-primary);--bs-chatbot-feedback-outlined-hover:var(--bs-color-primary-container-hover);--bs-chatbot-feedback-outlined-text:var(--bs-text-action)}.bs-chatbot-feedback{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--bs-chatbot-feedback-gap);max-width:var(--bs-chatbot-feedback-max-width);padding:var(--bs-chatbot-feedback-padding-y) var(--bs-chatbot-feedback-padding-x);background:var(--bs-chatbot-feedback-bg);border:1px solid var(--bs-chatbot-feedback-border);border-radius:var(--bs-chatbot-feedback-radius);font-family:inherit}.bs-chatbot-feedback__close{box-sizing:border-box;position:absolute;top:var(--bs-spacing-100);right:var(--bs-spacing-100);display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-feedback__close svg{width:20px;height:20px}.bs-chatbot-feedback__close:hover{background:var(--bs-chatbot-feedback-close-hover)}.bs-chatbot-feedback__top{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:var(--bs-chatbot-feedback-top-gap);width:100%}.bs-chatbot-feedback__text{display:flex;flex-direction:column;gap:var(--bs-spacing-50);width:100%;text-align:center}.bs-chatbot-feedback__heading{margin:0;color:var(--bs-chatbot-feedback-heading-color);font-size:var(--bs-font-size-xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h5) * 1px)}.bs-chatbot-feedback__subtitle{margin:0;color:var(--bs-chatbot-feedback-subtitle-color);font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-chatbot-feedback__stars{display:flex;gap:var(--bs-spacing-350)}.bs-chatbot-feedback__star{box-sizing:border-box;display:inline-flex;width:36px;height:36px;padding:0;background:transparent;border:none;color:var(--bs-chatbot-feedback-star-empty);cursor:pointer}.bs-chatbot-feedback__star[aria-checked='true']{color:var(--bs-chatbot-feedback-star-filled)}.bs-chatbot-feedback__star:disabled{cursor:default}.bs-chatbot-feedback__star:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px;border-radius:var(--bs-border-radius-50)}.bs-chatbot-feedback__field{display:flex;flex-direction:column;gap:var(--bs-spacing-50);width:100%}.bs-chatbot-feedback__label{color:var(--bs-input-label);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-chatbot-feedback__textarea{box-sizing:border-box;width:100%;min-height:103px;padding:var(--bs-spacing-100) var(--bs-spacing-150);border:1px solid var(--bs-input-border-default);border-radius:var(--bs-border-radius-100);background:var(--bs-input-bg-default);color:var(--bs-input-text);font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);resize:vertical}.bs-chatbot-feedback__textarea::placeholder{color:var(--bs-input-placeholder)}.bs-chatbot-feedback__textarea:hover{border-color:var(--bs-input-border-hover)}.bs-chatbot-feedback__textarea:focus-visible{outline:none;border-color:var(--bs-input-border-focus)}.bs-chatbot-feedback__comment{box-sizing:border-box;width:100%;min-height:103px;margin:0;padding:var(--bs-spacing-100) var(--bs-spacing-150);border:1px solid var(--bs-input-border-default);border-radius:var(--bs-border-radius-100);background:var(--bs-input-bg-filled);color:var(--bs-chatbot-feedback-comment-color);font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);word-break:break-word}.bs-chatbot-feedback__actions{display:flex;flex-direction:column;gap:var(--bs-spacing-150);width:100%}.bs-chatbot-feedback__submit,.bs-chatbot-feedback__new-chat{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:var(--bs-spacing-50);width:100%;height:44px;padding:0 var(--bs-spacing-250) 0 var(--bs-spacing-150);border-radius:var(--bs-border-radius-100);font-family:inherit;font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-medium);cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-feedback__submit svg,.bs-chatbot-feedback__new-chat svg{width:24px;height:24px;flex-shrink:0}.bs-chatbot-feedback__submit,.bs-chatbot-feedback__new-chat--primary{background:var(--bs-chatbot-feedback-primary-bg);border:none;color:var(--bs-text-on-action)}.bs-chatbot-feedback__submit:hover:not(:disabled),.bs-chatbot-feedback__new-chat--primary:hover{background:var(--bs-chatbot-feedback-primary-bg-hover)}.bs-chatbot-feedback__submit:disabled{background:var(--bs-chatbot-feedback-primary-bg-disabled);color:var(--bs-text-on-disabled);cursor:not-allowed}.bs-chatbot-feedback__new-chat--outlined{background:transparent;border:1px solid var(--bs-chatbot-feedback-outlined-border);color:var(--bs-chatbot-feedback-outlined-text)}.bs-chatbot-feedback__new-chat--outlined:hover{background:var(--bs-chatbot-feedback-outlined-hover)}.bs-chatbot-feedback__submit:focus-visible,.bs-chatbot-feedback__new-chat:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}";export{o as bs_chatbot_feedback}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as a,a as e,h as r}from"./p-DP_bvuvB.js";const o=class{constructor(e){s(this,e),this.bsCollapse=a(this,"bsCollapse")}get el(){return e(this)}heading="Sources";count;bsCollapse;slottedCount=0;onSlotchange=s=>{this.slottedCount=s.target.assignedElements().filter((s=>"bs-source-link"===s.tagName.toLowerCase())).length};onCollapseClick=()=>{this.bsCollapse.emit()};render(){const s=this.count??this.slottedCount;return r("div",{key:"e71c8b6f4856092a6fd43fd6dcd8cda04d3a103e",class:"bs-chatbot-sources-drawer",role:"region","aria-label":this.heading},r("div",{key:"f46a1383d8e95aeb83541b2620647839fbe4d3f9",class:"bs-chatbot-sources-drawer__header"},r("div",{key:"62663736cb4f9e56a5b837da27b4d7d8915c1838",class:"bs-chatbot-sources-drawer__title-group"},r("h2",{key:"765954b929796005966efaf5aa23ca68053a894e",part:"heading",class:"bs-chatbot-sources-drawer__heading"},this.heading),s>0&&r("span",{key:"562cfc14be64d938879fad31ab185a2f3a441e63",part:"count",class:"bs-chatbot-sources-drawer__count"},s)),r("button",{key:"8e538aa2aa31b54c8845c9c5d8ffd581cbf1028b",type:"button",part:"collapse",class:"bs-chatbot-sources-drawer__collapse","aria-label":"Collapse sources",onClick:this.onCollapseClick},r("slot",{key:"53b12abc52c217d3264ece6cf26daf8c5e01f84e",name:"collapse-icon"},r(t,{key:"90b61c4694fd1d908d74e47a19124327a001ce53"})))),r("div",{key:"a7fc0ceb5b280867237ac3ce6c3bd314c7809075",part:"list",class:"bs-chatbot-sources-drawer__list"},r("slot",{key:"db40db9dad7f4e24c8eb0665e2286870f0800843",onSlotchange:this.onSlotchange})))}},t=()=>r("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M7.5 4.375L13.125 10L7.5 15.625",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));o.style=":host{display:block;--bs-chatbot-sources-drawer-bg:var(--bs-surface-raised);--bs-chatbot-sources-drawer-header-shadow:var(--bs-shadow-xs);--bs-chatbot-sources-drawer-header-padding-x:var(--bs-spacing-200);--bs-chatbot-sources-drawer-header-padding-top:var(--bs-spacing-150);--bs-chatbot-sources-drawer-header-padding-bottom:var(--bs-spacing-100);--bs-chatbot-sources-drawer-heading-color:var(--bs-text-default);--bs-chatbot-sources-drawer-count-bg:var(--bs-badge-bg-neutral-container);--bs-chatbot-sources-drawer-count-color:var(--bs-badge-text-neutral);--bs-chatbot-sources-drawer-collapse-hover:var(--bs-surface-hover);--bs-chatbot-sources-drawer-section-gap:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-padding:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-gap:var(--bs-spacing-50)}.bs-chatbot-sources-drawer{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-section-gap);width:100%;height:100%;background:var(--bs-chatbot-sources-drawer-bg);font-family:inherit}.bs-chatbot-sources-drawer__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:var(--bs-chatbot-sources-drawer-header-padding-top) var(--bs-chatbot-sources-drawer-header-padding-x) var(--bs-chatbot-sources-drawer-header-padding-bottom);box-shadow:var(--bs-chatbot-sources-drawer-header-shadow)}.bs-chatbot-sources-drawer__title-group{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-chatbot-sources-drawer__heading{margin:0;color:var(--bs-chatbot-sources-drawer-heading-color);font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}.bs-chatbot-sources-drawer__count{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:16px;max-width:34px;padding:var(--bs-spacing-50) var(--bs-spacing-100);background:var(--bs-chatbot-sources-drawer-count-bg);border-radius:var(--bs-border-radius-50);color:var(--bs-chatbot-sources-drawer-count-color);font-size:var(--bs-font-size-xs);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-chatbot-sources-drawer__collapse{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer}.bs-chatbot-sources-drawer__collapse:hover{background:var(--bs-chatbot-sources-drawer-collapse-hover)}.bs-chatbot-sources-drawer__collapse:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:1px}.bs-chatbot-sources-drawer__list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-list-gap);padding:0 var(--bs-chatbot-sources-drawer-list-padding) var(--bs-chatbot-sources-drawer-list-padding);overflow-y:auto}";export{o as bs_chatbot_sources_drawer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-
|
|
1
|
+
import{r as t,h as e}from"./p-DP_bvuvB.js";const s=class{constructor(e){t(this,e)}size="md";render(){return e("span",{key:"e6c4a5ec58e722b27daccd62e9315218205c3c73",part:"container",class:`bs-button-skeleton bs-button-skeleton--${this.size}`,role:"status","aria-label":"Loading"})}};s.style=":host{display:inline-block;--bs-button-skeleton-height-sm:var(--bs-spacing-500);--bs-button-skeleton-height-md:var(--bs-spacing-600);--bs-button-skeleton-height-lg:var(--bs-spacing-700);--bs-button-skeleton-width:96px}.bs-button-skeleton{display:inline-block;border-radius:var(--bs-border-radius-100);width:var(--bs-button-skeleton-width);background:var(--bs-color-neutral-container);animation:bs-button-skeleton-pulse 1.5s ease-in-out infinite}.bs-button-skeleton--sm{height:var(--bs-button-skeleton-height-sm)}.bs-button-skeleton--md{height:var(--bs-button-skeleton-height-md)}.bs-button-skeleton--lg{height:var(--bs-button-skeleton-height-lg)}@keyframes bs-button-skeleton-pulse{0%,100%{opacity:1}50%{opacity:0.5}}@media (prefers-reduced-motion: reduce){.bs-button-skeleton{animation:none}}";export{s as bs_button_skeleton}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as s,h as r}from"./p-
|
|
1
|
+
import{r as e,c as s,h as r}from"./p-DP_bvuvB.js";const o=class{constructor(r){e(this,r),this.bsOpen=s(this,"bsOpen")}fileName="Source";sourceName;version;href;target="_blank";bsOpen;onClick=()=>{this.bsOpen.emit()};render(){const e=[r("span",{key:"3aa9b7617d8ee912f19a8a51acd9b7bdc91c8db7",class:"bs-source-link__left"},r("span",{key:"4489eb50cc93b509e51ecb6439be00a49e9bfe5c",class:"bs-source-link__filename-row"},r("span",{key:"391055326352c9296e9732b8e047e9004735147e",part:"icon",class:"bs-source-link__icon"},r("slot",{key:"ec44e5f429c68b315cbf3a4aac93328211ea01f8",name:"icon"},r(i,{key:"2837c2a63e0575af578db04ced09a6623f4ebead"}))),r("p",{key:"677c00bf7ce6ad0f0a7e91f6e46a50647d8178d9",part:"filename",class:"bs-source-link__filename"},this.fileName)),r("span",{key:"ab536a62b3487f55884dc0fb6c6b78360054223e",class:"bs-source-link__meta"},this.sourceName&&r("span",{key:"699ca6a8877a1a8e00cb25c54d05345fe6603daa",part:"source",class:"bs-source-link__source"},this.sourceName),this.sourceName&&this.version&&r("span",{key:"3235b045ab945f6a58f1bcdaa0d926a5679b04f4",class:"bs-source-link__dot","aria-hidden":"true"}),this.version&&r("span",{key:"adfb7f67f65b26b276163c2538308ceabc62fae5",part:"version",class:"bs-source-link__version"},this.version))),r("span",{key:"0c23000d49c1faadd5af81c993283fa2f4cf9272",part:"arrow",class:"bs-source-link__arrow","aria-hidden":"true"},r(n,{key:"98447d6522f6af02cef14c42b0f817853fca2d3d"}))];return this.href?r("a",{class:"bs-source-link",href:this.href,target:this.target,rel:"noopener noreferrer",onClick:this.onClick},e):r("button",{type:"button",class:"bs-source-link",onClick:this.onClick},e)}},i=()=>r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M9.5 1.5H4C3.73478 1.5 3.48043 1.60536 3.29289 1.79289C3.10536 1.98043 3 2.23478 3 2.5V13.5C3 13.7652 3.10536 14.0196 3.29289 14.2071C3.48043 14.3946 3.73478 14.5 4 14.5H12C12.2652 14.5 12.5196 14.3946 12.7071 14.2071C12.8946 14.0196 13 13.7652 13 13.5V5L9.5 1.5Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M9.5 1.5V5H13",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M5.5 8.5H10.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M5.5 11H10.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})),n=()=>r("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M6.25 13.75L13.75 6.25",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M7.5 6.25H13.75V12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));o.style=":host{display:block;--bs-source-link-radius:var(--bs-border-radius-150);--bs-source-link-padding:var(--bs-spacing-150);--bs-source-link-gap:var(--bs-spacing-50);--bs-source-link-icon-gap:var(--bs-spacing-75);--bs-source-link-hover:var(--bs-surface-hover);--bs-source-link-pressed:var(--bs-surface-pressed);--bs-source-link-focus:var(--bs-border-neutral-focus);--bs-source-link-filename-color:var(--bs-text-default);--bs-source-link-meta-color:var(--bs-text-secondary);--bs-source-link-icon-color:var(--bs-icon-default);--bs-source-link-dot-color:var(--bs-text-secondary)}.bs-source-link{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-source-link-gap);width:100%;padding:var(--bs-source-link-padding);background:none;border:none;border-radius:var(--bs-source-link-radius);font-family:inherit;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-source-link:hover,.bs-source-link:focus-visible{background:var(--bs-source-link-hover)}.bs-source-link:active{background:var(--bs-source-link-pressed)}.bs-source-link:focus-visible{outline:2px solid var(--bs-source-link-focus);outline-offset:1px}.bs-source-link__icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:16px;height:16px;color:var(--bs-source-link-icon-color)}.bs-source-link__left{display:flex;flex:1 0 0;flex-direction:column;gap:2px;min-width:0}.bs-source-link__filename-row{display:flex;align-items:center;gap:var(--bs-source-link-icon-gap);width:100%}.bs-source-link__filename{margin:0;overflow:hidden;color:var(--bs-source-link-filename-color);font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:var(--bs-line-height-normal);text-overflow:ellipsis;white-space:nowrap}.bs-source-link__meta{display:flex;align-items:center;gap:var(--bs-spacing-50);padding-left:22px}.bs-source-link__source,.bs-source-link__version{color:var(--bs-source-link-meta-color);font-size:var(--bs-font-size-sm);line-height:var(--bs-line-height-normal);white-space:nowrap}.bs-source-link__dot{width:4px;height:4px;border-radius:50%;background:var(--bs-source-link-dot-color);flex-shrink:0}.bs-source-link__arrow{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:24px;height:24px;color:var(--bs-source-link-icon-color)}";export{o as bs_source_link}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as s,a as e,h as r}from"./p-
|
|
1
|
+
import{r as o,c as s,a as e,h as r}from"./p-DP_bvuvB.js";const t={ai:"Ask Genie something...",human:"Message your support agent..."},a=[6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,18,14,34,22,22,10,28,18,12,24,6,20,30,14,8,26,16,32,10,22,18,12,28,8,20,14,24,10,16,30,12,22,6,18,26,8,14,32,20,10,24,6],c=class{constructor(e){o(this,e),this.bsInput=s(this,"bsInput"),this.bsSubmit=s(this,"bsSubmit"),this.bsStop=s(this,"bsStop"),this.bsVoiceConfirm=s(this,"bsVoiceConfirm"),this.bsAttach=s(this,"bsAttach"),this.bsMicToggle=s(this,"bsMicToggle")}get el(){return e(this)}variant="ai";placeholder;value="";state="idle";ariaLabel=null;hasAttachments=!1;bsInput;bsSubmit;bsStop;bsVoiceConfirm;bsAttach;bsMicToggle;componentWillLoad(){this.hasAttachments=Array.from(this.el.childNodes).some((o=>o.nodeType===Node.ELEMENT_NODE&&"attachments"===o.getAttribute("slot")))}onAttachmentsSlotchange=o=>{this.hasAttachments=o.target.assignedNodes().length>0};onInput=o=>{this.bsInput.emit(o.target.value)};onAttachClick=()=>{this.bsAttach.emit()};onMicClick=()=>{this.bsMicToggle.emit()};onActionClick=()=>{"idle"===this.state?this.bsSubmit.emit():"generating"===this.state?this.bsStop.emit():"recording"===this.state&&this.bsVoiceConfirm.emit()};actionLabel(){return"generating"===this.state?"Stop":"recording"===this.state?"Confirm":"Send"}renderActionIcon(){return r("generating"===this.state?d:"recording"===this.state?l:b,null)}render(){const o=this.placeholder??t[this.variant],s="disabled"===this.state,e="recording"===this.state;return r("div",{key:"6215ac865d4df3984f1f0aee90ecd430d138aab3",class:`bs-composer bs-composer--${this.state} bs-composer--${this.variant}`},r("div",{key:"93232e0bc2112d2e774b6f276aca7e392a4c9a10",part:"attachments",class:"bs-composer__attachments-row "+(this.hasAttachments?"bs-composer__attachments-row--visible":"")},r("slot",{key:"d169cece5b8924396dc1b0ed01b1eec34d18fa7a",name:"attachments",onSlotchange:this.onAttachmentsSlotchange})),r("div",{key:"bbe77f36bf48b50a2555502df2d19d38e132279a",class:"bs-composer__text-row"},r("input",{key:"1f15cd9bf4fc0861390709d1bdfc780866432601",part:"input",class:"bs-composer__input",type:"text",value:this.value,placeholder:o,disabled:s,"aria-label":this.ariaLabel,onInput:this.onInput})),r("div",{key:"7dccc69d8182c63d0c817d0cb688df17925eb40d",class:"bs-composer__controls-row"},r("button",{key:"30a209358b6b1a2af6412cbcf83ab6088a610ac8",type:"button",part:"attach",class:"bs-composer__attach","aria-label":"Attach",onClick:this.onAttachClick},r(i,{key:"37ad5b75cc1358649fe99f68a99b391a7cf9ec04"})),e?r("span",{class:"bs-composer__waveform","aria-hidden":"true"},a.map((o=>r("span",{class:"bs-composer__waveform-bar",style:{"--bs-composer-bar-height":`${o}px`}})))):r("span",{class:"bs-composer__spacer"}),r("button",{key:"86e9ba5f61901274c12f71cdc1c2518becf37ac5",type:"button",part:"mic",class:"bs-composer__mic "+(e?"bs-composer__mic--recording":""),"aria-label":e?"Stop recording":"Start voice input",disabled:s,onClick:this.onMicClick},r(e?d:n,null)),r("button",{key:"13d9f765e69b896cb6697fcb74c1f99efa4fe4a0",type:"button",part:"action",class:`bs-composer__action bs-composer__action--${this.state}`,"aria-label":this.actionLabel(),disabled:s,onClick:this.onActionClick},this.renderActionIcon()),r("slot",{key:"4aa85ea3ba7f515095c0a8c2091a219e13de38e3",name:"actions-end"})))}static get delegatesFocus(){return!0}},i=()=>r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M8 2.5V13.5M2.5 8H13.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})),n=()=>r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M8 9.5C9.10457 9.5 10 8.60457 10 7.5V3.5C10 2.39543 9.10457 1.5 8 1.5C6.89543 1.5 6 2.39543 6 3.5V7.5C6 8.60457 6.89543 9.5 8 9.5Z",stroke:"currentColor","stroke-width":"1.4"}),r("path",{d:"M3.5 7V7.5C3.5 9.98528 5.51472 12 8 12C10.4853 12 12.5 9.98528 12.5 7.5V7",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"}),r("path",{d:"M8 12V14.5",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"})),b=()=>r("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M13.5 12H7.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M4.54594 20.745C4.4932 20.889 4.48589 21.0457 4.52499 21.1941C4.56409 21.3424 4.64771 21.4751 4.76459 21.5744C4.88147 21.6737 5.02599 21.7348 5.17866 21.7494C5.33133 21.7641 5.48482 21.7315 5.61844 21.6562L21.3684 12.6478C21.4857 12.583 21.5834 12.4879 21.6514 12.3725C21.7195 12.2571 21.7553 12.1255 21.7553 11.9916C21.7553 11.8576 21.7195 11.7261 21.6514 11.6107C21.5834 11.4952 21.4857 11.4002 21.3684 11.3353L5.61844 2.34937C5.48523 2.27487 5.33245 2.24278 5.18052 2.2574C5.02859 2.27201 4.88474 2.33264 4.76817 2.43117C4.65161 2.5297 4.56788 2.66145 4.52817 2.80882C4.48846 2.9562 4.49466 3.11218 4.54594 3.25594L7.5 12L4.54594 20.745Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),d=()=>r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("rect",{x:"6",y:"6",width:"8",height:"8",rx:"1.5",fill:"currentColor"})),l=()=>r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M4.5 10.5L8 14L15.5 6",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"}));c.style=":host{display:block;--bs-composer-radius:var(--bs-border-radius-150);--bs-composer-button-radius:var(--bs-border-radius-100);--bs-composer-button-size:var(--bs-spacing-600);--bs-composer-bg:var(--bs-input-bg-default);--bs-composer-border:var(--bs-input-border-default);--bs-composer-border-focus:var(--bs-input-border-focus);--bs-composer-action-bg:var(--bs-color-primary-default);--bs-composer-action-bg-hover:var(--bs-color-primary-hover);--bs-composer-action-bg-pressed:var(--bs-color-primary-pressed);--bs-composer-action-bg-disabled:var(--bs-surface-action-disabled);--bs-composer-action-icon:var(--bs-text-on-action);--bs-composer-action-icon-disabled:var(--bs-text-on-disabled);--bs-composer-attach-icon:var(--bs-icon-default);--bs-composer-mic-icon:var(--bs-icon-default);--bs-composer-mic-icon-disabled:var(--bs-icon-disabled);--bs-composer-mic-recording-icon:var(--bs-icon-default);--bs-composer-subtle-hover:var(--bs-color-neutral-container);--bs-composer-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-composer-waveform-color:var(--bs-border-default)}.bs-composer{box-sizing:border-box;display:flex;flex-direction:column;border:1px solid var(--bs-composer-border);border-radius:var(--bs-composer-radius);background:var(--bs-composer-bg);font-family:inherit}.bs-composer--human{border-style:dashed}.bs-composer:focus-within{border-color:var(--bs-composer-border-focus)}.bs-composer__attachments-row{display:none}.bs-composer__attachments-row--visible{display:block}.bs-composer__text-row{display:flex;align-items:center;gap:var(--bs-spacing-150);padding:var(--bs-spacing-150)}.bs-composer__input{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--bs-input-text);font-family:inherit;font-size:var(--bs-font-size-md)}.bs-composer__input::placeholder{color:var(--bs-input-placeholder)}.bs-composer__input:disabled{color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-composer__waveform{display:inline-flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;overflow:hidden}.bs-composer__waveform-bar{display:inline-block;flex-shrink:0;width:2.5px;border-radius:1.5px;background:var(--bs-composer-waveform-color);height:var(--bs-composer-bar-height, 6px)}.bs-composer__controls-row{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-150)}.bs-composer__spacer{flex:1}.bs-composer__attach,.bs-composer__mic,.bs-composer__action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;font-family:inherit;border-radius:var(--bs-composer-button-radius);width:var(--bs-composer-button-size);height:var(--bs-composer-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-composer__attach:focus-visible,.bs-composer__mic:focus-visible,.bs-composer__action:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-composer__attach svg,.bs-composer__mic svg,.bs-composer__action svg{width:24px;height:24px}.bs-composer__attach,.bs-composer__mic{background:transparent}.bs-composer__attach:hover:not(:disabled),.bs-composer__mic:hover:not(:disabled){background:var(--bs-composer-subtle-hover)}.bs-composer__attach:active:not(:disabled),.bs-composer__mic:active:not(:disabled){background:var(--bs-composer-subtle-pressed)}.bs-composer__attach{color:var(--bs-composer-attach-icon)}.bs-composer__mic{color:var(--bs-composer-mic-icon)}.bs-composer__mic--recording{color:var(--bs-composer-mic-recording-icon)}.bs-composer__mic:disabled{color:var(--bs-composer-mic-icon-disabled);cursor:not-allowed}.bs-composer__action{background:var(--bs-composer-action-bg);color:var(--bs-composer-action-icon)}.bs-composer__action:hover:not(:disabled){background:var(--bs-composer-action-bg-hover)}.bs-composer__action:active:not(:disabled){background:var(--bs-composer-action-bg-pressed)}.bs-composer__action:disabled{background:var(--bs-composer-action-bg-disabled);color:var(--bs-composer-action-icon-disabled);cursor:not-allowed}";export{c as bs_composer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as e}from"./p-DP_bvuvB.js";const s=class{constructor(e){t(this,e),this.bsSort=a(this,"bsSort"),this.bsRowSelect=a(this,"bsRowSelect")}columns=[];rows=[];sortColumn;sortDirection="asc";selectable=!1;cellRenderer;bsSort;bsRowSelect;selectedIds=new Set;onHeaderClick=t=>{t.sortable&&this.bsSort.emit({column:t.key,direction:this.sortColumn===t.key&&"asc"===this.sortDirection?"desc":"asc"})};onRowCheckboxChange=(t,a)=>{const e=a.target.checked,s=new Set(this.selectedIds);e?s.add(t.id):s.delete(t.id),this.selectedIds=s,this.bsRowSelect.emit({id:t.id,selected:e})};render(){return e("table",{key:"fac4ff9ccea077cebdb9a7e80759234b08f39420",part:"table",class:"bs-data-table"},e("thead",{key:"ffdf80f1945ac824cabaf2c405d7f46a60bada13",part:"head"},e("tr",{key:"a7105ca41522ffa29234058b8a77e7ecd6c51451"},this.selectable&&e("th",{key:"7388b969f17245485f096acc8eebca17a2c1295f",class:"bs-data-table__select-col"}),this.columns.map((t=>{const a=this.sortColumn===t.key;return e("th",{part:"header-cell",class:"bs-data-table__header-cell","aria-sort":t.sortable?a?"asc"===this.sortDirection?"ascending":"descending":"none":void 0},t.sortable?e("button",{type:"button",class:"bs-data-table__sort-button",onClick:()=>this.onHeaderClick(t)},t.label,a&&e("span",{class:"bs-data-table__sort-indicator"},"asc"===this.sortDirection?" ▲":" ▼")):t.label)})))),e("tbody",{key:"47041704bc1fcde4047a2cf73f0cab402eafbc61",part:"body"},this.rows.map((t=>e("tr",{part:"row",class:"bs-data-table__row"},this.selectable&&e("td",{class:"bs-data-table__select-col"},e("input",{type:"checkbox",checked:this.selectedIds.has(t.id),onChange:a=>this.onRowCheckboxChange(t,a)})),this.columns.map((a=>this.cellRenderer?e("td",{part:"cell",class:"bs-data-table__cell",innerHTML:this.cellRenderer(t,a)}):e("td",{part:"cell",class:"bs-data-table__cell"},String(t[a.key]??"")))))))))}};s.style=":host{display:block}.bs-data-table{width:100%;border-collapse:collapse;font-family:inherit;font-size:var(--bs-font-size-sm);color:var(--bs-text-default)}.bs-data-table__header-cell{text-align:left;padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-secondary);white-space:nowrap}.bs-data-table__sort-button{display:inline-flex;align-items:center;border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;user-select:none}.bs-data-table__sort-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-data-table__sort-indicator{color:var(--bs-text-action)}.bs-data-table__row:hover{background:var(--bs-surface-hover)}.bs-data-table__cell{padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default)}.bs-data-table__select-col{width:var(--bs-spacing-500);padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default)}";export{s as bs_data_table}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as b,a as o,h as c}from"./p-DP_bvuvB.js";const r=class{constructor(o){e(this,o),this.bsChange=b(this,"bsChange")}get el(){return o(this)}inputEl;size="lg";checked=!1;indeterminate=!1;disabled=!1;error=!1;bsChange;onIndeterminateChange(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}componentDidLoad(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}componentDidUpdate(){this.inputEl&&(this.inputEl.indeterminate=this.indeterminate)}onChange=e=>{const b=e.target.checked;this.checked=b,this.indeterminate=!1,this.bsChange.emit(b)};render(){const e=this.checked||this.indeterminate,b=["bs-checkbox__box",`bs-checkbox__box--${this.size}`,e?"bs-checkbox__box--selected":"",this.disabled?"bs-checkbox__box--disabled":"",this.error?"bs-checkbox__box--error":""].filter(Boolean).join(" ");return c("label",{key:"a5cae53f4a82545ce4f9146891ad3a24c90ad2cf",class:"bs-checkbox "+(this.disabled?"bs-checkbox--disabled":"")},c("input",{key:"b9e40a9c3347bcb8517474209febd048bd853e25",ref:e=>this.inputEl=e,class:"bs-checkbox__input",type:"checkbox",checked:this.checked,disabled:this.disabled,"aria-checked":this.indeterminate?"mixed":String(this.checked),onChange:this.onChange}),c("span",{key:"60af78d14456f4cb65d6e9e7aa54f4b4bce84cfe",part:"box",class:b},e&&c("svg",{key:"5c64f14f979b866a71290584931f994fc485fb70",part:"icon",class:"bs-checkbox__icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},c("path",this.indeterminate?{d:"M3 8H13",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}:{d:"M3 8.5L6.2 11.5L13 4.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),c("span",{key:"d0993da246362d50fc924e8e6e9e9465cbec631f",part:"label",class:"bs-checkbox__label"},c("slot",{key:"719bb1f6c842f9a482f2672490f5df1025090d87"})))}static get delegatesFocus(){return!0}static get watchers(){return{indeterminate:[{onIndeterminateChange:0}]}}};r.style=":host{display:inline-block;--bs-checkbox-radius:var(--bs-border-radius-50);--bs-checkbox-gap:var(--bs-spacing-100);--bs-checkbox-size-sm:var(--bs-spacing-200);--bs-checkbox-size-md:var(--bs-spacing-250);--bs-checkbox-size-lg:var(--bs-spacing-300);--bs-checkbox-border-width-sm:1.333px;--bs-checkbox-border-width-md:1.667px;--bs-checkbox-border-width-lg:2px;--bs-checkbox-border-default:var(--bs-border-default);--bs-checkbox-bg-hover:var(--bs-surface-hover);--bs-checkbox-border-hover:var(--bs-border-neutral-hover);--bs-checkbox-bg-focus:var(--bs-surface-raised);--bs-checkbox-border-focus:var(--bs-border-neutral-hover);--bs-checkbox-focus-ring-color:var(--bs-border-neutral-focus);--bs-checkbox-bg-disabled:var(--bs-surface-action-disabled);--bs-checkbox-border-disabled:var(--bs-border-neutral-disabled);--bs-checkbox-border-error:var(--bs-border-error);--bs-checkbox-bg-selected:var(--bs-color-primary-default);--bs-checkbox-border-selected:var(--bs-color-primary-default);--bs-checkbox-bg-selected-hover:var(--bs-color-primary-hover);--bs-checkbox-border-selected-hover:var(--bs-color-primary-hover);--bs-checkbox-bg-selected-error:var(--bs-icon-error);--bs-checkbox-border-selected-error:var(--bs-icon-error);--bs-checkbox-icon-color:var(--bs-icon-static-white);--bs-checkbox-icon-color-disabled:var(--bs-icon-disabled);--bs-checkbox-label-color:var(--bs-text-default);--bs-checkbox-label-color-disabled:var(--bs-text-on-disabled);--bs-checkbox-label-color-error:var(--bs-text-error)}.bs-checkbox{position:relative;display:inline-flex;align-items:center;gap:var(--bs-checkbox-gap);font-family:inherit;cursor:pointer}.bs-checkbox--disabled{cursor:not-allowed}.bs-checkbox__input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.bs-checkbox__input:disabled{cursor:not-allowed}.bs-checkbox__box{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-checkbox-size-lg);height:var(--bs-checkbox-size-lg);border:var(--bs-checkbox-border-width-lg) solid var(--bs-checkbox-border-default);border-radius:var(--bs-checkbox-radius);background:transparent;color:var(--bs-checkbox-icon-color)}.bs-checkbox__box--md{width:var(--bs-checkbox-size-md);height:var(--bs-checkbox-size-md);border-width:var(--bs-checkbox-border-width-md)}.bs-checkbox__box--sm{width:var(--bs-checkbox-size-sm);height:var(--bs-checkbox-size-sm);border-width:var(--bs-checkbox-border-width-sm)}.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected);border-color:var(--bs-checkbox-border-selected)}.bs-checkbox__input:hover:not(:disabled)~.bs-checkbox__box{background:var(--bs-checkbox-bg-hover);border-color:var(--bs-checkbox-border-hover)}.bs-checkbox__input:hover:not(:disabled)~.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-hover);border-color:var(--bs-checkbox-border-selected-hover)}.bs-checkbox__input:focus-visible~.bs-checkbox__box{background:var(--bs-checkbox-bg-focus);border-color:var(--bs-checkbox-border-focus);outline:2px solid var(--bs-checkbox-focus-ring-color);outline-offset:2px}.bs-checkbox__input:focus-visible~.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-hover);border-color:var(--bs-checkbox-border-selected-hover)}.bs-checkbox__box--error{border-color:var(--bs-checkbox-border-error)}.bs-checkbox__box--error.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-selected-error);border-color:var(--bs-checkbox-border-selected-error)}.bs-checkbox__box--disabled{background:var(--bs-checkbox-bg-disabled);border-color:var(--bs-checkbox-border-disabled);color:var(--bs-checkbox-icon-color-disabled)}.bs-checkbox__box--disabled.bs-checkbox__box--selected{background:var(--bs-checkbox-bg-disabled);border-color:var(--bs-checkbox-border-disabled)}.bs-checkbox__icon{width:80%;height:80%}.bs-checkbox__label{font-size:var(--bs-font-size-sm);color:var(--bs-checkbox-label-color)}.bs-checkbox--disabled .bs-checkbox__label{color:var(--bs-checkbox-label-color-disabled)}.bs-checkbox:not(.bs-checkbox--disabled) .bs-checkbox__box--error~.bs-checkbox__label{color:var(--bs-checkbox-label-color-error)}";export{r as bs_checkbox}
|