import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { Notice as NoticeComponent } from './notice'; /** * Notice - Storybook Meta */ export default { title: 'Atoms/Notice', component: NoticeComponent, argTypes: { className: { control: { type: 'text', }, description: 'Set additional classnames to the notice wrapper.', table: { category: 'Styles', }, type: { name: 'string', required: false, }, }, kind: { control: { type: 'select', }, description: 'The notice kind.', options: ['error', 'info', 'success', 'warning'], type: { name: 'string', required: true, }, }, children: { control: { type: 'text', }, description: 'The notice body.', type: { name: 'string', required: true, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); /** * Notice stories - Error */ export const ErrorKind = Template.bind({}); ErrorKind.args = { children: 'Nisi provident sapiente.', kind: 'error', }; /** * Notice stories - Info */ export const InfoKind = Template.bind({}); InfoKind.args = { children: 'Nisi provident sapiente.', kind: 'info', }; /** * Notice stories - Success */ export const SuccessKind = Template.bind({}); SuccessKind.args = { children: 'Nisi provident sapiente.', kind: 'success', }; /** * Notice stories - Warning */ export const WarningKind = Template.bind({}); WarningKind.args = { children: 'Nisi provident sapiente.', kind: 'warning', }; sm/prism-xojo.js?id=b1860c0b680a93104565d707b2d8e335e503e1a1'>commitdiffstats
blob: c828f6e4776c1b26511caf36c99dd9dd9d41db12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Prism.languages.xojo = {
  comment: {
    pattern: /(?:'|\/\/|Rem\b).+/i,
    greedy: true,
  },
  string: {
    pattern: /"(?:""|[^"])*"/,
    greedy: true,
  },
  number: [/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i, /&[bchou][a-z\d]+/i],
  directive: {
    pattern: /#(?:Else|ElseIf|Endif|If|Pragma)\b/i,
    alias: 'property',
  },
  keyword:
    /\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,
  operator:
    /<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,
  punctuation: /[.,;:()]/,
};